Ryan VanderMeulen
5f2a19ee6e
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
6d6c4efbab
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Robert O'Callahan
7b4d308d3c
Bug 731293. Remove nsFrameManager parameter from nsLayoutUtils::GetParentOrPlaceholderFor. r=mats
2012-06-09 00:22:25 +12:00
L. David Baron
4ae65b30d1
Fix two pieces of cached information that were preventing font size inflation from applying correctly during intrinsic width calculation when intrinsic width calculation had already been done without font size inflation. (Bug 748434) r=roc
...
The first of these pieces of information is the intrinsic widths cached
on a block.
The second of them is the font inflation cached on a text frame (which
might be set to 1.0 at this point if a text frame has previously had
intrinsic width calculation done on it, but hasn't been reflowed).
2012-06-05 19:13:41 -07:00
L. David Baron
81169b19ae
Back out changeset 81f6b1cfbba5627425837ff993ca7012db22b23b (bug 748434) due to reftest failures.
2012-06-05 16:55:48 -07:00
L. David Baron
2a07b15c44
Fix two pieces of cached information that were preventing font size inflation from applying correctly during intrinsic width calculation when intrinsic width calculation had already been done without font size inflation. (Bug 748434) r=roc
...
The first of these pieces of information is the intrinsic widths cached
on a block.
The second of them is the font inflation cached on a text frame (which
might be set to 1.0 at this point if a text frame has previously had
intrinsic width calculation done on it, but hasn't been reflowed).
2012-06-05 15:52:28 -07:00
Trevor Saunders
5d33ad118a
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
Mark Capella
8ade8177fe
Bug 745428 - densify nsTextAccessible, r=surkov, f=tbsaunde
...
--HG--
rename : accessible/src/atk/nsTextAccessibleWrap.h => accessible/src/atk/TextLeafAccessibleWrap.h
rename : accessible/src/base/nsTextAccessible.cpp => accessible/src/generic/TextLeafAccessible.cpp
rename : accessible/src/base/nsTextAccessible.h => accessible/src/generic/TextLeafAccessible.h
rename : accessible/src/mac/nsTextAccessibleWrap.h => accessible/src/mac/TextLeafAccessibleWrap.h
rename : accessible/src/msaa/nsTextAccessibleWrap.cpp => accessible/src/msaa/TextLeafAccessibleWrap.cpp
rename : accessible/src/msaa/nsTextAccessibleWrap.h => accessible/src/msaa/TextLeafAccessibleWrap.h
rename : accessible/src/other/nsTextAccessibleWrap.h => accessible/src/other/TextLeafAccessibleWrap.h
2012-05-23 14:05:57 -04:00
Mats Palmgren
e5254175f8
Bug 756241. r=roc
2012-05-23 17:27:15 +02:00
Ed Morley
83427f0fe0
Merge mozilla-central to mozilla-inbound
2012-05-21 13:19:38 +01:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
L. David Baron
6b3b8f9533
Remove width determination parameters from font inflation methods. (Bug 747720, patch 5) r=roc
...
These are no longer needed since we're getting the width from the
nsFontInflationData.
2012-05-20 22:18:28 -07:00
Simon Montagu
b9a7134539
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
Jeff Muizelaar
7644fad8f2
Bug 753058. Add SAMPLE_LABELS for shadows. r=ehsan
...
This will make this things more obvious on the profile.
2012-05-08 18:10:02 -04:00
Makoto Kato
e70f17856c
Bug 249159 - Part 2 Implement CSS3 Text word-break property. r=dbaron, smontagu
2012-05-07 12:18:23 -07:00
Jeff Muizelaar
aca6f7c82d
Bug 745864. Add SAMPLE_LABELs to layout code. r=roc, a=joe
...
--HG--
extra : rebase_source : d826780c34692d333442b6bf563791b53bf3aa3d
2012-04-16 14:37:59 -04:00
Robert O'Callahan
7c34e38876
Bug 733607. Restructure logic to compute snapped bounds of display items in layer coordinates. Moves responsibility for computing snapped bounds from within the display items to callers of GetBounds/GetOpaqueRegion. r=tnikkel
...
Previously we snapped the results of nsDisplayItem::GetBounds and
nsDisplayItem::GetOpaqueRegion internally. By tracking which display items were
inside transforms, we disabled snapping quite conservatively whenever an ancestor
had a transform, which is undesirable.
With this patch, we don't snap inside GetBounds or GetOpaqueRegion, but just return
a boolean flag indicating whether the item will draw with snapping or not. This flag
is conservative so that "true" means we will snap (if the graphics context has a transform
that allows snapping), but "false" means we might or might not snap (so it's always safe
to return false).
FrameLayerBuilder takes over responsibility for snapping item bounds. When it converts
display item bounds to layer pixel coordinates, it checks the snap flag returned from
the display item and checks whether the transform when we draw into the layer will be
a known scale (the ContainerParameters scale factors) plus integer translation. If both
are true, we snap the item bounds when converting to layer pixel coordinates. With
this approach, we can snap item bounds even when the items have ancestors with active
transforms.
2012-04-10 23:24:18 +12:00
Scott Johnson
d8e24f230b
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
Simon Montagu
5a201aafa0
Add a mParagraphDepth member to BidiParagraphData and cache it on frames to track nested bidi-isolated paragraphs. Use mParagraphDepth (* 2 + isRTL in order to keep LTR even and RTL odd) as the initial paragraph embedding level instead of pushing a stack of embedding codes. Pass the <bdi> frame instead of its first-child to BidiParagraphData::Reset and save a call to GetParent(). Split inline ancestors before and after bidi-isolated paragraphs, in the same way that we currently do between runs in different directions. This required also adding code to SplitInlineAncestors to handle situations where the parent frame is being split before its first child or after its last child. In JoinInlineAncestors, prevent frames that belong to paragraphs isolated from one another from being rejoined. Bug 712600, r=ehsan, roc
2012-01-11 21:26:02 +02:00
Daniel Holbert
98b0d12882
Bug 732610 - Make nsIFrame::ComputeSize take a bitfield 'aFlags' instead of a bool 'aShrinkWrap'. r=dbaron
2012-03-16 11:01:05 -07:00
Cameron McCormack
db6a931dc3
Bug 736326 - Fix nscoord/nscolor typo. r=dbaron
2012-03-16 11:53:50 +11:00
Mats Palmgren
f2b543f7d7
Bug 728908 - Make the Overflow lines property have both a nsLineList and a nsFrameList for fast access to the last frame, eliminate SetNextSibling calls, and to support GetChildList(kOverflowList). part 1/2 r=bz
2012-03-08 02:57:37 +01:00
Simon Montagu
c9433228bb
Use GetGeneralCategory in IsPunctuationMark instead of the precompiled ccmap. Bug 731222, r=jfkthame
2012-03-01 00:17:27 -08:00
Jonathan Kew
27d7fed0f6
bug 724826 pt 3 - replace users of nsIUGenCategory service within libxul with direct access to mozilla::unicode::GetGenCategory. r=smontagu
2012-02-24 10:15:46 +00:00
Mats Palmgren
32a0b16990
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 Kaiser
44a9c91b7a
Bug 724453. Don't assume that sizeof(bool) == 1 when memsetting arrays of bools in nsTextFrame. r=bzbarsky
2012-02-06 13:00:54 -05:00
Edwin Flores
d271c53b53
Bug 719288 - Fill and stroke SVG text with one Draw call r=roc
2012-02-04 13:11:09 +00:00
Edwin Flores
4701befff3
Bug 710521 - Refactor gfxFont to separate out drawing stroke and drawing to path. r=roc
2012-01-26 13:11:18 +01:00
L. David Baron
f18119e87a
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
L. David Baron
94eb7fc6c5
Switch nsLayoutUtils inflation methods to the new setup with state on the pres context. (Bug 706609, patch 5) r=roc
...
This is the third of three patches to rework the way we handle getting
the font inflation container and width data during reflow, which are
needed so that we can sometimes 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
Jonathan Watt
f36738d918
Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron.
2012-01-24 13:09:55 +00:00
Jonathan Kew
c67b3f82e3
bug 715471 - use fallible allocation for potentially large buffers in nsTextFrameThebes.cpp. r=roc
2012-01-14 22:19:51 +00:00
Ed Morley
63e422a55c
Backout 148044813372 (bug 715471) for multiple test failures
2012-01-13 11:26:13 +00:00
Jonathan Kew
b028150574
bug 715471 - use fallible allocation for potentially large buffers in nsTextFrameThebes.cpp. r=roc
2012-01-13 10:35:02 +00:00
Josh Matthews
c1fdf87b38
Bug 454790 - Allow programmatic selection of -moz-user-select: none frames. r=roc
2012-01-12 15:59:19 -05:00
Simon Montagu
a05832e834
Implement text-align-last. Bug 536557, r=dbaron
2012-01-12 19:52:21 +02:00
Ed Morley
afde8417a5
Backout 6605cc311ec5 & 9217303c2e5c (bug 536557) for M4 orange
2012-01-12 15:33:00 +00:00
Simon Montagu
ad89de3591
Implement text-align-last. Bug 536557, r=dbaron
2012-01-12 16:29:20 +02:00
Jonathan Kew
3ef19fe4f9
bug 703100 - pt 3 - remove copy of original characters from gfxTextRun. r=roc
2011-12-06 12:39:19 +00:00
Jonathan Kew
fae89f9ba9
bug 703100 - pt 1 - eliminate gfxTextRunWordCache and gfxTextRunCache. r=roc
2011-12-06 12:39:18 +00:00
Ehsan Akhgari
7a0e3091f1
Bug 713856 - Dynamic change of DOM in lists before block element creates blank line; r=roc
2011-12-30 17:22:47 -05:00
Mats Palmgren
42ae031264
Bug 700031 - "ASSERTION: Can only call this on frames that have been reflowed" with too-deep frame tree. r=roc
2011-12-29 14:21:00 +01:00
Nicholas Nethercote
24d2c81ee1
Bug 711908 - Fix a bunch of GCC warnings in layout. r=dbaron.
2011-12-19 19:46:39 -08:00
Mats Palmgren
498185f3f0
Bug 619273 - Move the selection state bit from frames to content nodes. r=smaug
2011-12-20 10:15:41 +01:00
Matt Brubeck
f51deee1fa
Back out bug 710521, bug 672013, bug 702739 because of Mac reftest failures
2011-12-18 08:15:09 -08:00
Edwin Flores
6697ae002d
Bug 710521. Small refactor of gfxFont to separate drawing to paths and drawing strokes. r=roc
2011-12-18 21:53:03 +13:00
Alexander Surkov
da6f38dbdb
Bug 706335 - Remove text accesible getting no text inside a preformatted area, r=marcoz, bz
2011-12-02 16:52:56 +08:00
L. David Baron
0e6b37ad63
Make other users of font metrics (other than MathML and XUL) honor font size inflation. (Bug 627842, patch 15) r=roc
...
This does not address users of font metrics in layout/mathml/ (for text
size and alignment issues) or in layout/xul (for text size and sizing of
listbox and tree widgets): see all the callers of GetFontMetricsFor*
in those directories.
2011-11-23 18:48:23 -08:00
L. David Baron
1e5ca9ce1a
Apply font size inflation to line heights. (Bug 627842, patch 11) r=roc
...
Since font size inflation applies to the text after style data
computation, we must separately apply this inflation to line heights.
2011-11-23 18:48:23 -08:00
L. David Baron
af0ddba78e
Remove the unused context parameter to MeasureCharClippedText. (Bug 627842, patch 10) r=roc
2011-11-23 18:48:23 -08:00