Ehsan Akhgari
f56168072d
Bug 907883 - Minimize #includes in layout/generic; r=roc
...
--HG--
extra : rebase_source : 5e87b764a12b05aff477c71547e2131be67ca93b
2013-08-22 14:32:52 -04:00
Arnaud Sourioux
ae5aa58dbc
Bug 875367: Annotate ~280 more methods with MOZ_OVERRIDE in /layout. r=dholbert
2013-05-29 12:37:49 -07:00
Mats Palmgren
cd2a9144a4
Bug 866785 - Move repeated nsIFrame::List implementations code to a new method, ListGeneric, for re-use. Cleanup and improve the code a bit. r=roc
...
Specifically:
* move all the frame dump methods to nsIFrame. Especially nsFrame::ListTag
was annoying, often requiring a cast to nsFrame*.
* print common values in the same order for all types of frames
* print fluid continuations as "next-in-flow=%p" and non-fluid as
"next-continuation=%p" (as before)
* print the style-context more compactly, e.g.
"[sc=0x7faa6b60e0a0] pst=:first-line" becomes
"[sc=0x7faa6b60e0a0:first-line]"
* suppress printing visual/scroll-overflow rects when they are identical
to mRect and do the same for nsLineBox::List where it was especially
hard to see which lines actually had real overflow
* fix a bug that printed the child list name at the far right when the
principal list was empty (making it hard to see)
* print the address of child lists (other than the principal list) to
help debug frame list property bugs
* s/NS_IMETHODIMP/void/
2013-04-30 20:38:52 +02:00
Masayuki Nakano
c8e059b44d
Bug 857820 part.1 Drop blink effect implementation r=dbaron
2013-04-14 19:11:07 +09:00
Boris Zbarsky
462f47d89e
Bug 852428 part 2. Make nsIFrame::Init infallible. r=dholbert
2013-03-19 21:47:48 -04:00
Robert O'Callahan
013943dc4f
Bug 840902. Part 2: Remove nsresults from various display list methods. r=mattwoodrow
...
--HG--
extra : rebase_source : de498510bf8d85d9b0b2fab0137ef3be01c9adfa
2013-02-15 00:12:27 +13:00
Daniel Holbert
080169141a
Bug 836954: Mark nsIFrame::GetBaseline() impls as MOZ_OVERRIDE. r=dbaron
2013-02-11 17:52:55 -08:00
Cameron McCormack
0335ceedb4
Bug 655877 - Part 46: Paint SVG glyphs with new SVG text frame. r=roc,jwatt
2013-02-11 17:22:20 +11:00
Cameron McCormack
c09bbacdbf
Bug 655877 - Part 45: Fixes for DLBI. r=roc,jwatt
2013-02-11 17:22:20 +11:00
Cameron McCormack
644d6627b1
Bug 655877 - Part 41b: Make SVG text selectable with the mouse. r=roc,jwatt
2013-02-11 17:22:18 +11:00
Trevor Saunders
31db47e358
bug 542039 - accessible object types r=surkov, roc
2012-09-28 17:53:44 -04:00
Isaac Aggrey
0cc4b12d36
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Matt Woodrow
c900597192
Bug 539356 - Part 9a - Add new display list invalidation API to nsDisplayItem and implement it. r=roc
2012-08-29 17:39:01 +12:00
Ed Morley
5a3b322459
Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE
2012-09-27 16:34:46 +01:00
Matt Woodrow
49d4c24594
Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt
2012-08-29 17:38:58 +12:00
Chris Lord
2e05174430
Bug 788202 - Add optional subdocument traversal to nsIFrame::List. r=bz
...
Add subdocument frame traversal to nsIFrame::List, controlled via an optional
flag.
2012-09-19 15:36:35 +01:00
Chris Lord
47481277ba
Backout bug 788202 for build failures.
2012-09-19 14:05:26 +01:00
Chris Lord
2e7ad14aa1
Bug 788202 - Add optional subdocument traversal to nsIFrame::List. r=bz
...
Add subdocument frame traversal to nsIFrame::List, controlled via an optional
flag.
2012-09-19 12:39:53 +01:00
Ehsan Akhgari
3c78f81f54
Bug 785720 - Move the MathML token frame leading/trailing whitespace trimming logic to nsTextFrame; r=roc
2012-08-30 21:32:02 -04:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Cameron McCormack
9ee7a5b1a1
Bug 655877 - Part 28: Paint SVG text frames using 'fill' not 'color'. r=roc
2012-08-08 21:37:13 +10:00
Cameron McCormack
42d55dff42
Bug 655877 - Part 26: Give nsTextFrames the ability to invoke callbacks after painting different parts of the text. r=roc
2012-08-08 21:37:12 +10:00
Cameron McCormack
a648e78918
Bug 655877 - Part 20: Make nsTextFrame QueryFrame-able. r=roc
2012-08-05 11:01:19 +10:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Rafael Ávila de Espíndola
18f16662b0
Bug 777494 - Avoid using == with float. r=roc.
...
--HG--
extra : rebase_source : f17783c004de9d67576b1044f0180c1857fc499b
2012-07-25 17:25:26 -04:00
Cameron McCormack
bcbad1983d
Bug 771874 - Make nsTextFrame::TrimmedOffsets::GetEnd const. r=roc
2012-07-09 11:09:51 +10:00
Ehsan Akhgari
6ef72aef93
Backout changeset f568fc280fb0 (bug 539356) because of performance and correctness regressions
2012-07-03 20:24:55 -04:00
Matt Woodrow
1f0dbc7c74
Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt
2012-06-30 15:06:11 +12:00
Ryan VanderMeulen
b74e4a29db
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
061d4c2616
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Aryeh Gregor
8e7de01930
Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan
...
--HG--
rename : layout/generic/nsTypedSelection.h => layout/generic/Selection.h
2012-06-08 17:20:55 +03:00
Trevor Saunders
1192ef8bd9
bug 759033 - nsAccessible -> Accessible and nsAccessibleWrap -> AccessibleWrap r=surkov
...
--HG--
rename : accessible/src/atk/nsAccessibleWrap.cpp => accessible/src/atk/AccessibleWrap.cpp
rename : accessible/src/atk/nsAccessibleWrap.h => accessible/src/atk/AccessibleWrap.h
rename : accessible/src/base/nsAccessible.cpp => accessible/src/generic/Accessible.cpp
rename : accessible/src/base/nsAccessible.h => accessible/src/generic/Accessible.h
rename : accessible/src/mac/nsAccessibleWrap.h => accessible/src/mac/AccessibleWrap.h
rename : accessible/src/mac/nsAccessibleWrap.mm => accessible/src/mac/AccessibleWrap.mm
rename : accessible/src/msaa/nsAccessibleWrap.cpp => accessible/src/msaa/AccessibleWrap.cpp
rename : accessible/src/msaa/nsAccessibleWrap.h => accessible/src/msaa/AccessibleWrap.h
rename : accessible/src/other/nsAccessibleWrap.cpp => accessible/src/other/AccessibleWrap.cpp
rename : accessible/src/other/nsAccessibleWrap.h => accessible/src/other/AccessibleWrap.h
2012-05-28 21:18:45 -04:00
Mats Palmgren
1e843489e3
Bug 756241. r=roc
2012-05-23 17:27:15 +02:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Simon Montagu
8e7ad6721b
Start painting text shadow of selection from the left edge in RTL text. Bug 755994, r=roc
2012-05-17 13:34:06 +03:00
Scott Johnson
10f76a2526
Bug 708187: Disable caching of font inflation inside of BuildTextRunsScanner to prevent bleeding of bad values. [r=dbaron]
2012-03-26 22:37:16 -07:00
Daniel Holbert
ce6dc9863d
Bug 732610 - Make nsIFrame::ComputeSize take a bitfield 'aFlags' instead of a bool 'aShrinkWrap'. r=dbaron
2012-03-16 11:01:05 -07:00
Mats Palmgren
4986c8d89f
Bug 638937 - For text frames that are a child a floating first-letter frame, use the parent of the associated placeholder as the line-container to search. r=roc
2012-02-22 00:50:16 +01:00
Cameron McCormack
836b84312c
Bug 724709 - Bring EnsureTextRun docs up to date. r=roc DONTBUILD
2012-02-07 10:37:08 +11:00
L. David Baron
67a0afcf6e
Honor inflation during intrinsic width computation when needed. (Bug 706609, patch 6) r=roc
...
This is the second of two patches to honor inflation during intrinsic
width calculation (which we need to do to make some form controls
inflate correctly).
2012-01-24 17:21:29 -08:00
Mats Palmgren
77f0b019cd
Bug 619273 - Move the selection state bit from frames to content nodes. r=smaug
2011-12-20 10:15:41 +01:00
L. David Baron
bb227ad838
Remove the unused context parameter to MeasureCharClippedText. (Bug 627842, patch 10) r=roc
2011-11-23 18:48:23 -08:00
L. David Baron
4fc409e924
Apply font size inflation to text. (Bug 627842, patch 9) r=roc
...
This applies the font size inflation to reflow and painting of text
frames. However, it does not (by design) apply to intrinsic width
computation, since the inflation is itself a function of the containers
width, which can depend on the intrinsic width.
2011-11-23 18:48:23 -08:00
L. David Baron
1d218d5fcd
Pass block's reflow state to nsTextFrame::UnionAdditionalOverflow. (Bug 627842, patch 8) r=roc
2011-11-23 18:48:23 -08:00
Ehsan Akhgari
2a602a5685
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d8e503c38b
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Jonathan Kew
3f213d78b5
bug 686497 - avoid passing excessively long wavy-underline path to cairo for stroking. r=roc
2011-09-16 20:23:29 +01:00
Vitor Menezes
1be3da1279
Bug 403524: Make quirks-mode text draw order comply with CSS 2.1
...
Quirks-mode code draws text, and then all decorations. We need to instead draw
underlines, then overlines, -then- text, then line-throughs, as per CSS 2.1.
This involves refactoring nsTextFrame::PaintTextDecorations and
nsTextFrame::DrawText by merging them together, and also updating some
of their callers.
2011-08-03 11:30:58 -07:00
Vitor Menezes
e28c55c2e9
Fix text-decoration positioning in quirks mode and set overflow areas to match. (Bug 403524) r=dbaron
...
Change the quirks mode text-decoration code (soon to be used for all
modes) to follow CSS 2.1's rules for positioning of decoration lines.
Decorations are now drawn at a constant vertical position established by
the element creating the decoration, and more than one of the same type
(underline, overline, line-through) of decoration are supported on the
same piece of text.
This means that text-decorations can now significantly overflow a text
frame, since the vertical-alignment of the element with text-decoration
may be substantially different from the vertical alignment of the text.
Set overflow areas for text frames with text decorations in
nsLineLayout::RelativePositionFrames since it must happen *after*
vertical alignment is done, and when relative positioning data are
consistent (nsIFrame::GetRelativeOffset matches the offset that has been
applied).
2011-08-03 11:30:58 -07:00
Mats Palmgren
cff2b748ef
Bug 668919 - The ellipsis with text-overflow: ellipsis is sometimes one pixel too low. r=roc
2011-07-04 07:47:59 +02:00