Commit Graph

3529 Commits

Author SHA1 Message Date
Matt Woodrow
6905e450dd Bug 721082 - Constify nsIFrame::GetParentStyleContextFrame. r=roc 2012-02-15 22:28:21 +13:00
Boris Zbarsky
11c8d77a1c Bug 728516. Refactor frame construction for things that want to wrap kids in a block. r=roc 2012-02-21 18:01:40 -05:00
Boris Zbarsky
519881edb7 Bug 728111. Fix the block inside foreignObject to really be the absolute containing block for its kids. r=roc 2012-02-21 18:01:40 -05:00
Ed Morley
4616e748a8 Backout 5ba9a4f41128 (bug 724614) for OS X reftest failures
--HG--
rename : layout/reftests/transform-3d/scale3d-all-separate.html => layout/reftests/transform-3d/scale3d-2-ref.html
2012-02-21 13:53:11 +00:00
Aryeh Gregor
dd0a23ced4 Bug 724614 - 3D scaling makes text blurry. r=mattw
--HG--
rename : layout/reftests/transform-3d/scale3d-2-ref.html => layout/reftests/transform-3d/scale3d-all-separate.html
2012-02-09 10:09:39 -05:00
Masayuki Nakano
b18d48114e Bug 707859 PresShell shouldn't synthesize mousemove events during drag r=smaug 2012-02-21 12:19:18 +09:00
Zack Weinberg
58cb765cfa Bug 96971: Move GetSystemFont from nsDeviceContext to mozilla::LookAndFeel. r=roc 2012-02-20 15:19:48 -08:00
Jesse Ruderman
8e30b02deb Bug 728717 - Make the 'Some pres arena objects were not freed' assertion fatal. r=bz 2012-02-19 12:40:14 -08:00
Jonathan Watt
8178523710 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
Daniel Holbert
54a9b90060 Bug 728462: Remove declaration of no-longer-used 'GfxTextrunWordCacheMallocSizeOf'. r=jfkthame 2012-02-18 09:47:52 -08:00
Chris Jones
6ab2499104 Bug 724189: Add a little fuzz factor to the max pre-render size for transformed frames, in case the frame has borders or shadows. r=roc 2012-02-05 08:34:10 -08:00
Chris Jones
a0c8543dca Bug 725580: Fluff out the bounds of pre-rendered nsDisplayTransforms to their visual overflow rect in order to avoid killing their dedicated layer mid-activity, when part of the frame isn't painted. r=roc 2012-02-09 01:39:30 -08:00
Matt Woodrow
77b2ac0b85 Bug 722603 - Part 2: Use cached transform as much as possible (r=roc). 2012-02-14 01:12:49 -08:00
Matt Woodrow
11c4f62cb8 Bug 722603 - Part 1: Use cached transform in nsDisplayTransform::GetBounds() (r=roc) 2012-02-14 01:11:31 -08:00
Mats Palmgren
2155a76fec Bug 725535 - "ASSERTION: Only transformed frames should have UpdateTransformLayer hint". r=roc 2012-02-12 22:21:50 +01:00
Phil Ringnalda
fe5618201e 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
d28a42b8c2 Bug 725535 - "ASSERTION: Only transformed frames should have UpdateTransformLayer hint". r=roc 2012-02-12 22:21:50 +01:00
Aryeh Gregor
bb0cfdaf2b Bug 719446 - getComputedStyle().MozTransform shouldn't have "px" in it; r=roc 2012-02-10 21:04:59 +00:00
Aryeh Gregor
fb8461f380 Bug 725426 - Incorrect getBoundingClientRect() for transform-style: flat. r=roc 2012-02-08 14:36:16 -05:00
Ed Morley
70ec936a7b Merge mozilla-central to mozilla-inbound 2012-02-09 23:09:40 +00:00
Ed Morley
920cd550a4 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-02-09 17:54:45 +00:00
Chris Lord
e86dad71db Bug 722325 - Revert bug 720987 for transformed frames. r=roc
The fix checked in for bug 720987 caused a major rendering regression with
native fennec. Revert it for transformed frames until the correct fix is found.
2012-02-09 16:42:14 +01:00
Ed Morley
08ace01a8b Backout 79121553f728 (bug 720799), 4a763183482f (bug 720795), e965486f4b50 & 4a7c7c6b9b11 (bug 720794) for failing to build on any platform 2012-02-09 12:06:50 +00:00
Mounir Lamouri
c8c04772bd Bug 720799 - Don't use mDocShell in nsScreen. r=jst 2012-02-06 16:31:16 +01:00
Heather Arthur
427ed3f6af Bug 708874 - API for locking pseudo-class state of an element. r=bz 2012-02-08 10:42:38 -08:00
Ehsan Akhgari
d9eb65d472 Bug 699353 - Don't attempt to paint the caret if the offset for the frame is invalid; r=roc; r=roc 2012-01-26 16:40:25 -05:00
Ed Morley
7307ed3da9 Backout 1ca8d5a931ac (bug 720799), e4781b684008 (bug 720795), 8a4e12d93a23 & 1fc8123a2ea4 (bug 720794) for bustage 2012-02-09 16:42:07 +00:00
Mounir Lamouri
62a283786d Bug 720799 - Don't use mDocShell in nsScreen. r=jst 2012-02-06 16:31:16 +01:00
Robert O'Callahan
4146c611c0 Bug 724502. Ensure that UpdateTransformLayer and UpdateOpacityLayer change hints generate a new change list entry for every frame whose style asks for them. r=matspal 2012-02-08 11:52:59 +13:00
Robert O'Callahan
e1d954ff3b Bug 722923. Part 1: Strip opacity/transform update hints when we recursively invalidate over our children. r=mats 2012-02-08 11:52:59 +13:00
Mats Palmgren
78c681b88a Bug 724432 - Skip UpdateOverflow if we did Reflow. Don't propagate UpdateOverflow in ReResolveStyleContext. r=roc 2012-02-07 12:31:47 +01:00
Mats Palmgren
a331194ebb merge backout 2012-02-07 12:31:30 +01:00
Mats Palmgren
b9dc5684a2 Backout bug 719177 (2cae7e5c62ae,07bd73451aa4,13739446fc8e,0246973f2513,f222fbece983,8f11aaac24dc). r=roc 2012-02-07 12:31:24 +01:00
Mats Palmgren
8d93bc8689 merge backout 2012-02-07 12:31:08 +01:00
Mats Palmgren
1404cfac3b Backout bug 722325 (a8b8c4489e4e). r=roc 2012-02-07 12:31:03 +01:00
Chris Lord
35e729853f Bug 722325 - Revert bug 720987 for transformed frames. r=roc
The fix checked in for bug 720987 caused a major rendering regression with
native fennec. Revert it for transformed frames until the correct fix is found.
2012-02-01 08:50:24 +00:00
Bas Schouten
f987b74374 Bug 715785: Make ImageContainers independent of LayerManagers. r=roc 2012-02-01 03:18:30 +01:00
Mats Palmgren
f61be142f3 Bug 719177 - Introduce NS_STYLE_HINT_UPDATE_OVERFLOW as a short-hand for nsChangeHint(nsChangeHint_RepaintFrame | nsChangeHint_UpdateOverflow). r=roc 2012-01-28 04:35:59 +01:00
Mats Palmgren
e1cd471539 Bug 719177 - Replace all NS_STYLE_HINT_VISUAL with nsChangeHint_RepaintFrame except for 'visibility' and 'z-index' which are the only ones that need SyncFrameView. r=roc 2012-01-28 04:35:58 +01:00
Mats Palmgren
37be13d7c9 Bug 720987 - Don't use the existing overflow areas when calculating the new overflow areas after a style change. r=roc 2012-01-28 04:35:58 +01:00
Nicholas Nethercote
2806f8e46a Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron. 2012-01-02 18:19:14 -08:00
Simon Montagu
bcbbe9a509 Remove unnecessary test for next sibling. Bug 722137, r=roc 2012-01-30 11:05:28 -08:00
Simon Montagu
f90e5dabf3 test for bug 722137, r=roc 2012-01-30 10:59:34 -08:00
Scott Johnson
f1c74e3e8a Bug 706198 - Disable font inflation on sites optimized for mobile to avoid strangely inflated text. [r=mbrubeck,dbaron]
--HG--
extra : rebase_source : 60d764b0a76ae87515a3e669ba76adc61926c862
2012-01-30 16:52:11 -06:00
Mats Palmgren
0d832e174e Bug 706889 - reftest. 2012-01-30 18:48:46 +01:00
Robert O'Callahan
01d0e1b487 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
Robert O'Callahan
f4872369b6 Bug 721294. Only call nsIPresShell::WillPaint for the root presshell. Pass aWilLSendDidPaint correctly to nsIPresShell::Paint. Remove aPaintDefaultBackground from nsIPresShell::Paint. r=mats 2012-01-28 16:36:23 +13:00
Phil Ringnalda
124120bf61 Back out eb80ab6ee07b (bug 721627) and 06d02e7132b2 (bug 721294) for orange and red 2012-01-27 20:31:29 -08:00
Robert O'Callahan
e7fe111cd2 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
Robert O'Callahan
5cea7f8aa0 Bug 721294. Only call nsIPresShell::WillPaint for the root presshell. Pass aWilLSendDidPaint correctly to nsIPresShell::Paint. Remove aPaintDefaultBackground from nsIPresShell::Paint. r=mats
--HG--
extra : rebase_source : f54afeed8d3d41d3e8f9118386e4a67cfac82a98
2012-01-28 16:36:23 +13:00
Nicholas Nethercote
a7ad4ef70e Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Simon Montagu
acc1d8de29 Recreate content when a deleted frame is the only child of a bidi continuation frame. Bug 718236, r=roc 2012-01-26 00:04:22 -08:00
Jon Buckley
53fcaffe40 Bug 682299 - Implement CORS support for the <video> tag. r=roc 2012-01-25 17:31:30 -05:00
Bill McCloskey
b5b7133e4b Bug 706227 - Add way for JS_GC API users to give detailed reason for invocation (r=mccr8) 2012-01-25 10:59:55 -08:00
Ms2ger
924b63075d Merge m-c to m-i. 2012-01-25 11:06:40 +01:00
Ms2ger
e81715cf11 Bug 718170 - Part b: Use nsINode in IsVisTextNode; r=ehsan 2012-01-25 08:50:05 +01:00
Matt Woodrow
8147ee2909 Bug 718809 - Use TransformBounds in TransformGfxRectToAncestor. r=roc 2012-01-23 14:07:37 +13:00
Nicholas Cameron
650a995230 Bug 718521 - Fix bug clipping to rounded rectangles for multiple objects. r=roc 2012-01-20 09:21:41 +13:00
Jeff Muizelaar
9c9e2eed37 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
James Willcox
f2a22733cd Bug 707439 - Fix Flash plugin positioning
--HG--
extra : rebase_source : aaa41297d293ffde1aabe5632ade6c416b4d541f
2012-01-18 10:41:35 -05:00
Wes Johnston
43680b21b4 Bug 603008 - Platform support for multitouch events. r=smaug
* * *
Bug 603008 - Platform support for multitouch events.
* * *
ifdefandroid
2011-12-16 16:24:11 -08:00
Mats Palmgren
9d52d983fd 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
Mats Palmgren
a1873efda5 Bug 524925 - Update the overflow for all the affected frames, not just the primary frame. And the ancestors of those. part=2/6 r=roc 2012-01-18 21:04:51 +01:00
L. David Baron
c7ac84126f 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
9e76faa89f 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
5eb8920348 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
185e4fa106 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
77cffa9ed9 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
82aef174b7 Add member variables to pres context to track, during reflow and intrinsic sizing, the current inflation container and its width. (Bug 706609, patch 2) r=roc
This is the first 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
06fe8e9788 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
cb807222d1 Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron. 2012-01-24 13:09:55 +00:00
Benjamin Stover
0a52de4032 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
Serge Gautherie
6bfd083701 Bug 718546. (Av1) bug389321-1.html: Use EventUtils sendChar() to send char, not sendKey(). r=ehsan. 2012-01-17 20:40:52 +01:00
Marco Bonardo
1b31e5f0a2 Merge last green PGO changeset from inbound to central 2012-01-17 16:22:33 +01:00
Justin Wood
b50ee39e04 Merge last green PGO from inbound to mozilla-central 2012-01-16 22:27:53 -05:00
Serge Gautherie
e59df39a13 Bug 717868. (Bv1) bug389321-1.html: Fix "Unknown key: VK_VK_BACK_SPACE". r=ehsan. 2012-01-16 20:15:59 +01:00
Simon Montagu
1aba6081f6 Make continuations non-fluid when the end of a bidi paragraph is forced by a preformatted newline. Bug 698335, r=roc 2012-01-15 06:56:04 -08:00
Justin Wood
94e66a942e Merge m-c tip to m-i 2012-01-15 05:29:24 -05:00
Ms2ger
bbddcb26cd Bug 717371 - Don't use nsINode::GetChildAt in PresShell::GoToAnchor; r=bz 2012-01-15 09:13:12 +01:00
Serge Gautherie
7df0dcdf8d Bug 717868. (Av1) test_reftests_with_caret.html: Fix "SimpleTest.finish()" handling. r=ehsan. 2012-01-14 01:09:39 +01:00
Ed Morley
329417cd35 Merge mozilla-central to mozilla-inbound 2012-01-13 03:19:46 +00:00
Matt Brubeck
ac8a7f3a3e Merge last green changeset from mozilla-inbound to mozilla-central 2012-01-12 08:22:14 -08:00
Jonathan Watt
7845be68a0 Bug 715769 - Kill unused enums nsWidgetType and nsLanguageSpecificTransformType. r=bernd.mielke.
--HG--
extra : rebase_source : b01505b3dab86272ec998ad2cf853db2262a0e63
2012-01-16 21:35:16 +00:00
Kyle Huey
b641d37a45 Bug 703133: Flush layout data asynchronously on charset changes. r=bz 2012-01-11 21:58:44 +01:00
Boris Zbarsky
ffb5cb2050 Bug 716793. Dispatch synthetic mousemove off the refresh driver, not as fast as we can. r=roc
We use Flush_Display here because mousemoves flush out layout, so we want to do the synthetic one after we've done our normal layout flushing
2012-01-10 00:23:29 -05:00
Nathan Froyd
63663b3f1f Bug 709971 - HTML reflow telemetry; r=bz 2012-01-10 15:08:43 -05:00
Robert O'Callahan
33f12d88bb Bug 713523. Part 2: Add SimplifyOutward for mVisibleAboveRegion and mDrawAboveRegion to avoid performance sinkholes when many layers are above a single ThebesLayer. r=tn 2012-01-12 00:26:33 +13:00
Robert O'Callahan
31c1e64fa9 Bug 713532. Part 1: Suppress subpixel antialising in retained layers with an ancestor which has a non-integer-translation transform. r=tn 2012-01-12 00:26:33 +13:00
Simon Montagu
7b2f366751 Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 19:52:21 +02:00
Ed Morley
097cd18f1b Backout 6605cc311ec5 & 9217303c2e5c (bug 536557) for M4 orange 2012-01-12 15:33:00 +00:00
Simon Montagu
6d9e29e3e5 Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 16:29:20 +02:00
David Zbarsky
e96cf389ad Bug 682611 - Part 2: Remove nsIRange; r=smaug 2012-01-10 15:19:54 +01:00
Boris Zbarsky
936b705187 Bug 598482 part 23. Set a backup timer to update plugin geometry if we don't manage to do any painting or layout flushes for a while. r=roc 2011-12-23 22:52:26 -05:00
Markus Stange
76504f5eaa 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
a953a374e7 Bug 598482 part 19 - Remove unused aViewManager argument. r=roc 2011-12-23 22:52:24 -05:00
Boris Zbarsky
7cef46d7c3 Bug 598482 part 16. When flushing layout, also flush out widget geometry changes. r=roc 2011-12-23 22:52:23 -05:00
Markus Stange
28a839403a Bug 598482 part 15 - Rename view update batches to refresh disable batches and only use them in the two places that can enter reflow (where synchronous painting is permitted). r=roc 2011-12-23 22:52:23 -05:00
Markus Stange
7fe44fb651 Bug 598482 part 11 - Set up a connection between the view manager and the refresh driver. r=roc 2011-12-23 22:52:22 -05:00
Markus Stange
cb70f28632 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
Markus Stange
b976b6e46e Bug 598482 part 2 - Remove synchronous painting APIs from nsIViewManager. r=roc 2011-12-23 22:52:21 -05:00