Граф коммитов

9744 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky cc77afb710 Bug 736389. Get rid of code that reresolved style on overflow containers multiple times and in the process violated some invariants other code depended on. r=mats 2012-03-16 13:13:14 -04:00
Stefan 87068f6ef7 Bug 734490: fix build failures with Clang and GCC 4.7 in TestPoisonArea.cpp. r=zwol 2012-03-15 11:01:08 -07:00
Jonathan Kew 99b1766e43 bug 735647 - use larger buffers for key strings in ReflowCountMgr, and fix leakage & allocator mismatch. r=matspal 2012-03-15 09:00:25 +00:00
Ali Juma 442a4a7737 Bug 725095 - Address Layout review comments. r=mats 2012-03-13 12:57:31 -04:00
Benoit Girard 5a409414b0 Merge mc->Maple 2012-03-13 11:05:28 -04:00
Boris Zbarsky 2fa1bff894 Bug 732667. Only do checks for :hover selectors when hover state changes on nodes which have relevant hover rules. r=dbaron 2012-03-12 22:54:15 -05:00
Boris Zbarsky 87faa2f074 Bug 705877 part 6. Make frame construction use ancestor filters when resolving style. r=dbaron 2012-03-12 22:54:15 -05:00
Boris Zbarsky e977d7d36d Bug 705877 part 5. Make style reresolution actually use ancestor filters. r=dbaron 2012-03-12 22:54:15 -05:00
Phil Ringnalda 978972c307 Back out 83a33626d965:6e9330f5a9bd (bug 732667 and bug 705877) for Windows build bustage 2012-03-12 22:12:41 -07:00
Boris Zbarsky 2d490001f7 Bug 732667. Only do checks for :hover selectors when hover state changes on nodes which have relevant hover rules. r=dbaron 2012-03-12 22:54:15 -05:00
Boris Zbarsky e921c0f31b Bug 705877 part 6. Make frame construction use ancestor filters when resolving style. r=dbaron 2012-03-12 22:54:15 -05:00
Boris Zbarsky 88e33185f8 Bug 705877 part 5. Make style reresolution actually use ancestor filters. r=dbaron 2012-03-12 22:54:15 -05:00
Kartikaya Gupta 69b22d9e28 Bug 732564 - Add a before-first-paint event that fires before the first paint of the new document. r=Cwiiis, bz 2012-03-12 12:03:38 -04:00
Ali Juma a3b9d3c4f9 Bug 732091 - Part 3: Pass on the isFirstPaint flag from the PresShell to the compositor via the layer manager. r=tnikkel,bgirard 2012-03-12 11:50:15 -04:00
Ali Juma 8adb7205b6 Bug 732091 - Part 2: Add {set,get}IsFirstPaint to nsIDOMWindowUtils and nsIPresShell. r=ehsan 2012-03-12 11:50:11 -04:00
Kartikaya Gupta fbab310531 Merge m-c to maple 2012-03-12 10:41:42 -04:00
Benoit Girard 0e1d187a71 Merge mc->maple 2012-03-09 18:16:26 -05:00
Benoit Girard 7ac5907fc6 Merge mc->Maple 2012-03-08 10:22:42 -05:00
Mats Palmgren 1c082840fa 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 8460f3edbe Merge mc->Maple 2012-03-07 11:10:45 -05:00
Benoit Girard a4f3dcbb49 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 95983342f4 Restore merge changeset 39a3044823b0, regression fixed upstream in mc 2012-03-05 13:09:05 -05:00
Jonathan Watt 95f4933830 Bug 734218 - nsChangeHint_RepaintFrame should only invalidate the bounds of SVG frames, not update them. r=dholbert. 2012-03-09 08:55:28 +00:00
Benoit Girard 17ae78009b Backed out changeset 39a3044823b0 because of bad interaction with maple. 2012-03-02 18:32:46 -05:00
Benoit Girard a6f181b1fe Merge mc->Maple, resolved conflicts 2012-03-02 14:27:05 -05:00
Ehsan Akhgari 26cd974103 Test case for bug 667512; r=smontagu 2012-03-07 17:43:51 -05:00
Timothy Nikkel db2d4f00be Bug 664707. Special case converting event coordinates when the frame is the root frame in the widget. r=matspal
This has the side benefit of making events work in transformed select dropdown popups and is the real reason for making the change.
2012-03-03 15:24:13 -06:00
Benoit Girard a637eac5aa Merge mc->maple 2012-03-01 10:44:44 -05:00
Chris Lord 606c649853 Bug 729534 - Semi-fix scroll layer retention. r=mats
When flattening the display list, the last child frame in a scroll layer is
used to retain the associated ThebesLayer. Instead, use the first child, which
tends to be more stable. This fixes retaining layers when scrolling through
engadget.com.

Fix by Robert O'Callahan <robert@ocallahan.org>
2012-02-29 17:01:50 +00:00
Kartikaya Gupta 2ac93dd0ea Merge m-c 2012-02-27 15:06:35 -05:00
Simon Montagu 78cab1b99e Treat <wbr> like ZERO WIDTH SPACE during bidi resoltion. Bug 729047, r=ehsan 2012-02-25 23:12:55 -08:00
Doug Turner f72f4d6343 Merge with mozilla-central 2012-02-24 11:57:27 -08:00
Jonathan Kew c61fa712b3 bug 724826 pt 1 - move various Unicode property tables from gfx to intl. r=smontagu
--HG--
rename : gfx/thebes/gfxUnicodeProperties.h => intl/unicharutil/public/nsUnicodeProperties.h
rename : gfx/thebes/gfxUnicodeScriptCodes.h => intl/unicharutil/public/nsUnicodeScriptCodes.h
rename : gfx/thebes/gfxUnicodeProperties.cpp => intl/unicharutil/src/nsUnicodeProperties.cpp
rename : gfx/thebes/gfxUnicodePropertyData.cpp => intl/unicharutil/src/nsUnicodePropertyData.cpp
rename : gfx/thebes/genUnicodeScriptData.pl => intl/unicharutil/tools/genUnicodePropertyData.pl
2012-02-24 10:15:46 +00:00
Doug Turner 6d9d1aadcb merge with mozilla-central: 2012-02-22 09:30:09 -08:00
Rob Campbell 5df0c74160 merge fx-team to m-c 2012-02-22 12:47:22 -04:00
Brad Lassey 8fc996baeb bug 723597 - Spurious mouseover event fired on page load r=tn
--HG--
extra : rebase_source : b8c820b54dc41160451eb2c16e1cec32be046951
2012-03-12 19:30:40 -04:00
Bill McCloskey ad4f932fd6 Bug 735014 - Wait longer for PAGE_HIDE GCs (r=smaug) 2012-03-12 16:25:03 -07:00
Nicholas Nethercote 224cb16d5d Bug 729008 - Add memory reporter for FramePropertyTable. r=bz.
--HG--
extra : rebase_source : e366cd84d50b5277f9949b340d44190371e753f8
2012-02-20 21:02:24 -08:00
Timothy Nikkel e27a903582 Bug 664707. Followup. Use the right point for touch events. r=matspal 2012-03-06 09:58:36 -06:00
Brad Lassey 7ba6e1d0cd merge from mozilla-central 2012-02-18 17:29:33 -05:00
Doug Turner 0cd49f54de Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Marco Bonardo 8a23d1304e Merge last green PGO from inbound to central 2012-02-16 11:45:18 +01:00
Robert O'Callahan f355313af4 Bug 727661. We should only optimize ThebesLayers to ColorLayers or ImageLayers for brand-new layers (ThebesLayers with no currently valid data). Otherwise we risk ColorLayers being a deoptimization if there is valid content in the layer that doesn't happen to be visible but might become visible later, or if the layer contents are only temporarily a solid color and will soon need a buffer again. r=tn 2012-02-16 17:17:20 +13:00
Robert O'Callahan e7f2947102 Bug 727661. We should only optimize ThebesLayers to ColorLayers or ImageLayers for brand-new layers (ThebesLayers with no currently valid data). Otherwise we risk ColorLayers being a deoptimization if there is valid content in the layer that doesn't happen to be visible but might become visible later, or if the layer contents are only temporarily a solid color and will soon need a buffer again. r=tn 2012-02-16 17:17:20 +13:00
Serge Gautherie 3791bfe358 Bug 718020. (Av1) test_bug583889.html: Delay "SimpleTest.finish()" call, Add missing 'yield' in bug583889_inner1.html, Add documentation. r=roc. 2012-02-15 21:43:46 +01:00
Matt Woodrow 81977febc5 Bug 721082 - Make perspective-origin relative to the parent elements border box. r=roc 2012-02-15 22:28:22 +13:00
Matt Woodrow 9830f5d3d3 Bug 721082 - Constify nsIFrame::GetParentStyleContextFrame. r=roc 2012-02-15 22:28:21 +13:00
Benoit Girard 9dbfe856f6 Make OMTC changes not effect desktop 2012-02-13 17:17:12 -05:00
Daniel Holbert e60d740557 Bug 640443: Allow positioned display:-moz-box elements to be containers for absolutely-positioned content. r=bz 2012-03-10 14:49:10 -08:00
Boris Zbarsky ab22ea90b0 Bug 696301 part 1. Refactor CORS attribute handling a bit. r=sicking 2012-03-10 10:13:51 -06:00
Boris Zbarsky af87cb12df Bug 734406. Fix printing and print preview for <canvas> by checking for script-enabled on the original document, not on the printing document. r=tnikkel 2012-03-09 22:32:51 -06:00
Benoit Girard c64be82706 Merge viewport with tip 2012-02-08 20:42:17 -05:00
Jared Wein 58d374c050 Bug 725700 - Keyboard arrow keys and scrollbar buttons should have consistent scrolling distances. 2012-02-20 11:24:36 -05:00
Patrick Walton 362804f0a4 Temporary workaround for bug 681192 and bug 724786 (subpixel layer invalidation). Remove me later. 2012-02-07 22:21:38 -08:00
Nathan Froyd ea83912b62 Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu 2012-02-29 10:57:47 -05:00
Mats Palmgren 0ed825c682 Bug 717521 - Limit pre-rendering to max 4096 x 4096 pixels (post-transform) to avoid hang. r=tnikkel 2012-03-01 13:34:20 +01:00
Mats Palmgren edfce0c2c5 Bug 727601 - "ASSERTION: Only transformed frames should have UpdateTransformLayer hint" with display:table. r=roc 2012-03-01 13:34:19 +01:00
Matt Woodrow 5830977a25 Bug 700240 - Print display lists to a file. r=roc,bjacob 2012-03-01 21:26:09 +13:00
Simon Montagu e472ce3733 Remove unnecessary test for next sibling. Bug 722137, r=roc 2012-01-30 11:05:28 -08:00
Simon Montagu da112175f7 test for bug 722137, r=roc 2012-01-30 10:59:34 -08:00
Scott Johnson 7faffa3598 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 95bf27abfe Bug 706889 - reftest. 2012-01-30 18:48:46 +01:00
Robert O'Callahan 3605115590 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 8107318de6 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 a620ddc416 Back out eb80ab6ee07b (bug 721627) and 06d02e7132b2 (bug 721294) for orange and red 2012-01-27 20:31:29 -08:00
Robert O'Callahan 1ae239386d 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 7fb1809a4d 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
Mats Palmgren 1cb6fcbe98 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 e5eaf7efff 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 a39f04df31 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
Masayuki Nakano 093b07841e Bug 707859 part.2 Forget PresShell::mSynthMouseMoveEvent when drag session prevents to dispatch it r=smaug 2012-02-24 13:41:33 +09:00
Zack Weinberg ba152ecb1a Bug 729142 - Convert layout/style to MOZ_STATIC_ASSERT. r=dbaron 2012-02-23 08:19:00 -08:00
Ed Morley 1fff1817f2 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-02-22 22:20:54 +00:00
Simon Montagu 26d5eff23e Make elements with unicode-bidi: plaintext and no strong directional characters default to left-to-right. Bug 726420, r=ehsan 2012-02-22 00:30:32 -08:00
Daniel Holbert f065c393ce Bug 728480: Wrap MOZ_TOUCH-specific code in #ifdefs, to prevent unused-function build warnings. r=wesj 2012-02-17 17:27:39 -08:00
Bill McCloskey a09976bff0 Bug 641025 - Incremental GC (r=igor,smaug,roc,cdleary,gregor) 2012-02-17 14:35:20 -08:00
Jonathan Watt 269515be6f Bug 727805 - Give aFactor in nsDisplayList.cpp a more meaningful name. r=mattwoodrow. 2012-02-17 06:08:33 +00:00
Daniel Levin 6337da5c24 Bug 710973 - Validate aYResolution in PresShell::SetResolution, don't validate aXResolution twice. r=tn
--HG--
extra : rebase_source : 995ad8ddd8edac814bc2bfb8dd3891430b8704cb
2012-02-16 14:29:05 +01:00
Aryeh Gregor 2207e6145a Bug 724614 - 3D scaling makes text blurry. r=mattw
--HG--
rename : layout/reftests/transform-3d/preserve3d-1a.html => layout/reftests/transform-3d/preserve3d-5a.html
rename : layout/reftests/transform-3d/scale3d-2-ref.html => layout/reftests/transform-3d/scale3d-all-separate.html
2012-02-23 13:03:27 -05:00
Lazar Sumar 1370132438 Bug 548375 - Implement css3-background background-repeat property two value syntax. r=dbaron 2012-02-24 21:23:14 -08:00
Boris Zbarsky 1399d98d1e 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 92175e834d 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 fbee8408a8 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 aca5589ce2 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 758562607c Bug 707859 PresShell shouldn't synthesize mousemove events during drag r=smaug 2012-02-21 12:19:18 +09:00
Zack Weinberg 51393f583e Bug 96971: Move GetSystemFont from nsDeviceContext to mozilla::LookAndFeel. r=roc 2012-02-20 15:19:48 -08:00
Jesse Ruderman 4b56ca6ced 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 7913c74a83 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 2f2d237167 Bug 728462: Remove declaration of no-longer-used 'GfxTextrunWordCacheMallocSizeOf'. r=jfkthame 2012-02-18 09:47:52 -08:00
Robert O'Callahan 5014e65f28 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 7ce6904516 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 9b595b2de8 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 524d53aefd merge backout 2012-02-07 12:31:30 +01:00
Mats Palmgren 8fffb0a751 Backout bug 719177 (2cae7e5c62ae,07bd73451aa4,13739446fc8e,0246973f2513,f222fbece983,8f11aaac24dc). r=roc 2012-02-07 12:31:24 +01:00
Mats Palmgren 5ae7f1a909 merge backout 2012-02-07 12:31:08 +01:00
Mats Palmgren 4e0122edf9 Backout bug 722325 (a8b8c4489e4e). r=roc 2012-02-07 12:31:03 +01:00
Chris Lord b3f301bbc8 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 bd42169468 Bug 715785: Make ImageContainers independent of LayerManagers. r=roc 2012-02-01 03:18:30 +01:00
Nicholas Nethercote 0194460b4f Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron. 2012-01-02 18:19:14 -08:00
Nicholas Nethercote fb2f58d5b0 Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Simon Montagu 3291f1c01c 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 b4a5e5bbf8 Bug 682299 - Implement CORS support for the <video> tag. r=roc 2012-01-25 17:31:30 -05:00
Bill McCloskey a01aa6f6de 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 52604a336b Merge m-c to m-i. 2012-01-25 11:06:40 +01:00
Ms2ger 60f6c34d94 Bug 718170 - Part b: Use nsINode in IsVisTextNode; r=ehsan 2012-01-25 08:50:05 +01:00
Matt Woodrow a087a69f77 Bug 718809 - Use TransformBounds in TransformGfxRectToAncestor. r=roc 2012-01-23 14:07:37 +13:00
Scott Johnson 5be9b0763a Bug 705446: Disable font inflation for preformatted text. [r=dbaron] 2012-03-02 11:25:33 -06:00
Nicholas Nethercote 3aaea57987 Bug 730181 (part 1) - Merge the "dom+style" and "layout" memory reporter trees. r=khuey.
--HG--
extra : rebase_source : dabcf525d823639c5ff465c7a21de8ae533e82ff
2012-02-21 07:10:11 -08:00
Matt Woodrow a776a451b4 Bug 731777 - Correctly recompute overflow areas for frames with transform perspective applied. r=roc 2012-03-12 15:04:25 +13:00
Matt Woodrow c3ee40acec Bug 730166 - Mark frames with a hidden backface as transformed. r=roc 2012-03-12 15:03:29 +13:00
Nicholas Cameron 13cdb8bff5 Bug 718521 - Fix bug clipping to rounded rectangles for multiple objects. r=roc 2012-01-20 09:21:41 +13:00
Jeff Muizelaar c4546a4ef0 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 853b504257 Bug 707439 - Fix Flash plugin positioning
--HG--
extra : rebase_source : aaa41297d293ffde1aabe5632ade6c416b4d541f
2012-01-18 10:41:35 -05:00
Wes Johnston 5d85b5574a 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 ed105170bb 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 b22a4aa663 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 8c7db642c5 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 2a5e64f028 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 3ab74c44b6 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 eef6a557db 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 a882b048ce 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 ba1326f8c7 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 e0f30ac18a 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 f6b33b37f7 Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron. 2012-01-24 13:09:55 +00:00
Benjamin Stover 7142e1a416 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 4dfec4a5a9 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 4cb6475ab0 Merge last green PGO changeset from inbound to central 2012-01-17 16:22:33 +01:00
Justin Wood 61509b1750 Merge last green PGO from inbound to mozilla-central 2012-01-16 22:27:53 -05:00
Serge Gautherie 631a620f1e 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 3e9552b5a9 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 1789633390 Merge m-c tip to m-i 2012-01-15 05:29:24 -05:00
Ms2ger b62660ef14 Bug 717371 - Don't use nsINode::GetChildAt in PresShell::GoToAnchor; r=bz 2012-01-15 09:13:12 +01:00
Serge Gautherie bf83f23d7f Bug 717868. (Av1) test_reftests_with_caret.html: Fix "SimpleTest.finish()" handling. r=ehsan. 2012-01-14 01:09:39 +01:00
Ed Morley 2537334d2c Merge mozilla-central to mozilla-inbound 2012-01-13 03:19:46 +00:00
Matt Brubeck 70a7860a7d Merge last green changeset from mozilla-inbound to mozilla-central 2012-01-12 08:22:14 -08:00
Jonathan Watt 15ad786cb8 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 e940423e6c Bug 703133: Flush layout data asynchronously on charset changes. r=bz 2012-01-11 21:58:44 +01:00
Boris Zbarsky ec4e4ed1e5 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 c40f7f7491 Bug 709971 - HTML reflow telemetry; r=bz 2012-01-10 15:08:43 -05:00
Robert O'Callahan 5bf4f76f83 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 d97e0d96d1 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 b2f7ab6325 Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 19:52:21 +02:00
Ed Morley ac38698654 Backout 6605cc311ec5 & 9217303c2e5c (bug 536557) for M4 orange 2012-01-12 15:33:00 +00:00
Simon Montagu d5512dd24e Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 16:29:20 +02:00
David Zbarsky 52afb07fb3 Bug 682611 - Part 2: Remove nsIRange; r=smaug 2012-01-10 15:19:54 +01:00
Boris Zbarsky 2ceaeb679d 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 9a78503fea 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 99ba4d63ac Bug 598482 part 19 - Remove unused aViewManager argument. r=roc 2011-12-23 22:52:24 -05:00
Boris Zbarsky 703f53d9da 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 2cc7db90ba 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 7a8ceb30a5 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 543a7ac751 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 cda59f704d Bug 598482 part 2 - Remove synchronous painting APIs from nsIViewManager. r=roc 2011-12-23 22:52:21 -05:00
Markus Stange c359272a22 Bug 598482 part 1 - Never force synchronous plugin geometry updates because it forces paints at bad times. r=roc 2011-12-23 22:52:20 -05:00
Boris Zbarsky 829160bc26 Back out rev 2a35bcdd7c1e (bug 716793) to fix orange tests 2012-01-10 02:00:17 -05:00
Boris Zbarsky e1b89da4ba 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
Jignesh Kakadiya b10d9db26b Bug 704430 - Remove nsLayoutUtils::GetFrameFor. r=Ms2ger sr=roc 2012-01-09 10:56:04 +01:00
Patrick Walton 9dd68f16fd Bug 708746 - Part 1: Add an observer that allows us to determine when a new page is shown. r=bz 2012-01-06 16:42:42 -08:00
Kyle Huey 3c9d718b6a Bug 714752: Make imgIContainerObserver::FrameChanged take an imgIRequest*. r=joe sr=roc 2012-01-06 07:32:38 -05:00
Marco Bonardo 26ef1707e4 Merge last green PGO from mozilla-inbound to mozilla-central 2012-01-06 13:22:51 +01:00
Neil Rashbrook 11f7babc50 Bug 714164 Restore some global window commands that were removed as part of bug 669026 because they appeared to be unused r=ehsan sr=roc 2012-01-05 21:33:41 +00:00
Bas Schouten cf4650c698 Bug 711063 - Part 7: Adjust Border rendering code for Azure-Thebes wrapper. r=roc 2012-01-05 08:17:52 +01:00
Jonathan Kew eb3ad81dbd bug 703100 - pt 1 - eliminate gfxTextRunWordCache and gfxTextRunCache. r=roc 2011-12-06 12:39:18 +00:00
L. David Baron a501fbf143 Hold on to MediaQueryList objects that have listeners so that notification doesn't depend on GC timing. (Bug 716751) r=bzbarsky
Note:  This also fixes a crash (when notifications happen) from
calling mql.addListeners(null).

This also fixes test_media_query_list.html so that the initial set of
tests doesn't keep running through the later tests.

The test for the null-dereference has been confirmed to crash without
the patch and pass with the patch.

The test for the gc issue has been confirmed to fail without the patch
and pass with the patch.
2012-02-29 20:47:55 -08:00
David Bolter 70c5f45260 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 4a4afe5617 Backout 547de632a3e2 (bug 495912) for mochitest-a11y orange 2012-02-29 18:42:58 +00:00
David Bolter 711ce9c45a 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
Chris Lord 7e9629ff72 Bug 729534 - Semi-fix scroll layer retention. r=mats
When flattening the display list, the last child frame in a scroll layer is
used to retain the associated ThebesLayer. Instead, use the first child, which
tends to be more stable. This fixes retaining layers when scrolling through
engadget.com.

Fix by Robert O'Callahan <robert@ocallahan.org>
2012-02-29 16:45:50 +00:00
Jonathan Kew adb5f5bb53 bug 721821 - make nsBidiPresUtils::WriteReverse aware of clusters, so that diacritics in RTL text display correctly in SVG text. r=smontagu 2012-02-28 21:24:04 +00:00
Chris Jones ae595ed94c 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 67afe02839 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 4fa87ce1e2 Bug 722603 - Part 2: Use cached transform as much as possible (r=roc). 2012-02-14 01:12:49 -08:00
Matt Woodrow 034d58e13c Bug 722603 - Part 1: Use cached transform in nsDisplayTransform::GetBounds() (r=roc) 2012-02-14 01:11:31 -08:00
Mats Palmgren e91410ed43 Bug 725535 - "ASSERTION: Only transformed frames should have UpdateTransformLayer hint". r=roc 2012-02-12 22:21:50 +01:00
Phil Ringnalda ee062ce196 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 eeec34f5b1 Bug 725535 - "ASSERTION: Only transformed frames should have UpdateTransformLayer hint". r=roc 2012-02-12 22:21:50 +01:00
Aryeh Gregor b3fe67f1c6 Bug 719446 - getComputedStyle().MozTransform shouldn't have "px" in it; r=roc 2012-02-10 21:04:59 +00:00
Aryeh Gregor fe20bb7e39 Bug 725426 - Incorrect getBoundingClientRect() for transform-style: flat. r=roc 2012-02-08 14:36:16 -05:00
Ed Morley 2c0231ae09 Merge mozilla-central to mozilla-inbound 2012-02-09 23:09:40 +00:00
Ed Morley 1091783b1b Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-02-09 17:54:45 +00:00
Chris Lord 6c723a2340 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 a952ee5062 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 bc56e5ee85 Bug 720799 - Don't use mDocShell in nsScreen. r=jst 2012-02-06 16:31:16 +01:00
Heather Arthur 92459e6267 Bug 708874 - API for locking pseudo-class state of an element. r=bz 2012-02-08 10:42:38 -08:00
Ehsan Akhgari 465fbccd52 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 4eeccb032f Backout 1ca8d5a931ac (bug 720799), e4781b684008 (bug 720795), 8a4e12d93a23 & 1fc8123a2ea4 (bug 720794) for bustage 2012-02-09 16:42:07 +00:00
Mounir Lamouri 6958b84a5d Bug 720799 - Don't use mDocShell in nsScreen. r=jst 2012-02-06 16:31:16 +01:00
Ehsan Akhgari 634328ec4b Bug 691118 - Frames inserted into the frame manager should only be overflow containers, not true overflow containers; r=roc 2012-01-03 19:44:07 -05:00
Matt Woodrow 7f26d031c2 Bug 704469 - Use style context parent instead of frame parent when looking up perspective for 3d transforms. r=roc 2012-01-04 13:38:57 +13:00
Robert Longson 3c9facbbf1 Bug 607854 - implement SVGTests interface. r=jwatt 2011-12-31 09:44:03 +00:00
Patrick Walton b8dc71940b Backed out bug 709492 due to breakage with external urls. r=backout 2011-12-30 18:47:06 -05:00
Bobby Holley b02711bcfe Bug 713747 - Use UniversalXPConnect and UniversalXPConnect only in test coverage. r=bz 2011-12-30 09:35:38 -08:00
Nicholas Nethercote f5076064af Bug 708159 - Avoid unnecessary work done by multi-reporters in nsMemoryReporterManager::GetExplicit. r=jlebar,bent. 2011-12-12 19:04:12 -08:00
Patrick Walton 999455e431 Bug 709492 - Part 1: Add an observer that allows us to determine when a new page is shown. r=bz 2011-12-29 15:10:26 -08:00
Robert O'Callahan bec96e8d29 Bug 591718. Make getClientRects/getBoundingClientRect take transforms into account, and not treat SVG <foreignObject> as establishing a new viewport. r=mats 2011-12-28 16:26:46 +13:00
Robert O'Callahan 8a29fd912e Bug 591718. Make nsLayoutUtils::GetAllInFlowRectsUnion support taking transforms into account when converting coordinates. r=mats 2011-12-28 16:24:29 +13:00
Robert O'Callahan fda2a403ee 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
Matt Brubeck 45c8fed2bf Merge mozilla-central and mozilla-inbound 2011-12-28 11:17:19 -08:00
Matt Brubeck c9c920026a Merge from mozilla-inbound to mozilla-central 2011-12-28 11:02:59 -08:00
L. David Baron 254dfa054e Fix font size inflation assertion when XUL is in native-anonymous content by making XUL always be a container for font size inflation. (Bug 708036) r=bzbarsky
--HG--
extra : transplant_source : %D9X%D4%25%01p%09%97%15%B6%83%B1%3A%F2H%C0P4.%19
2011-12-27 10:02:44 -05:00