Commit Graph

3815 Commits

Author SHA1 Message Date
Robert O'Callahan
03f90e3d54 Bug 754556. Allow intermediate positions in smooth scrolling to go anywhere the final position can be. Also, round smooth-scrolling PositionAt coordinates to nearest appunits to avoid numerical errors giving us results outside [start, destination]! r=mats 2012-05-22 21:55:15 +12:00
Jesse Ruderman
b862bfd20d Update bug number (no bug, DONTBUILD) 2012-05-21 18:24:50 -07:00
Ed Morley
f0346ff780 Merge mozilla-central to mozilla-inbound 2012-05-21 13:19:38 +01:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
L. David Baron
f7733db148 Make scroll frames (i.e., overflow != visible) no longer be font size inflation flow roots. This reverts part of 9499f6b28addcbcd9c480eb80cfe6c4c63a4a3a1. (Bug 747720, patch 7) r=roc
This means that font size inflation will be consistent into a container
with overflow!=visible, which fixes inflation bugs on phoronix.com (bug
747720) and reddit.com (bug 748446, but currently covered up by bug
756518).
2012-05-20 22:18:28 -07:00
L. David Baron
90bd8753e1 Remove caching of current inflation container and its width from the pres context. (Bug 747720, patch 6) r=roc
This is no longer needed because we're getting the width from
nsFontInflationData and the null-ness of the container from
mInflationDisabledForShrinkWrap.
2012-05-20 22:18:28 -07:00
L. David Baron
3ab78f01f9 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
L. David Baron
11f5c76522 Replace AutoMaybeNullInflationContainer with AutoMaybeDisableInflationForShrinkWrap since the concept of the pres context's current inflation container will be going away. (Bug 747720, patch 2) r=roc 2012-05-20 22:18:27 -07:00
L. David Baron
fda3a68818 Save and expose on nsFontInflationData the width of the nearest common ancestor of the inflated descendants. (Bug 747720, patch 1) r=roc
This width will be used in patch 3.
2012-05-20 22:18:27 -07:00
Adam Dane [:hobophobe]
d67d1141cb Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe 2012-05-19 14:32:37 -05:00
Ryan VanderMeulen
dc10c85eb0 Backout bug 733553 due to mochitest orange. 2012-05-19 12:10:26 -04:00
Adam Dane [:hobophobe]
9c321e4de0 Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe 2012-05-08 21:35:32 -05:00
Benjamin Smedberg
2187798a40 Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Ms2ger
faa0b8ae7d Merge m-c to m-i. 2012-05-18 13:32:20 +02:00
Ms2ger
3b577015ad Bug 755200 - Simplify SetSelectionAroundHeadChildren; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
79e49f2965 Bug 750053 - Part a: Add nsISelection::Collapsed(); r=smaug 2012-05-18 10:29:39 +02:00
Phil Ringnalda
f9ed4165e8 Bug 753877 - drop a few minimum assertion counts to reflect reality 2012-05-17 22:00:04 -07: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
Chris Lord
f6c9f99f1a Bug 753742 - Force layer build on scroll frames with a displayport. r=tn
Force building layers for all scroll frames that have a displayport set.
This fixes gfx/layers/ipc/CompositorParent mistakenly using FrameMetrics from
incorrect frames, due to the root scroll frame not having a layer.
2012-05-17 19:19:07 +01:00
Jonathan Watt
c8b52ec634 Bug 734082 - Compute and store bounds and visual overflow bounds for both SVG leaf and container frames. r=roc. 2012-05-17 05:05:09 +01:00
Aryeh Gregor
7cb03d1868 Bug 756045 - Turn "ASSERTION: anonymous nodes should not be in child lists" into an NS_WARNING; r=bz 2012-05-18 09:20:49 +03:00
Nicholas Cameron
044718db79 Bug 755078 - Disable mask layers on Android. r=roc 2012-05-17 10:30:10 +12:00
Mats Palmgren
e5191a317a Bug 750293 - Don't include a block's margins in its scrollable overflow for now. r=roc 2012-05-17 01:04:38 +02:00
Ed Morley
91066e9c2a Bug 668716 - Disable test_bug632379.xul on Mac for now, for too many unexpected passes 2012-05-16 20:46:11 +01:00
Trevor Saunders
8df11e79ab bug 693933 - make nsFrameSelection::GetSelection() return nsTypedSelection* r=smaug 2012-04-06 17:54:38 -04:00
Robert O'Callahan
2bbcb226e2 Bug 754556. Ensure that setting scroll positions in CSS pixels doesn't unexpectedly move the scroll position, especially not in the wrong direction. r=matspal
If the current scroll position is fractional, e.g. y=N.4 CSS pixels, and something tries to read the
position in CSS pixels and scroll to that position (e.g. calling window.scrollTo(0, rootElem.scrollTop),
or equivalently window.scrollBy(0, 0)), it can actually end up scrolling backwards. So create a new
method nsIScrollableFrame::ScrollToCSSPixels which ensures that scrolling to a CSS pixel offset tries to
preserve the current fractional scroll position if that's possible, and if that's not possible at least does
not allow the scroll position to move in the wrong direction.
2012-05-15 17:58:09 +12:00
Mats Palmgren
6b03870b6a Bug 749935 - Make all nsRect Union methods saturating. If width/height overflows nscoord_MAX then clamp the x/y to nscoord_MIN / 2 and try again. r=roc 2012-05-14 22:11:39 +02:00
Alexander Surkov
7ff1752972 Bug 754627 - GetBounds on bullet return wrong values, r=tbsaunde, roc 2012-05-14 13:51:45 +09:00
Christopher De Cairos
71301a9ebc Bug 517363: Make poster frames scale to size of the display frame r=roc 2012-05-11 20:32:29 +12:00
Christopher De Cairos
c484bd36db Bug 726904: Make nsVideoFrame::GetVideoIntrinsicSize return the video size before the poster size. r=cpearce 2012-05-11 20:32:15 +12:00
Matt Woodrow
ec8821b6ee Bug 722603 - Improve dirty rect calculation with 3d transforms and preserve-3d. r=roc 2012-05-11 19:49:14 +12:00
Matt Woodrow
b5086dc756 Bug 722603 - Add 3d transforms debugging code to nsBlockFrame. r=roc 2012-05-11 19:49:12 +12:00
Robert O'Callahan
1260834bce Bug 681192. Part 16: Reduce assertion counts some more. r=matspal
--HG--
extra : rebase_source : 48cdef6c9792d6e35dcdfaecae3e3982c37171fd
2012-05-10 17:24:21 +12:00
Robert O'Callahan
c0c7a84361 Bug 681192. Part 12: more fixes to remove unnecessary rounding to pixels. r=matspal
--HG--
extra : rebase_source : 39f2c0ef3220b3f0d4f6bc2564a86daa2112dc3b
2012-05-10 17:24:20 +12:00
Robert O'Callahan
c9a4ef0f31 Bug 681192. Part 11: Don't snap scrollrange endpoints to device pixels anymore. r=matspal
--HG--
extra : rebase_source : a4ad5072fbb1a9e1e8d0fcf31268fee8812be41e
2012-05-10 17:24:20 +12:00
Robert O'Callahan
f8b68b95b5 Bug 681192. Part 9: Adjust assertion counts downward. r=mats
--HG--
extra : rebase_source : 5cb44d6572d19d462897b1b50037946d5d8edf67
2012-05-10 17:24:20 +12:00
Robert O'Callahan
c03a4afc08 Bug 681192. Part 8: Use a generous allowed range when scrolling in CurPosAttributeChanged. r=matspal
There was a subtle reftest failure on Mac in RTL text-overflow tests.
I tracked it down to RTL overflow:auto areas being automatically scrolled by a subpixel amount.
This was because we try to set scrollbar "curpos" attributes to an integer number of CSS pixels representing
the scroll amount, relative to the top-left of GetScrolledRect, which is a noninteger number of CSS pixels
in this case. Then in ReflowFinished() we scroll to the saved curpos values plus the top-left of GetScrolledRect.
This patch fixes the problem by making CurPosAttributeChanged pass an allowed scroll range to
ScrollToWithOrigin. We allow any scroll destination that, when rounded to CSS pixels, would give the same
value as "curpos".
This fixes the bug, ensuring that ReflowFinished's call to CurPosAttributeChanged will not normally need
to scroll because the current position will be in the acceptable range. Also, it means that code that
scrolls by setting the "curpos" attribute will be optimized to try to hit a layer pixel boundary.

--HG--
extra : rebase_source : 3a768883feee4ff2b88fe3c729ea1058e911f2ea
2012-05-10 17:24:19 +12:00
Robert O'Callahan
1b61f2c022 Bug 681192. Part 7: nsTypedSelection should be scrolling a 0,0 size into view to get a particular coordinate into view, not 1,1. r=matspal
When asked to scroll a 1,1 appunit rectangle into view, ScrollFrameRectIntoView will now actually
succeed!
For example if the window is 6000 appunits high and we ask to scroll a 1x1 rect at 0,6000 into view,
before bug 681192 was fixed we'd actually fail to do so. We'd compute a desired scroll destination of 0,1,
and ScrollTo would round that to 0,0 and we wouldn't scroll at all.
Now, we compute a desired scroll destination of 0,1 but also an allowed scroll range for y of
"1 to <someting large>", so ScrollFrameRectIntoView will scroll down by a full pixel to 0,60. This is correct ---
it gets the subpixel area into view, which the previous code didn't --- but it's not really what DoAutoScroll
wants, at least the way test_mousecapture.xul is written. test_mousecapture.xul expects DoAutoScroll to scroll
windowheight+N into view by scrolling down by exactly N pixels, so the desired point is exactly at the bottom
edge of the window rect. Using a zero-sized rect achieves this.

--HG--
extra : rebase_source : 5d3d8cc4417c35dc88ad296a4f13e01d2c1c9233
2012-05-10 17:24:19 +12:00
Oleg Romashin
0f88c6891c Bug 681192. Part 2: Make nsIScrollableFrame::ScrollBy automatically set a generous allowed destination range. r=roc
--HG--
extra : rebase_source : 392359b325ca0435031e8f31a47154a82943c2b4
2012-02-07 12:20:57 -08:00
Oleg Romashin
b98e2fe7f1 Bug 681192. Part 1: Add "allowed scroll destination range" to nsIScrollableFrame::ScrollTo and nsGfxScrollFrame implementation. r=roc,matspal
--HG--
extra : rebase_source : 51d04f7e7db35c02de3401a3481d4cc3827c19ec
2012-02-07 16:53:18 -08:00
Ehsan Akhgari
2be6b796b2 Bug 612128 - Prevent the editor from modifying nodes which are not under an editing host; r=roc,bzbarsky
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living
under an editing host.  Things like text controls which used to have that flag
previously will not have it any more.  The flag would be set on their anonymous
div node instead.  Note that if text controls actually fall under an editing
host, they will get the NODE_IS_EDITABLE flag.

This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes
are always considered to be editable).
2010-11-16 15:45:49 -05:00
Ed Morley
a4deefe05e Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-05-09 10:15:40 +01:00
Joe Drew
14a6d481db Back out changeset 501d38d3892c (Bug 733553) for causing crashes in xpcshell tests. 2012-05-08 21:59:30 -04:00
Adam Dane [:hobophobe]
c6313176ac Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
--HG--
extra : rebase_source : 21ebc85f26fcbc4a4a27387d1ec5007c0886c386
2012-05-08 16:19:01 -05:00
Timothy Nikkel
f1bc26826d Bug 749425. Push the scroll frame clip inside the scroll layer so it gets transformed by the shadow transform. r=roc 2012-05-08 23:15:00 -04:00
Jeff Muizelaar
3efeae39c6 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
6bbd48cb4a Bug 249159 - Part 2 Implement CSS3 Text word-break property. r=dbaron, smontagu 2012-05-07 12:18:23 -07:00
L. David Baron
d573b50a05 Add missing GetFirstInFlow() call that was causing a crash in ComputeDescendantWidth when printing with font inflation enabled (or a debug build). (Bug 751797) r=roc
--HG--
extra : transplant_source : %ED%23%02%AFR%24tw%FE%96%D7%D3p%D8%87%F7gV%28L
2012-05-07 07:17:00 +02:00
Jonathan Kew
868ffee94a bug 752176 - only read the style array for valid offsets within the textrun. r=smontagu 2012-05-06 15:55:12 +01:00
L. David Baron
8e2d262657 Make effect of form controls on font size inflation text threshold not depend on user changes to their value. (Bug 747857) r=roc
--HG--
extra : transplant_source : %82%DCX%81%B2%AAM%A3%A1%A1-%87%10%B3%B6%10kw%F4%FB
2012-05-05 15:24:45 +02:00
Ms2ger
34aac6a555 Bug 716439 - Followup: remove unused variable 'sf'; r=roc 2012-05-05 11:00:06 +02:00
Scott Johnson
77bfda7fb2 Bug 749186: Make the root frame always be an inflation container to prevent a crash during font inflation. [r=dbaron] 2012-05-04 12:08:23 -05:00
Scott Johnson
f80ce2f947 Bug 746966: Conditionally set NS_FRAME_IN_CONSTRAINED_HEIGHT for font inflation on percentage-based height so fonts with room to inflate can do so. [r=dbaron] 2012-05-04 12:07:37 -05:00
Ed Morley
635428fcdd Backout f8125b89352d (bug 747857) for frequent test failures 2012-05-04 15:24:42 +01:00
L. David Baron
3a1e49269e Add missing GetFirstInFlow() call that was causing a crash in ComputeDescendantWidth when printing with font inflation enabled (or a debug build). (Bug 751797) r=roc
--HG--
extra : transplant_source : %B5%FE%E5%DFaH%06%0F%3B%26%C0%E2%8B%3E4%F37%BFi-
2012-05-03 22:55:33 -04:00
L. David Baron
d2b33df467 Make effect of form controls on font size inflation text threshold not depend on user changes to their value. (Bug 747857) r=roc
--HG--
extra : transplant_source : %1F%7B%3Fk%A6%F1%2C%EAZ%920%FB%FD%FB%3D%8E%9C%C9y%19
2012-05-03 20:04:30 -04:00
Mats Palmgren
dbb5859abd Bug 750745 - Allocate nsLineBoxes from their own presshell arena list. part=3/3 r=roc 2012-05-04 02:14:02 +02:00
Mats Palmgren
8582ded41c Bug 750745 - Introduce AllocateByObjectID/FreeByObjectID for allocating non-frame objects from per-type lists in the PresArena. part=2/3 r=roc 2012-05-04 02:14:02 +02:00
Mats Palmgren
04f80a03f0 Bug 735641 - No way to deselect image of image document after select all (Ctrl+A). r=bz 2012-05-04 02:14:01 +02:00
Mats Palmgren
fe52b9bdf6 Bug 747688. r=roc 2012-05-04 02:14:01 +02:00
Mats Palmgren
194408325c Bug 750066. r=roc 2012-05-04 02:14:01 +02:00
Mats Palmgren
5daf287b9f Bug 748961 - Flush styles to ensure frames are created. r=smaug,Ms2ger 2012-05-04 02:14:01 +02:00
Andreas Gal
dceb01a952 Do image scaling on the GPU (bug 650988, r=roc,cjones). 2012-05-03 07:05:55 -07:00
Ed Morley
2d35fc9b56 Merge mozilla-central to mozilla-inbound 2012-05-03 20:13:41 +01:00
Ali Juma
d62323c372 Bug 748048 - Part 1: Remove SetInvalidationDimensions and GetInvalidationDimensions. r=roc 2012-05-03 12:33:51 -04:00
Jared Wein
0152ba6f95 Bug 702463 - Increasing the timeout of the tests due to the presence of multiple refresh drivers. r=ehsan 2012-04-30 13:44:55 -04:00
Avi Halachmi
3ecca78724 Bug 702463 - Smooth scrolling should use refresh observer instead of a timer. r=roc 2012-03-31 16:08:00 +03:00
Masatoshi Kimura
f17f15dabb Bug 745498 - Add testcases for DOM4 exception types. r=sicking 2012-04-26 09:42:26 -07:00
Jonathan Kew
35954608dd bug 307039 - implement Greek-specific uppercasing for text-transform & small-caps. r=past 2012-05-03 08:57:18 +01:00
Nicholas Cameron
f33f08a88c Bug 716439; remove a check for rounded rects to enable the use of mask layers. r=roc 2012-02-08 11:26:46 +13:00
Aryeh Gregor
874f428261 Bug 702948 - Make Range.detach() a no-op; r=smaug 2012-04-25 15:03:48 +03:00
Masayuki Nakano
e089b336f8 Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug 2012-04-25 12:00:02 +09:00
Timothy Nikkel
b9a7468478 Bug 732016 Allow override of the scroll port size used for clamping scroll positions. r=roc 2012-04-24 13:52:35 -05:00
Jonathan Kew
e2b45d2173 bug 744357 - implement mappings from Unicode's SpecialCasing.txt for text-transform. r=smontagu 2012-04-24 18:53:39 +01:00
Robert O'Callahan
3e0ac701ac Bug 749075. Part 1: Refactor the nsDisplayItem API for testing whether the item needs to be rendered to a transparent surface. r=mattwoodrow
Currently we return an extra out parameter on GetOpaqueRegion. This is ugly and it's also going to be inefficient
because in a followup patch I'm going to avoid calls to GetOpaqueRegion, but we still need to know whether the item
needs a transparent surface. So this patch removes that out parameter. Instead, we rely on the fact that only
Windows' glass-window-background display item needs to force a transparent surface, and there can only be one
of those per window. So we store a reference to it in the nsDisplayListBuilder if there is one, and then we can
efficiently tell if any leaf display item is the one that forces a transparent surface. For display items that
wrap a list, we continue to store whether they need to force a transparent surface in a boolean in the list.
2012-05-03 16:29:05 +12:00
Jeff Muizelaar
4c6a9736de 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
Joe Drew
3019e4b61c Backout 492d12fa8b65 (bug 732016) for regressions. a=regression
--HG--
extra : rebase_source : cda0401baa2c3e5f6192f76c1cd25eca8187a9a0
2012-04-23 11:13:33 -07:00
Timothy Nikkel
e472248f52 Bug 732016 Allow override of the scroll port size used for clamping scroll positions. r=roc 2012-04-19 20:54:54 -05:00
Robert O'Callahan
d80b8c7095 Bug 745934. Update bounds of nsDisplayOpacity after we've mutated its list. r=mattwoodrow,a=blocking-fennec 2012-04-19 14:40:43 +12:00
Ehsan Akhgari
b7a2142579 Backout changeset 0b25ccd32a49 (bug 745934) for reftest failures; a=bustage 2012-04-18 23:52:59 -04:00
Robert O'Callahan
54470c0981 Bug 745934. Update bounds of nsDisplayOpacity after we've mutated its list. r=mattwoodrow,a=blocking-fennec 2012-04-19 14:40:43 +12:00
Robert O'Callahan
e2b8881b6e Bug 735898. Part 7: Remove expensive nsIFrame::HasBorder checks, just check style instead. r=dbaron,a=blocking-fennec 2012-04-18 17:14:31 +12:00
Robert O'Callahan
709a687eeb Bug 735898. Part 6: Avoid nsIFrame::GetOffsetTo calls by caching a frame/offset pair in nsDisplayListBuilder, using the cache from nsDisplayListBuilder::ToReferenceFrame, and having BuildDisplayListForChild efficiently update the cached frame from parent to child when possible. Also, use display items' precalculated ToReferenceFrame() instead of calling nsDisplayListBuilder::ToReferenceFrame where possible. r=mattwoodrow,a=blocking-fennec 2012-04-18 17:14:14 +12:00
Wes Johnston
9ab687a09a Bug 745936 - Display port should not override dirtyRect during hit detection r=roc 2012-04-17 08:08:29 -04:00
L. David Baron
903cd57ef8 Build font data structure by walking the necessary text. (Bug 706193, patch 3) r=roc
Compute the amount of text in the scope of an nsFontInflationData
object.  This walks the text that's inside of the block formatting
context at which this object is rooted, excluding the text that's inside
any nested BFC.  Using the amount of text, the font sizes of the text,
and the line threshold preference, we compute whether to enable font
size inflation within that block formatting context.
2012-04-16 15:32:12 -07:00
L. David Baron
1984592c22 Add a font inflation data structure per block formatting context. (Bug 706193, patch 2) r=roc
This structure is per block formatting context because we have to make a
single inflation decision for things like consecutive runs of paragraphs
of text.  Inflating some paragraphs and not others (within the same
sequence of adjacent paragraphs) based on the amount of text in each one
would be disastrous.  Otherwise it's ideal for the units to be as small
as possible as long as they merge such sequences; therefore this uses a
definition corresponding to CSS's idea of elements that establish new
block formatting contexts.
2012-04-16 15:32:12 -07:00
Robert O'Callahan
0f27ac69fa Bug 735898. Part 5: Simple tweaks to avoid wrapping empty lists and to reorder boolean tests. r=mattwoodrow 2012-04-16 17:43:47 +12:00
Robert O'Callahan
c205a2f3ae Bug 735898. Part 4: Create Inner/Outer box-shadow items only if we actually have inset/outset shadows. r=mattwoodrow 2012-04-16 17:43:33 +12:00
Jonathan Kew
fe06ef8bbd bug 740120 - implement context-sensitive mapping for Greek sigma in text-transform:lowercase. r=smontagu 2012-04-15 15:52:47 +01:00
Jonathan Kew
1a6e23b12d bug 745454 - don't lose line-break flag when merging case-transformed characters in text run. r=smontagu 2012-04-15 15:52:47 +01:00
Mats Palmgren
7c5f8ba182 Bug 740743 - Implement CSS overflow for <legend>. r=bz 2012-04-13 17:52:13 +02:00
Robert O'Callahan
52ce726c72 Bug 735898. Part 3: In DisplayBorderBackgroundOutline, when we have created an nsDisplayBackground item and it's themed, don't bother checking to create an nsDisplayBorder item. r=mattwoodrow
It turns out that calling HasBorder() is especially expensive for themed frames since we call into the theme engine to compute the border, so avoiding it is a nice win.
2012-04-13 23:44:06 +12:00
Mark Capella
1839be84c0 Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
--HG--
extra : rebase_source : 648a581323d2c2893df780f71fe34dadcc4bbaab
2012-04-11 17:17:44 -07:00
Robert O'Callahan
540be00480 Backing out changesets ef599d7f3f11, 70ef464f50e3 and 1a204c38918e (bug 735898) due to test failures. 2012-04-12 00:34:23 +12:00
Robert O'Callahan
a66d3252b3 Bug 735898. Part 3: In DisplayBorderBackgroundOutline, when we have created an nsDisplayBackground item and it's themed, don't bother checking to create an nsDisplayBorder item. r=mattwoodrow
It turns out that calling HasBorder() is especially expensive for themed frames since we call into the theme engine to compute the border, so avoiding it is a nice win.
2012-04-11 16:49:34 +12:00
Robert O'Callahan
57fba60009 Bug 735898. Part 2: When nsOverflowClipWrapper is asked to clip a display item that is entirely inside the clip rect, don't bother wrapping the item. r=mattwoodrow 2012-04-11 16:48:56 +12:00
Robert O'Callahan
833e8a244f 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
Steven Michaud
cedac03a1d Bug 730066 - Crash at mozilla::layers::ImageContainer::GetCurrentSize on printing http://www.mozilla.org/projects/firefox/prerelease.html. r=roc 2012-04-09 14:17:19 -05:00
Wes Johnston
d605226018 Backed out changeset f5d6cc2e4726 2012-04-09 10:44:32 -07:00
Wes Johnston
19dd5922a5 Bug 740218 - Support transactions in sqlitebridge and use them. r=gcp,rnewman,lucasr 2012-04-09 10:08:37 -07:00
Kyle Huey
b9156a7e34 Back out Bug 679230 due to Android reftest failures. 2012-04-07 10:36:49 -07:00
Kyle Huey
803a05ad74 Bug 697230: Part 1 - Centralize style image observers. r=bz 2012-04-07 08:58:41 -07:00
Mats Palmgren
657915ceea Bug 724352 - Decrement assertion counts for some layout crashtests. r=roc 2012-04-05 16:30:21 +02:00
Mats Palmgren
d8ca75ff27 Bug 724352 - Don't add vertical margin to scrollable overflow here, it's already done during reflow and we don't need it for UpdateOverflow yet (and we need to account for margin-collapsing when we do). r=roc 2012-04-05 16:30:21 +02:00
Nicholas Nethercote
ba5600fd65 Bug 711895 - Tweak the warning options used for GCC builds (3rd attempt). r=waldo,derf,khuey,mhommey.
--HG--
extra : rebase_source : 20540c9b838ee3be6cb0847c1b90fdc3bd44059d
2012-03-21 22:21:16 -07:00
Jared Wein
3e7213669a Backed out changeset 3b8a666e351e (bug 702463) 2012-04-03 16:50:25 -07:00
Avi Halachmi (:avih)
393c935eba Bug 702463: Smooth scroll - Use refresh observer instead of a timer. r=roc 2012-03-31 16:08:00 +03:00
Jared Wein
4ef699b55b Backed out changeset 4e515b6a5a41 (bug 702463) 2012-04-03 16:22:49 -07:00
Avi Halachmi (:avih)
22084dbd86 Bug 702463: Part 1 v8 - Smooth scroll - Use refresh observer instead of a timer 2012-03-31 16:08:00 +03:00
Ms2ger
cad388b68f Bug 741048: Remove gfxAtoms. r=roc 2012-03-30 23:08:46 -07:00
Dave Townsend
68dc1b47ec Backing out changeset 432c4be058b5 which landed with no bug. 2012-03-30 22:23:24 -07:00
Jonathan Kew
600c7d5313 bug 740477 - handle Dutch-specific capitalization of the ij digraph. r=smontagu 2012-03-30 17:37:46 -07:00
Ehsan Akhgari
0fb9dbfc9e Bug 740857 - Remove dead code from nsFrame::BoxReflow; r=dbaron 2012-03-30 10:27:51 -07:00
Ms2ger
0884370d9c No bug - Remove gfxAtoms; r=roc 2012-03-29 23:08:43 +02:00
Avi Halachmi (:avih)
11eac7e423 Bug 737758: part 3: Cleanups and semantic consistency [r=roc] 2012-03-26 11:53:45 +02:00
Avi Halachmi (:avih)
d705a99716 Bug 737758: part 1: Propagate mouse wheel event origin from ESM [r=roc] 2012-03-26 11:50:30 +02:00
Jonathan Kew
f1875ed381 bug 231162 - support custom casing behavior for Turkish and similar writing systems. r=smontagu 2012-03-27 08:49:03 -07: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
Scott Johnson
ca42c77ba8 Bug 733640: Add crashtest for bug 718516. [r=ehsan]
--HG--
extra : rebase_source : 45e73bc4a7e36da12630c368040b152b83005664
2012-03-26 12:43:22 -07:00
Daniel Holbert
228f265c51 backing out 56664e0e2f2 (bug 718516) due to wrong commit message 2012-03-26 11:35:16 -07:00
Matt Woodrow
a6d077a2c0 Bug 729955 - Invalidate destroyed out-of-flow frames before unregistering the placeholder frame. r=bz 2012-03-26 11:27:37 -07:00
Scott Johnson
443073b61b Bug 718516: Remove call to FinishReflowWithAbsoluteFrames until nsColumnSetFrame is fully implemented as an absolute container. [r=ehsan] 2012-03-26 10:29:59 -07:00
Ehsan Akhgari
cbd5bcd53c Bug 726592 - Uninitialised value use in nsTextFrame::GetChildFrameContainingOffset; r=roc
--HG--
extra : rebase_source : 3e5d2fafc028edb2940bef07302161670692d5a1
2012-03-26 09:09:38 -07:00
Ehren Metcalfe
7ae994745c Bug 738957 - Remove the nsMathMLForeignFrameWrapper class and related files. r=karlt 2012-03-26 09:59:54 +02:00
Henri Sivonen
38758ad038 Bug 738572 - #include nsIHTMLContentSink.h in fewer places. r=bzbarsky. 2012-03-23 17:21:44 +02:00
Scott Johnson
c84e7535e0 Bug 711418 - Enable font inflation for body and html elements with fixed heights. [r=dbaron] 2012-03-23 22:47:43 -05:00
Edwin Flores
03b3f7b1f7 Bug 738392 - Fix plugins not rendering inside CSS transform on Mac OSX r=roc 2012-03-23 11:21:57 -07:00
Daniel Holbert
d55f55d9fe Bug 738705: Remove dead helper-class CompareByContentOrderComparator. r=bz 2012-03-23 11:17:33 -07:00
Jonathan Kew
78c0e24c84 bug 736210 - fix bug in nsCaseTransformTextRunFactory surrogate handling. r=smontagu 2012-03-23 17:48:11 +00:00
Nicholas Nethercote
616b0f275a merge 2012-03-21 21:48:40 -07:00
Nicholas Nethercote
256772d52e Backed out changeset 0124795a8cbb (bug 711895) due to i10n build bustage. r=me. 2012-03-21 21:46:27 -07:00
Robert O'Callahan
72ab0aac14 Bug 737784. Create mInnerView eagerly to ensure that its bounds will always be correctly set in Reflow. r=tnikkel 2012-03-22 16:15:19 +13:00
Nicholas Nethercote
1859bc3ea6 Bug 711895 - Tweak the warning options used for GCC builds (2nd attempt). r=waldo,derf,khuey,mhommey,jwatt. 2012-03-15 19:40:00 -07:00
Aryeh Gregor
2d2e408435 Bug 668716 - Change test_bug632379.xul failure on Mac to a todo(); r=orange 2012-03-21 15:41:35 -04:00
Aryeh Gregor
94d5ff735b Bug 735805 part 1 - Fix DOM and layout mochitests that run no tests; r=bz 2012-03-16 16:07:09 -04:00
Daniel Holbert
8e81617ab4 Bug 737313: Make nsCSSFrameConstructor::ConstructInline more robust when one of its child frames fails to construct. r=bz 2012-03-20 10:23:03 -07:00
Jonathan Watt
e30bc57157 Bug 736890 - Speed up building of layout/svg/base/src by cleaning up #include directives in its header files. r=dholbert. 2012-03-20 12:15:55 +00:00
Adam Dane [:hobophobe]
3c986b3780 Bug 720126 - Update scroll API to use ScrollAxis parameters (where and when). r=roc 2012-03-19 21:09:50 -05:00
Simon Montagu
8ea4557aa9 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
Boris Zbarsky
98a2048efb Bug 721659. Update the width/height of an image synchronously when src is set to something that was preloaded. r=bholley 2012-03-19 18:22:02 -04:00
Dão Gottwald
6a83ce299e Backed out changeset 2cd01fd07ce8 2012-03-19 12:54:32 +01:00
Adam Dane [:hobophobe]
1157561543 Bug 720126 - Update scroll API to use ScrollAxis parameters (where and when). r=roc 2012-03-18 14:42:25 -05:00
Jonathan Watt
8edc89f81d Bug 379709 - Avoid reflowing SVG twice during page load due to initially assuming we'll need space for a vertical scrollbar when the nsSVGOuterSVGFrame can tell us we won't. r=bz. 2012-03-19 08:34:19 +00:00
Aryeh Gregor
57af16cb02 Bug 719523 - Selection.selectAllChildren() on a Document always produces end offset of 1; r=ehsan 2012-03-16 12:56:54 -04: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
Aryeh Gregor
3f835dac68 Bug 719515 - Selection.extend() should replace the existing range, not mutate it; r=ehsan 2012-03-15 14:26:32 -04:00
Marco Bonardo
312ed3ed80 Merge inbound and central 2012-03-16 13:42:16 +01:00
Cameron McCormack
96242ad44d Bug 736326 - Fix nscoord/nscolor typo. r=dbaron 2012-03-16 11:53:50 +11:00
Ed Morley
b4dda70351 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-03-15 12:42:01 +00:00
Kyle Huey
e8ed17fbad Bug 730587: Stash a pointer to the subtree root on DOM nodes. r=smaug, sr=jst 2012-03-14 13:14:02 -07:00
James Willcox
a0db3488b7 Bug 728371 - Make Flash work with GLES 2.0 and GL layers r=pcwalton
--HG--
extra : rebase_source : 4b845e7dc4224bfd807fb757e7199c91655c0d69
2012-03-12 13:03:54 -04:00
Ali Juma
ebf4e4d87a Bug 725095 - Address Layout review comments. r=mats 2012-03-13 12:57:31 -04:00
Benoit Girard
32745d1cc3 Merge mc->Maple 2012-03-13 11:05:28 -04:00
Boris Zbarsky
dbcab961d0 Bug 705877 part 5. Make style reresolution actually use ancestor filters. r=dbaron 2012-03-12 22:54:15 -05:00
Phil Ringnalda
47dd3c842e Back out 83a33626d965:6e9330f5a9bd (bug 732667 and bug 705877) for Windows build bustage 2012-03-12 22:12:41 -07:00
Boris Zbarsky
23a4ff3a52 Bug 705877 part 5. Make style reresolution actually use ancestor filters. r=dbaron 2012-03-12 22:54:15 -05:00
Ehsan Akhgari
5097691ede Backout changeset d2340d74fc19 because of bug 735076 2012-03-12 18:51:44 -04:00
James Willcox
02313468a0 Bug 728371 - Make Flash work with GLES 2.0 and GL layers r=pcwalton
--HG--
extra : rebase_source : f7a9eb9dab84cb35ba17fb1551051dae2e744d00
2012-03-12 13:03:54 -04:00
Kartikaya Gupta
12d4a57946 Merge m-c to maple 2012-03-12 10:41:42 -04:00
Daniel Holbert
33cd7e3326 Backout f667f6c22bed (Bug 732988) for linux Cipc orange 2012-03-11 16:41:39 -07:00
Bas Schouten
f5a32fbb86 Bug 732988 - Part 2: Use ScaleToSize API for plugin drawing. r=roc 2012-03-11 22:33:23 +00:00
Avi Halachmi
569c1017ce Bug 206438 - Smooth scrolling should use the 'smoothwheel' algorithm. r=roc ui-r=limi 2012-03-11 13:55:00 -07:00
Bas Schouten
d9bb5a52c4 Bug 732988 - Part 2: Use ScaleToSize API for plugin drawing. r=roc 2012-03-13 01:41:34 +00:00
Mats Palmgren
b0ca471a79 Bug 730769 - Make nsLineBox use a frame hash table for lines with many frames. part=2/2 r=bz 2012-03-11 03:32:27 +01:00
Mats Palmgren
86f1c718ff Bug 730769 - Add NewLineBox/FreeLineBox methods to nsBlockFrame. part=1/2 r=bz 2012-03-11 03:32:27 +01:00
Mats Palmgren
111242deaa Bug 732941 - Deal with OOM when copying nsCOMArray. r=bz 2012-03-11 03:32:27 +01:00
Benoit Girard
1b3be902c1 Merge mc->Maple 2012-03-08 10:22:42 -05:00
Mats Palmgren
bc861fa127 Bug 728906 - Make nsIFrame::GetChildList return const nsFrameList&. r=bz 2012-03-08 02:57:37 +01:00
Mats Palmgren
bd31652ea8 Bug 728911 - Remove the nsBlockFrame::mBullet member and store it in a frame property instead (as needed). For an outside bullet, store it as a nsFrameList* to support GetChildList(kBulletList). part 2/2 r=bz 2012-03-08 02:57:37 +01:00
Mats Palmgren
4a726bcaef Bug 728911 - Add a HasPushedFloat() method and move the PushedFloatProperty declaration to the .cpp file. part 1/2 r=bz 2012-03-08 02:57:37 +01:00
Mats Palmgren
e446a70a30 Bug 728908 - Make nsLineBox::LastChild() DEBUG-only, since it's not used anymore to find the last frame of a line. part 2/2 r=bz 2012-03-08 02:57:37 +01:00
Mats Palmgren
95f1774653 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
Benoit Girard
392ef78337 Merge latest green changeset from mozilla-central to maple
--HG--
rename : dom/base/nsDOMMemoryReporter.cpp => dom/base/nsWindowMemoryReporter.cpp
rename : dom/base/nsDOMMemoryReporter.h => dom/base/nsWindowMemoryReporter.h
2012-03-05 13:41:15 -05:00
Benoit Girard
18b1521f00 Restore merge changeset 39a3044823b0, regression fixed upstream in mc 2012-03-05 13:09:05 -05:00
Benoit Girard
b24e1949c2 Backed out changeset 39a3044823b0 because of bad interaction with maple. 2012-03-02 18:32:46 -05:00
Benoit Girard
77a9a7b782 Merge mc->Maple, resolved conflicts 2012-03-02 14:27:05 -05:00
Josh Aas
b3efd8f2b1 Bug 723523: Plugin crash fix, nsPluginInstanceOwner::CreateWidget. r=jmathies 2012-03-07 11:48:30 -05:00
Benoit Girard
08f33710af Merge mc->maple 2012-03-01 10:44:44 -05:00
Kartikaya Gupta
134e9fec76 Merge m-c 2012-02-27 15:06:35 -05:00
Doug Turner
df4f53ea90 Merge with mozilla-central 2012-02-24 11:57:27 -08:00
Jonathan Kew
9e665aa5d9 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
Doug Turner
0aea58f84d merge with mozilla-central: 2012-02-22 09:30:09 -08:00
Rob Campbell
7fc1e05e22 merge fx-team to m-c 2012-02-22 12:47:22 -04: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
Ali Juma
03d84bc9ee Only try to scroll scrollable layers, and force Gecko to generate a scrollable layer even for smaller pages. 2012-02-20 11:30:05 -05:00
Chris Lord
2113b596a4 Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=roc
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.
2012-02-17 23:41:13 +00:00
Chris Lord
3c965d3f24 Backout scroll-clamp stuff again
I hope this makes it easier to merge and I'm not just wasting time...
2012-02-19 09:26:52 +00:00
Brad Lassey
9e55996669 merge from mozilla-central 2012-02-18 17:29:33 -05:00
Chris Lord
faa21ca506 Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.
2012-02-17 23:41:13 +00:00
Chris Lord
d3e2a70ed1 Backout 87134:1c1c22bd0291 and 87135:a4af71f1bc1f
Realised I made a mistake with the nsIFrameLoaderOwner.clampScrollPosition
patch and I want this to go in as a single commit and not break building of
Maple.
2012-02-18 00:46:23 +00:00
Chris Lord
4d8ab995ff Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.

--HG--
extra : rebase_source : db24645ff2fb04bb0ffa5ffb01a8d35a79274126
2012-02-17 23:41:13 +00:00
Doug Turner
b66a0f8126 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Matt Woodrow
8281079024 Bug 721082 - Make perspective-origin relative to the parent elements border box. r=roc 2012-02-15 22:28:22 +13:00
Matt Woodrow
914010d2c8 Bug 721082 - Constify nsIFrame::GetParentStyleContextFrame. r=roc 2012-02-15 22:28:21 +13:00
Daniel Holbert
c743f28bca Bug 733875: If you're a nsFrame inside a box, be sure to reflow your absolute children after box layout gives you your size. r=bz 2012-03-10 14:50:51 -08:00
Benoit Girard
b18a77e427 Merge viewport with tip 2012-02-08 20:42:17 -05:00
Jared Wein
43f524eb6a Bug 725700 - Keyboard arrow keys and scrollbar buttons should have consistent scrolling distances. 2012-02-20 11:24:36 -05:00
Patrick Walton
9bab740a07 Force the creation of an nsDisplayScrollLayer if a displayport was set on a scroll frame 2012-02-07 22:32:21 -08:00
Ehsan Akhgari
9475dfbd3e Merge mozilla-central into mozilla-inbound 2012-03-14 13:40:34 -04:00
Jonathan Kew
a62728835c bug 605021 - handle surrogates in text-run transformations. r=smontagu 2012-03-14 06:45:11 +00:00
Nathan Froyd
7adb7a65ea Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu 2012-02-29 10:57:47 -05:00
Bas Schouten
584c87e1e0 Bug 651192 - Part 5: Support remote access to ImageContainers. r=roc 2012-02-16 04:26:19 +01:00
Matt Woodrow
6ec8203d33 Bug 700240 - Print display lists to a file. r=roc,bjacob 2012-03-01 21:26:09 +13:00
Matt Woodrow
25747d1d89 Bug 731858 - Add index numbers to nsDisplayTextOverflow so that they are unique for a given frame. r=mats 2012-03-01 21:26:09 +13:00
Simon Montagu
6091adf028 Use GetGeneralCategory in IsPunctuationMark instead of the precompiled ccmap. Bug 731222, r=jfkthame 2012-03-01 00:17:27 -08:00
Tim Taubert
e259a2d456 merge m-c to fx-team 2012-01-31 14:45:13 +01:00
Jared Wein
e7ae7fed94 Bug 710373 - Pressing the vertical slider down arrow should move three lines instead of one. r=roc 2012-01-31 12:04:35 +01:00
Robert O'Callahan
1f8d8e9fb6 Bug 721627. Don't return nsRefPtr/nsCOMPtr from nsDisplayImage methods. nsDisplayImage::GetImage is unused anyway. r=mats 2012-01-30 18:16:54 +13:00
Daniel Holbert
dc37468a6d Bug 722510: Remove unused argument from nsBlockFrame::DrainOverflowLines. r=roc 2012-01-30 15:35:03 -08:00
Phil Ringnalda
f7620ea904 Back out eb80ab6ee07b (bug 721627) and 06d02e7132b2 (bug 721294) for orange and red 2012-01-27 20:31:29 -08:00
Robert O'Callahan
b8fdaacc86 Bug 721627. Don't return nsRefPtr/nsCOMPtr from nsDisplayImage methods. nsDisplayImage::GetImage is unused anyway. r=mats
--HG--
extra : rebase_source : 113647a8bf8101b7c4d7058bd205be734f38125d
2012-01-28 16:36:49 +13:00
Mats Palmgren
96ddce8640 Bug 672944 - Setup overflow areas for the scrolled block frame in a XUL scroll frame for the benefit of text-overflow; Make the text-overflow code grok the extra wrapper frame in this case. r=roc 2012-01-28 04:35:59 +01:00
Alexander Surkov
12cc97eaa6 Bug 732389 - image map accessible tree is not updated when image map is changed, r=bz, tbsaunde 2012-03-15 16:16:02 -04:00
Aryeh Gregor
49c29e97f1 Bug 719518 - Selection.extend() with no ranges should throw standard exception type; r=ehsan 2012-03-14 14:27:30 -04:00
Jonathan Kew
58cf1cf370 bug 735419 - eliminate unused parameter in the gfxTextRun constructor. r=jdaggett 2012-03-15 09:03:51 +00:00
Boris Zbarsky
09ef3c30b3 Bug 729143. Don't treat table rows as containing blocks. r=dbaron 2012-02-23 23:35:19 -05:00
Aryeh Gregor
8ea82697ee Bug 719503 - selection.deleteFromDocument() throws for collapsed selection; r=ehsan 2012-02-22 10:38:25 -05:00
Ed Morley
04577d02d6 Merge mozilla-central to mozilla-inbound 2012-02-23 01:03:16 +00:00
Mats Palmgren
41493a7bf6 Bug 726258 - Don't suppress the scrollbar because of a too small size in the scollbar minor direction. r=bz 2012-02-22 17:23:47 +01:00
Mats Palmgren
0ac9e5026b Bug 725376 - Don't do column balancing deeper than 2 nested levels to avoid hang. r=roc 2012-02-18 02:34:21 +01:00
Mats Palmgren
4c055246ea Bug 728255 - Replace nsLineBox::LastChild() calls with O(1) equivalents where possible. r=bz 2012-02-18 02:34:20 +01:00
Alexander Surkov
3d3d98dafc Bug 677154 - fix a typo 2012-02-18 02:51:29 +09:00
Alexander Surkov
6748e49919 Bug 677154 - Detached document accessibility tree, r=bz, marcoz 2012-02-18 02:38:43 +09:00
Josh Aas
dc0c9f0628 Bug 724717: Fix crash at nsPluginInstanceOwner::CARefresh. r=benwa 2012-02-16 21:27:37 -05:00
Aryeh Gregor
ac56e5e0b6 Bug 722463 - Transforms should not work on non-replaced inline elements. r=roc 2012-02-14 15:33:06 -05:00
Nathan Froyd
486f2eecb5 Bug 700659 - Slay nsHashSets in layout. r=dbaron 2011-11-08 15:24:37 -05:00
Simon Montagu
44aabada8f Mark the last line in the block dirty when text-align-last resolves to something other than left. Bug 726392, r=dbaron 2012-02-20 08:49:44 -08:00
Jonathan Watt
b84e0cbe12 Bug 416581, part 2 - Pay attention to the 'lang' attribute when fetching the user's font prefs for the CSS cascade. r=dbaron. 2012-01-25 23:52:26 +00:00
Chris Lord
37426c75dd Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=roc
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.
2012-02-17 23:41:13 +00:00
Ed Morley
051b38fe95 Backout 9062b3e04318 (bug 718516) for reftest failures 2012-02-08 00:56:56 +00:00
Scott Johnson
453750958f Bug 718516: Remove call to FinishReflowWithAbsoluteFrames until nsColumnSetFrame is fully implemented as an absolute container. [r=ehsan] 2012-02-07 17:21:48 -06:00
Nicholas Nethercote
dd32d38d63 Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Edwin Flores
3f5de025f0 Bug 710521 - Refactor gfxFont to separate out drawing stroke and drawing to path. r=roc 2012-01-26 13:11:18 +01:00
Jonathan Watt
7024204d0f Bug 731959 - Display list support for the 'clip' property in SVG means referring to "AbsPos" clip is misleading. r=bz. 2012-03-02 08:28:56 +00:00
Matt Woodrow
28e71e1f9a Bug 731777 - Correctly recompute overflow areas for frames with transform perspective applied. r=roc 2012-03-12 15:04:25 +13:00
L. David Baron
3c6538e862 Make selects and things inside them not be containers for font size inflation, so that font inflation inflate selects appropriately along with what surrounds them. (Bug 706609, patch 8) r=roc 2012-01-24 17:21:29 -08:00
L. David Baron
411a77c90f Apply font size inflation to 'line-height: normal' by using the metrics of the inflated font rather than multiplying the inflation by the result for the uninflated font. (Bug 706609, patch 7) r=roc
This matters primarily because it makes font inflation easier to test by
avoiding rounding differences.  It fixes two existing tests that were
disabled and also makes it possible to test font inflation of selects
(since options have line-height: normal ! important in the UA style
sheet).
2012-01-24 17:21:29 -08: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
L. David Baron
d789ef0b1b 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
L. David Baron
ba70aee5a1 Set inflation container to null during ComputeSize calls for inflation containers, when we should not have inflation applied. (Bug 706609, patch 4.5) r=roc 2012-01-24 17:21:29 -08:00
L. David Baron
0ce777d92e Set inflation container to null during parts of intrinsic sizing that should not have inflation applied. (Bug 706609, patch 4) r=roc
This is the first 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
58d3dd0576 Make floating :first-letter frames not be containers for font size inflation, to avoid triggering assertions. (Bug 706609, patch 3.5) r=roc 2012-01-24 17:21:28 -08:00
L. David Baron
5f13418d9a Set inflation container and width correctly during reflow. (Bug 706609, patch 3) r=roc
This is the second 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:28 -08:00
L. David Baron
a2396850d4 Add a frame state bit for whether a frame is a container for font size inflation (Bug 706609, patch 1) r=roc
This moves the logic currently in
nsLayoutUtils::IsContainerForFontSizeInflation into frame initialization
so that we can (later, for bug 706193) make that logic more complicated.
2012-01-24 17:21:28 -08:00
Jonathan Watt
9fb3c8bb9f Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron. 2012-01-24 13:09:55 +00:00
Phil Ringnalda
1a2cd6d9e8 Bug 718564 - adjust crashtest assertion ranges to reflect reality part two, the forgetting of one 2012-01-18 22:47:08 -08:00
Phil Ringnalda
dc05fd6f9b Bug 718564 - adjust crashtest assertion ranges to reflect reality
--HG--
extra : rebase_source : 3ae657663239f3382d5163170c0a098e0c78ed69
2012-01-18 21:52:43 -08:00
Jeff Muizelaar
a47ca866d2 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Timothy Nikkel
26a00fb960 Bug 675015. Wait until scrolling is complete to dispatch synthetic mouse moves. r=roc 2012-01-18 22:13:02 -06:00
James Willcox
8f71c6ffa1 Bug 707439 - Fix Flash plugin positioning
--HG--
extra : rebase_source : aaa41297d293ffde1aabe5632ade6c416b4d541f
2012-01-18 10:41:35 -05:00
Chris Lord
f52e536a07 Bug 524925 - Reftest that checks whether dynamic transform changes result in the correct scrollable overflow being propagated through parent frames. part=6/6 r=dbaron 2012-01-18 21:04:51 +01:00
Mats Palmgren
2a48071cb7 Bug 524925 - Consolidate overflow clipping checks to nsFrame::ApplyOverflowClipping(); and fix some code style nits. part=5/6 r=roc 2012-01-18 21:04:51 +01:00
Benjamin Stover
a371dc7830 Bug 524925 - Recompute overflow without reflowing for transforms. part=1/6 r=dbaron
Add an extra change hint, UpdateOverflow, that can be used to specify that
a frame's overflow areas may have changed and that they need to be recalculated.
When a transform on a frame changes, instead of marking it for reflow, set this
hint instead.

There is an added virtual function on nsIFrame, UpdateOverflow, which is called
recursively on a frame when the corresponding hint is set, to allow it to
update its overflow areas.
2011-06-15 14:03:49 -07:00
Matt Brubeck
b79b1e58d3 Back out 88733ce1bef3 (bug 718440) because of Windows build failure 2012-01-17 15:15:47 -08:00
Jeff Muizelaar
315982723f Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Marco Bonardo
61916233e6 Merge last green PGO changeset from inbound to central 2012-01-17 16:22:33 +01:00
Tim Taubert
dc0feeb24e merge m-c to fx-team 2012-01-16 11:20:19 +01:00
Jared Wein
843a61d98d Bug 198964 - Enable smooth scrolling by default. r=gavin 2012-01-13 16:26:34 -08:00
Josh Matthews
93a2adcf34 Bug 454790 - Allow programmatic selection of -moz-user-select: none frames. r=roc 2012-01-12 15:59:19 -05:00
Simon Montagu
3ca7ecdbcb Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 19:52:21 +02:00
Ed Morley
2099bb7e42 Backout 6605cc311ec5 & 9217303c2e5c (bug 536557) for M4 orange 2012-01-12 15:33:00 +00:00
Simon Montagu
dec2df3fe1 Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 16:29:20 +02:00
Ehsan Akhgari
545286c408 Bug 171237 - Part 2: Correct the calls to ScrollIntoView which were not updated as part of bug 605138; r=roc 2012-01-11 20:19:19 -05:00
Ehsan Akhgari
18f246bc79 Bug 171237 - Center the search results instead of scrolling only enough to show them in order to provide more visual context; r=roc 2012-01-11 20:18:23 -05:00
David Zbarsky
785e84c27d Bug 682611 - Part 2: Remove nsIRange; r=smaug 2012-01-10 15:19:54 +01:00
Markus Stange
eb399a7302 Bug 598482 part 20 - Rename Update to Invalidate; view updates are now always asynchronous. r=roc 2011-12-23 22:52:25 -05:00
Markus Stange
d13d62c3a3 Bug 598482 part 7 - Remove NS_VMREFRESH_* flags. NS_VMREFRESH_NO_SYNC is now the unchangable default. r=roc 2011-12-23 22:52:22 -05:00
Jonathan Kew
c1c93594ee bug 715471 - use fallible allocation for potentially large buffers in nsTextFrameThebes.cpp. r=roc 2012-01-14 22:19:51 +00:00
Ed Morley
cfb250c0d7 Backout 148044813372 (bug 715471) for multiple test failures 2012-01-13 11:26:13 +00:00
Jonathan Kew
896e762f5e bug 715471 - use fallible allocation for potentially large buffers in nsTextFrameThebes.cpp. r=roc 2012-01-13 10:35:02 +00:00
Olli Pettay
0175dba70a Bug 714162 - Don't traverse certainly alive selections, additional patch, r=mccr8 2012-01-06 21:08:08 +02:00
Kyle Huey
3a27625aad Bug 714752: Make imgIContainerObserver::FrameChanged take an imgIRequest*. r=joe sr=roc 2012-01-06 07:32:38 -05:00
Jonathan Kew
2097fc88d4 bug 703100 - pt 6 - remove pango-specific todo()s in test_backspace_delete, now that it passes on all platforms. r=roc 2012-01-05 11:54:45 +00:00
Jonathan Kew
6e85485e5c bug 703100 - pt 5 - optimize allocation of gfxTextRun objects to avoid separate allocation for CompressedGlyph records. r=roc 2012-01-05 11:54:45 +00:00
Jonathan Kew
1bf3af6cfe bug 703100 - pt 3 - remove copy of original characters from gfxTextRun. r=roc 2011-12-06 12:39:19 +00:00
Jonathan Kew
f702c54c74 bug 703100 - pt 1 - eliminate gfxTextRunWordCache and gfxTextRunCache. r=roc 2011-12-06 12:39:18 +00:00
Jeff Muizelaar
b01d65c558 Bug 715232. Add some more MOZ_FINAL. r=joe
--HG--
extra : rebase_source : 1d4bf4c624dbbfd77b3a80f88478a87fa5df9506
2012-01-03 13:38:10 -05:00
David Bolter
38d7fde319 Bug 495912 - Expose content in HTML canvas elements. r=bz,roc r=surkov(tests)
layout-mentor: bz (mucho thanks!)

We make html canvas frame a container and render frames for its content which makes a lot of what we need for accessibility "just work".
2012-02-17 23:26:37 -05:00
Ed Morley
d9eda11faf Backout 547de632a3e2 (bug 495912) for mochitest-a11y orange 2012-02-29 18:42:58 +00:00
David Bolter
28fe167db3 Bug 495912 - Expose content in HTML canvas elements. r=bz,roc r=surkov(tests)
layout-mentor: bz (mucho thanks!)

We make html canvas frame a container and render frames for its content which makes a lot of what we need for accessibility "just work".
2012-02-17 23:26:37 -05:00
Timothy Nikkel
997c3fe22a Bug 714346. Part 2. When we create the display clip item that contains a subdocument we use the prescontext of the child document to snap the clip's bounds. This is wrong when the parent and child documents don't have the same app units per dev pixel ratio. Leave the presshell before creating the clip item. r=mats 2012-02-28 23:53:52 -06:00
Timothy Nikkel
80ae2df9e6 Bug 714346. Part 1. Make some code stop checking useless return values because it makes the control flow more complicated then needed. r=mats 2012-02-28 23:53:37 -06:00
Robert O'Callahan
3c929bbc5d Bug 724189. Don't invalidate entire frame when the frame has shadows or effects and the post-transform overflow area changes. r=mats 2012-02-05 21:14:00 -08:00
Mats Palmgren
3b7a577cde Bug 725376 - Don't do column balancing deeper than 5 nested levels to avoid hang. r=roc 2012-02-12 22:21:51 +01:00
Phil Ringnalda
e66d5e8494 Back out 1cd8c9b40035 (bug 725376), df43cc1f72e1 (bug 725535), and 8a820e4ee7f6 (bug 726364) for reftest orange 2012-02-12 14:01:58 -08:00
Mats Palmgren
80cecffade Bug 725376 - Don't do column balancing deeper than 5 nested levels to avoid hang. r=roc 2012-02-12 22:21:51 +01:00
Scott Johnson
0a202e6b66 Bug 718516: Replace call of FinishReflowWithAbsoluteFrames() with FinishAndStoreOverflow() for nsColumnSetFrame to prevent crash. [r=ehsan] 2012-02-10 11:06:23 -06:00
Bas Schouten
99fd260eb0 Bug 724886: Push images from plugin code instead of pulling from nsObjectFrame. r=roc 2012-02-08 16:34:27 +01:00
L. David Baron
714e0a8683 Weaken the quirks mode inline box model zeroing-of-containers when those containers have children that are vertical-align: top or bottom, so that it's a little more like when they have children with other values of vertical-align (except that it's an approximation). (Bug 714519) r=roc
--HG--
extra : transplant_source : %1B%A2%1A%2Cb%7BcS%C9%5Et%F8%F16%E3%1A%12%D67%15
2012-01-01 17:35:12 -05:00
Ehsan Akhgari
0382216924 Bug 713856 - Dynamic change of DOM in lists before block element creates blank line; r=roc 2011-12-30 17:22:47 -05:00
Bobby Holley
4b6add2c77 Bug 713747 - Use UniversalXPConnect and UniversalXPConnect only in test coverage. r=bz 2011-12-30 09:35:38 -08:00
Ms2ger
b5c39750d9 Merge m-c to m-i. 2011-12-30 12:17:22 +01:00
Olli Pettay
568ce4a0b1 Bug 714162 - Don't traverse certainly alive selections, r=mccr8 2011-12-30 12:47:23 +02:00
Nicholas Nethercote
da987c9b3a Bug 711895 - Tweak the warning options used for GCC builds. r=waldo, derf.
--HG--
extra : rebase_source : bbe982c5feceac25fb4c0ccd03ced3a874205c38
2011-12-28 19:59:19 -08:00
Phil Ringnalda
90f2a086a4 Back out dc7c7734ec7c, f793f9cfa72c, 10ea92a6a850 (bug 591718) for Android b-c orange in mobile/chrome/tests/browser_scrollbar.js 2011-12-27 20:34:08 -08:00
Robert O'Callahan
ed9045b960 Bug 591718. Part 1: rename some poorly-named methods, rework global-transform methods to avoid computing bounding-boxes more than once when there are are multiple transformed ancestors, make sure nsIFrame::GetTransformMatrix can stop at any desired ancestor. r=mats 2011-12-28 16:24:18 +13:00
Robert O'Callahan
755acd5237 Bug 591718. Part 1: rename some poorly-named methods, rework global-transform methods to avoid computing bounding-boxes more than once when there are are multiple transformed ancestors, make sure nsIFrame::GetTransformMatrix can stop at any desired ancestor. r=mats 2011-12-28 16:24:18 +13:00
Mats Palmgren
ecaac9ba30 Bug 515530 - Remove nsHTMLContainerFrame. r=roc 2011-12-27 21:18:48 +01:00
Scott Johnson
31e988481d Bug 695222 - Implement column-fill part of CSS3 multicol spec. r=roc,dbaron 2011-12-25 23:25:59 -06:00
Ms2ger
1ea34290d5 Bug 709509 - Remove manual refcounting and QIing from nsBulletFrame::DidSetStyleContext; r=dbaron 2011-12-24 09:28:23 +01:00