Commit Graph

6202 Commits

Author SHA1 Message Date
Olli Pettay
585d56b8a4 Bug 979314, fix pointer events pref handling in presshell, r=mccr8
--HG--
extra : rebase_source : 9ce2767a077bfdf623186580d4793b73907e69bd
2014-03-04 23:49:02 +02:00
Andrew McCreight
60f02fa45e Bug 978203 - Don't include nsWindowMemoryReporter.h in nsINode.h. r=smaug 2014-03-04 13:33:44 -08:00
Milan Sreckovic
cfe0774568 Bug 978274: Initialize gfxPrefs earlier, rename some methods, delete MigratePrefs from gfxPlatform. r=bgirard. 2014-03-04 12:26:33 -05:00
Phil Ringnalda
75a037d9ad Merge m-c to m-i 2014-03-03 19:50:07 -08:00
Seth Fowler
6420cb7d99 Bug 63895 (Part 2) - Support table parts as absolute containing blocks. r=dbaron 2014-03-03 19:40:29 -08:00
Botond Ballo
1d03331bd2 Bug 978997 - Fix a regression caused by bug 959847 where the root layer sometimes doesn't get an APZC. r=tnikkel on a CLOSED TREE
Root scroll frames in display root documents don't get a scroll info layer from ScrollFrameHelper::BuildDisplayList, so we always need to call RecordFrameMetrics from nsDisplayList::PaintForFrame.
2014-03-03 19:57:28 -05:00
Ryan VanderMeulen
ed45530108 Merge inbound to m-c. 2014-03-03 17:00:34 -05:00
James Kitchener
1fdd5a8ce4 Bug 975935 - nsDisplaymtdBorder needs to override GetBounds. r=bz 2014-03-03 10:37:08 -05:00
Ed Morley
738f300f74 Merge latest green b2g-inbound changeset and mozilla-central 2014-03-03 14:45:43 +00:00
L. David Baron
cccf435c38 Bug 978612: Ignore changes to offsets of static-positioned elements when they or their descendants have views. r=dholbert
We get slightly better optimization, and no loss of function, by putting
these checks in the opposite order.
2014-03-03 00:54:39 -08:00
Timothy Nikkel
02cca576b9 Bug 978655. Simplify ContainerState::FindFixedPosFrameForLayerData. r=mattwoodrow 2014-03-03 00:04:59 -06:00
Timothy Nikkel
544b71c580 Bug 978542. If paint dumping is enabled at build time also enable frame dumping so we can get frame names in display list dumps. r=mattwoodrow
Also makes DidComputeVisibility available during non-debug painting so we can use it.
2014-03-02 16:22:29 -06:00
Timothy Nikkel
9a1510fcba Bug 974643. The displayport is not relevant to position: fixed content, only to scrolling content. r=roc
The relevant part of postion: fixed items lies within the viewport, which is the scroll position clamping scroll port size if one has been set.
2014-03-02 19:49:39 -06:00
Oleg Romashin
8d903256a4 Bug 977695 - Update bubbles/cancelable attribute for pointer events. r=smaug 2014-02-27 16:13:05 -08:00
Kearwood (Kip) Gilbert
f6a584b358 Bug 687297 - Added Mochitest to verify that the per-presentation base minimum font size is propagated without being influenced by the language-specific global preference. r=dbaron
This test applies a large value to the font.minimum-size.ja preference, opens a new window, advances the url through an iso-8859-1 page, a Shift-JIS page, and back to an iso-8859-1 page.  If the height of a div containing text on the first iso-8859-1 page and last iso-8859-1 page do not match, then the test is failed.

This test has been excluded from B2G Desktop Client tests due to bug 948948.
2014-02-26 16:01:38 -08:00
Carsten "Tomcat" Book
67109b9a5c merge b2g-inbound to mozilla-central 2014-02-28 14:42:11 +01:00
Wes Kocher
45d489c9d5 Merge m-c to b2g-inbound 2014-02-27 17:47:32 -08:00
Timothy Nikkel
f91f7c1a76 Bug 959847. Part 11. Use nsLayoutUtils::ViewportHasDisplayPort instead of repeating boilerplate code. r=roc 2014-02-27 16:01:54 -06:00
Timothy Nikkel
0e4968b4d3 Bug 959847. Part 10. Implement GetBounds, GetOpaqueRegion, and ShouldBuildLayerEvenIfInvisible for nsDisplaySubDocument items that are being used as scrollable layers like scroll layer items. r=roc 2014-02-27 16:01:54 -06:00
Timothy Nikkel
90c5ddcf90 Bug 959847. Part 9. Subdocument items for subdocuments that have displayports need to expand the visibility region. r=roc 2014-02-27 16:01:54 -06:00
Timothy Nikkel
576881fcd2 Bug 959847. Part 8. Don't let ProcessDisplayItems set the clip on subdocument items when they are being used to draw the display port content. r=roc 2014-02-27 16:01:54 -06:00
Timothy Nikkel
1e3662e0e8 Bug 959847. Part 7. Move ignoreViewportScrolling computation lower, where we actually use it. r=roc 2014-02-27 16:01:53 -06:00
Timothy Nikkel
57b3df2628 Bug 959847. Part 6. Only call RecordFrameMetrics from PaintForFrame if we are ignoring viewport scrolling so that we don't call it twice for the same scroll frame (the other one being the scroll layers created by nsGfxScrollFrame). r=roc 2014-02-27 16:01:53 -06:00
Timothy Nikkel
c5eadf4d6e Bug 959847. Part 4. Call RecordFrameMetrics for subdocument layers. r=roc
We do this by creating a new display item type: nsDisplaySubDocument.

Original patch by Kartikaya Gupta <kgupta@mozilla.com>.
2014-02-27 16:01:53 -06:00
Kearwood (Kip) Gilbert
7e3a06313b Bug 687297 - The per-presentation base minimum font size is now propagated without being max’ed with the language-specific global minimum font size preference, r=dbaron
A separate accessor has been added to nsPresContext to enable TransferZoomLevels and nsDocumentViewer::GetMinFontSize to access the minimum font size that has not been max’ed against the language specific minimum font size preset.

nsPresContext::mMinFontSize, its getter, and its setter have been renamed to more clearly distinguish them from minFontSize used elsewhere.
2014-02-25 11:07:47 -08:00
Mats Palmgren
5bd85e6c56 Bug 978443 - Rename NS_STYLE_CLEAR_LEFT_AND_RIGHT to NS_STYLE_CLEAR_BOTH. r=dholbert
Rename NS_STYLE_CLEAR_LEFT_AND_RIGHT to NS_STYLE_CLEAR_BOTH.  Also fix whitespace and remove unnecessary parens in a few places and enumerate the possible break types in an assertion so that it doesn't make assumptions on the actual property values.
2014-03-02 17:42:16 +00:00
Timothy Nikkel
6d9f701bc1 Bug 978348. PresShell::SetDisplayPort is dead code, remove it. r=dholbert 2014-02-28 20:16:06 -06:00
Geoff Brown
17e39de7a8 Bug 978265 - Disable layout/base/crashtests/522374-1.html on Android 2.3 2014-02-28 14:58:38 -07:00
Geoff Brown
bbccf7536e Bug 978254 - Disable layout/base/crashtests/500467-1.html on Android 2.3 2014-02-28 14:58:37 -07:00
Carsten "Tomcat" Book
2d08392d4b Backed out changeset 27f21343ffe5 (bug 687297) for mochitest-1 perma fail 2014-02-27 10:21:55 +01:00
Carsten "Tomcat" Book
96e8c91636 Backed out changeset 1d16baf1f90a (bug 687297) 2014-02-27 10:21:29 +01:00
Mats Palmgren
0ba3fd1302 Bug 976411 - Use ConstructFramesFromItemList in more places, and some minor cleanup. r=bz 2014-02-27 09:15:16 +00:00
Simon Sapin
818727a691 Bug 975501 part 2: Add display:{inline-,}grid behind a pref, and a stub nsGridContainerFrame. r=dholbert 2014-02-26 23:45:29 -08:00
Simon Sapin
3b9a3f4ac0 Bug 975501 part 1: Add a XUL prefix to existing internal GRID constants. r=dholbert 2014-02-26 23:43:18 -08:00
Kearwood (Kip) Gilbert
20c5368f73 Bug 687297 - Added Mochitest to verify that the per-presentation base minimum font size is propagated without being influenced by the language-specific global preference. r=dbaron
This test applies a large value to the font.minimum-size.ja preference, opens a new window, advances the url through an iso-8859-1 page, a Shift-JIS page, and back to an iso-8859-1 page.  If the height of a div containing text on the first iso-8859-1 page and last iso-8859-1 page do not match, then the test is failed.
2014-02-26 23:00:13 -08:00
Kearwood (Kip) Gilbert
904b7da0d4 Bug 687297 - The per-presentation base minimum font size is now propagated without being max’ed with the language-specific global minimum font size preference, r=dbaron
A separate accessor has been added to nsPresContext to enable TransferZoomLevels and nsDocumentViewer::GetMinFontSize to access the minimum font size that has not been max’ed against the language specific minimum font size preset.

nsPresContext::mMinFontSize, its getter, and its setter have been renamed to more clearly distinguish them from minFontSize used elsewhere.
2014-02-25 11:07:47 -08:00
Reuben Morais
b672cdc604 Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen
--HG--
rename : content/base/public/nsINameSpaceManager.h => content/base/public/nsNameSpaceManager.h
2014-02-27 20:04:46 -03:00
Matt Woodrow
123d76c891 Bug 971720 - Allow ThebesLayers to be optimized to ColorLayers even if they have rounded rect clipping. r=roc 2014-03-01 08:52:03 +13:00
Matt Woodrow
fbd6191f54 Bug 976877 - Don't build optimized layers (color/image) inside inactive layer trees. r=roc 2014-03-01 08:49:58 +13:00
Andrew McCreight
c479f2a541 Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug 2014-02-27 10:04:09 -08:00
Botond Ballo
9c798dd5bb Bug 958596 - Add a content description field to FrameMetrics and populate it if the apz.printtree pref is on. r=kats,tn 2014-01-22 16:37:57 -05:00
Matt Woodrow
5d58c059d9 Bug 968555 - Don't create a stacking context for backface-visibility:hidden. r=dbaron 2014-02-27 15:57:45 +13:00
Blake Kaplan
5acd3527ae Bug 956704 - Introduce a mechanism for only suppressing animation frames. r=smaug 2014-02-26 15:58:21 -08:00
John Daggett
c34b9a8034 Bug 976971 - test log level directly when creating textperf object. r=heycam 2014-02-27 08:41:28 +09:00
Oleg Romashin
39a9d8fd33 Bug 974177 - PointerCancel must trigger PointerOut event. r=smaug
--HG--
extra : rebase_source : cd88e856cbae08f21aed564899195f9697053f3a
2014-02-26 13:37:30 -08:00
Oleg Romashin
09537f78b3 Bug 970964 - Get pointer events from touch and mouse. tests. r=smaug
--HG--
extra : rebase_source : a2856a27dc24f505297a52881b799282b09a3d47
2014-02-26 13:37:25 -08:00
Oleg Romashin
190736ec59 Bug 970964 - Implement generic mouse/touch -> Pointer events converter. r=smaug,jimm
--HG--
extra : rebase_source : 165dc4e5c598f9e9f9de928efe16824037b95ff3
2014-02-26 13:37:01 -08:00
Jonathan Watt
57960e5d91 Bug 974430 - Put the |input[type=number]| rule in forms.css into a separate sheet so we can make it respect the dom.forms.number pref. r=dbaron
--HG--
extra : rebase_source : 450ffd1ca743868d75dda6ce0f89078216934e79
2014-02-26 12:26:14 +00:00
Etienne Segonzac
540c4c8e42 Bug 961776 - Add role=key to the event fluffing heuristics. r=roc 2014-02-26 09:03:32 -05:00
Robert O'Callahan
b8d068bc09 Bug 976412. Part 1: Fix logic for determining when a display item can be placed in a layer. r=mattwoodrow
--HG--
extra : rebase_source : c390532cb3f6252fa388dfbe8176f4f911dfbdb3
2014-02-26 17:17:18 +13:00
Wes Kocher
1282000702 Backed out 12 changesets (bug 958596) for several Android permafails to fix a CLOSED TREE
Backed out changeset e4c0e3d3a768 (bug 958596)
Backed out changeset 7bc4f48d6b05 (bug 958596)
Backed out changeset 89cd12e3db45 (bug 958596)
Backed out changeset 283411053340 (bug 958596)
Backed out changeset 5329fa8c8847 (bug 958596)
Backed out changeset 0d1d26d588e3 (bug 958596)
Backed out changeset 715fe9eb5dfd (bug 958596)
Backed out changeset 66dde9d67ffa (bug 958596)
Backed out changeset 79e589f75065 (bug 958596)
Backed out changeset 1ed4c880ab70 (bug 958596)
Backed out changeset 1d40b0b8036d (bug 958596)
Backed out changeset ad35d51d9781 (bug 958596)
2014-02-25 18:34:47 -08:00
Botond Ballo
bf9ca02460 Bug 958596 - Add a content description field to FrameMetrics and populate it if the apz.printtree pref is on. r=kats,tn 2014-01-22 16:37:57 -05:00
Matt Woodrow
5a28db799a Bug 975592 - Make sure we find the correct composition manager when updating child process layer trees. r=nical
--HG--
extra : rebase_source : 5e1457117293c74a362a0570aca2673c90038334
2014-02-25 11:45:40 +13:00
Ed Morley
afee079378 Backed out changeset a29e486e2214 (bug 958596) 2014-02-25 17:17:02 +00:00
Botond Ballo
1d1bf83ff4 Bug 958596 - Add a content description field to FrameMetrics and populate it if the apz.printtree pref is on. r=kats,tn
--HG--
extra : rebase_source : f009ad9d779fb1a3afa525fe7e5eb3a399aee628
2014-01-22 16:37:57 -05:00
William Chen
6c1fe0c5a8 Bug 973321 - Prevent int overflow in border image width calculation. r=dbaron 2014-02-18 14:14:31 -08:00
Timothy Nikkel
16fdf42e7e Bug 976370. Move overlay scrollbar display items above scroll layer items for the same scroll frame. r=roc
This has two desirable side effects. The first and more important is that it prevents a scrollbar item from sitting between scroll layer items and preventing them from merging into one and thus preventing the creation of an async scrollable layer. The second is that scrollbars should be on top of the content they are scrolling in general, and this will make that happen in more cases.
2014-02-24 23:42:11 -06:00
Phil Ringnalda
761929bf63 Back out b157f5d0c235 (bug 974197) for b2g reftest-4 and reftest-6 failures
CLOSED TREE
2014-02-24 21:06:18 -08:00
Matt Woodrow
387770d792 Bug 974197 - Fire MozAfterPaint after the compositor runs. r=roc 2014-02-25 12:55:39 +13:00
Max Vujovic
04fbe6b40b Bug 948265 - Pass an nsStyleFilter chain instead of an nsSVGFilterFrame into nsSVGFilterInstance. r=roc 2014-02-24 10:22:58 -05:00
Arnaud Sourioux
02b48ee29a Bug 974687 - Part 2: Fix more than 80cols issues caused by MOZ_OVERRIDE annotation. r=dholbert 2014-02-24 09:41:56 -05:00
Arnaud Sourioux
94fd6d0fd6 Bug 974687 - Part 1: Add about 300 MOZ_OVERRIDE in layout/. r=dholbert 2014-02-24 09:41:56 -05:00
Mats Palmgren
4b481e0cd9 Bug 966992 - overflow-clip-box:content-box tests. 2014-02-22 01:18:24 +00:00
Mats Palmgren
38588981af Bug 966992 - Implement layout for the overflow-clip-box property. r=roc 2014-02-22 01:18:24 +00:00
Ehsan Akhgari
5a07775e73 Bug 935778 - Part 0.1: Uninline nsIPresShell::SetForwardingContainer so that it won't need the full definition of nsDocShell; r=bzbarsky 2014-02-21 14:44:43 -05:00
Ryan VanderMeulen
2ca1b199db Backed out changeset 18183f6ef0d8 (bug 910860) for xpcshell and reftest failures. 2014-02-21 12:35:35 -05:00
Milan Sreckovic
3923aa0c9b Bug 910860 - Use gfxPrefs to make sure preferences are evaluated on the main thread. This still leaves the preference re-evaluated. r=BenWa 2014-02-18 19:55:48 -05:00
Carsten "Tomcat" Book
1c583950a5 Backed out changeset 18f6689b172d (bug 926830) for mochitest memory leak on a CLOSED TREE 2014-02-21 14:32:48 +01:00
Georg Fritzsche
b9f40a548b Bug 926830 - Test cleanup for plugin enabledState usage, layout. r=roc 2014-02-18 14:52:00 +01:00
Mats Palmgren
ebc34061f5 Bug 974412 - Cancel any pending InvalidatePresShellIfHidden() request for the shell when detaching the pres context. r=roc 2014-02-21 08:40:45 +00:00
Robert O'Callahan
a6743fa666 Bug 969354. Track which ThebesLayers contain items which returned true from ShouldFixToViewport, and make sure each such item gets its own ThebesLayer. r=mattwoodrow
--HG--
extra : rebase_source : 629f91869bd4c4ad2e4e17c40c5fe0311532fb67
2014-02-21 14:11:17 +13:00
Ehsan Akhgari
790a3e8ead Bug 935778 - Part 0.3: Spray some more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree 2014-02-20 23:07:24 -05:00
Kartikaya Gupta
03c5e5c8ce Bug 965945 - Prevent the parent process from running out of memory if the child process requests a giant gralloc buffer. r=bjacob 2014-02-19 12:08:00 -05:00
Avi Halachmi
dc3e4ddbbe Bug 879239: More slack at layout/base/tests/test_bug588174.html. r=bz 2014-02-19 15:40:23 +02:00
Wes Kocher
cb4508103d Backed out 3 changesets (bug 63895) for debug crashtest failures on a CLOSED TREE
Backed out changeset 02e057fea56c (bug 63895)
Backed out changeset 80bd36a3d4f1 (bug 63895)
Backed out changeset 6609365ee797 (bug 63895)
2014-02-19 17:35:03 -08:00
Seth Fowler
1ae544f009 Bug 63895 (Part 2) - Support table parts as absolute containing blocks. r=dbaron 2014-02-19 16:03:30 -08:00
Ehsan Akhgari
0c756d118f Backed out 5 changesets (bug 966992, bug 965237) because of a PGO only build failure on Linux, landed on a CLOSED TREE
Backed out changeset f11cad93ceee (bug 966992)
Backed out changeset c84d530c9a51 (bug 965237)
Backed out changeset 740b13866bac (bug 966992)
Backed out changeset 8c3420cc77d8 (bug 966992)
Backed out changeset 7ddfc587edda (bug 966992)
2014-02-19 13:28:33 -05:00
Botond Ballo
94ef4482f9 Bug 964517 - Do not pretend a layer is opaque if it really is transparent. r=roc 2014-02-09 00:28:04 -05:00
Daniel Holbert
25895af93a Bug 973390: Call SetPrimaryFrame for root element *after* processing its children, to fix assertion & for consistency with behavior on other elements. r=bz 2014-02-19 08:36:03 -08:00
Mats Palmgren
cbc30db12c Bug 966992 - overflow-clip-box:content-box tests. 2014-02-19 14:14:53 +00:00
Mats Palmgren
0cfb95c93e Bug 966992 - Implement layout for the overflow-clip-box property. r=roc 2014-02-19 14:14:52 +00:00
Jerry Shih
da26b69d9b Bug 972310 - Set a suitable layer size for css scale animation/transition. r=roc 2014-02-18 09:58:01 -05:00
Robert O'Callahan
c329325fc1 Backing out patches for bug 972713 (changesets b5486b9ed88c and 7829e535cdd7) due to Windows 8 test failure. 2014-02-18 22:48:18 +13:00
L. David Baron
7cdf2cce3d Bug 434102: Make outlines behave reasonably on XUL tree pseudo-elements again. r=roc
This was a regression from bug 133165 which I noticed while working on
bug 480888, but wished to fix in a separate patch (despite that it would
have been slightly easier to fix it in the same patch).
2014-02-17 20:07:46 -08:00
Robert O'Callahan
2dc7872760 Bug 972713. Part 2: Ignore active scrolled roots in inactive layer trees, because they don't help and could hurt. r=mattwoodrow 2014-02-18 17:00:35 +13:00
Robert O'Callahan
327f3d5a51 Bug 972713. Part 1: Make all callers of GetAnimatedGeometryRootFor pass a display item so we can stop searching when we reach the item's reference frame. r=mattwoodrow
This guarantees that the animated geometry root for an item is always in the
same display list coordinate system as the frame.

--HG--
extra : rebase_source : 249fd847a2c08f8d0846d698cce9dd4681e38a98
2014-02-18 14:26:57 +13:00
Simon Montagu
858b45d469 Fix a hang by using a dedicated state bit instead of overloading NS_FRAME_IS_DIRTY. Bug 964821, r=roc 2014-02-17 14:46:40 -08:00
Robert O'Callahan
01e0b952af Bug 966397. Part 2: Don't look at ancestors of mContainerReferenceFrame when searching for a fixed-pos ancestor we belong to, since we'll change coordinate spaces. The metadata will be attached to an ancestor layer in that case. r=mattwoodrow
--HG--
extra : rebase_source : cfb56bb2111abce99cd475b9fa8c516d53621ed4
2014-02-17 14:51:49 +13:00
Robert O'Callahan
ddf6c23a35 Bug 966397. Don't try to add fixed-pos metadata for inactive layer subtrees. r=mattwoodrow
--HG--
extra : rebase_source : 119635c63af471a0d6384901d99f242b14a39e9a
2014-02-17 14:51:49 +13:00
Matt Woodrow
d41ee4ab21 Bug 972703 - Clamp massive transformed overflow areas to the middle of the representable range instead of the start. r=roc 2014-02-17 11:25:36 +13:00
L. David Baron
ee2f20f11a Bug 480888 patch 4: Draw outline around the union of border boxes, SVG, and text, rather than the visual overflow area. r=roc
At the same time, move the handling of outlines on inlines that contain
blocks earlier, so that we factor it into the stored frame property (and
thus have the stored frame property) and so that we include it
accurately in the overflow calculation.
2014-02-16 16:05:10 -08:00
Phil Ringnalda
71b27f8c88 Backed out 3 changesets (bug 972703, bug 889959) for build failures and crashes
CLOSED TREE

Backed out changeset ef3d90780478 (bug 972703)
Backed out changeset 34c95e937671 (bug 889959)
Backed out changeset 5e25912d6696 (bug 889959)
2014-02-16 15:17:01 -08:00
Matt Woodrow
0dd8a83d9d Bug 972703 - Clamp massive transformed overflow areas to the middle of the representable range instead of the start. r=roc 2014-02-17 11:25:36 +13:00
Daniel Holbert
8b86f279ef Bug 969460 part 2: Use EnsureBlockDisplay to determine the 'display' of the root node, and let nsCSSFrameConstructor::ConstructDocElementFrame create flex containers. r=bz 2014-02-15 10:42:37 -08:00
Vaibhav Agarwal
81f1ea0a18 Bug 970925 - convert testing/mochitest/android.json into skip-if statements in mochitest.ini files; r=jmaher 2014-02-15 04:53:02 -05:00
L. David Baron
e8c782f1e4 Back out changeset dd1f8adbfecc (bug 480888 patch 4) for failing reftests 402338-1.html and 412352-2.html on Android and B2G only. 2014-02-14 23:45:31 -08:00
L. David Baron
194cd4272e Bug 480888 patch 4: Draw outline around the union of border boxes, SVG, and text, rather than the visual overflow area. r=roc
At the same time, move the handling of outlines on inlines that contain
blocks earlier, so that we factor it into the stored frame property (and
thus have the stored frame property) and so that we include it
accurately in the overflow calculation.
2014-02-14 21:29:13 -08:00
L. David Baron
c3109dc9e2 Bug 480888 patch 1: Rename ComputeOutlineAndEffectsRect to ComputeEffectsRect. r=roc 2014-02-14 21:29:12 -08:00
Masayuki Nakano
e393ad7356 Bug 969247 part.1 Remove or replace DOM_VK_ENTER and NS_VK_ENTER users r=smaug 2014-02-15 09:57:39 +09:00
Daniel Holbert
284944bf84 Bug 972119: Simplify logic in nsCSSFrameConstructor::ConstructDocElementFrame. r=bz 2014-02-12 23:47:02 -08:00