Matt Woodrow
71de2763a6
Bug 1427476 - Don't try to retain display lists for popups since their display root isn't the root frame of a document. r=miko
...
--HG--
extra : rebase_source : a924322e5cae1ba25526bc258ab18af50d37d66a
2018-01-03 18:31:31 +13:00
Kartikaya Gupta
c6e614c39a
Bug 1413618 - Avoid possible division by zero. r=xidorn
...
MozReview-Commit-ID: JSTvMb3mM4P
--HG--
extra : rebase_source : 646429f399c47efef56ee9ae4e3b3bed410a9864
2018-01-08 05:59:08 -05:00
Cosmin Sabou
eff09826f7
Backed out changeset 9a95b205f3e8 (bug 1427635) for cl failures at dom/browser-element/mochitest/test_browserElement_oop_CopyPaste.html r=backout a=backout
2018-01-03 23:48:48 +02:00
Emilio Cobos Álvarez
e43d539775
Bug 1427635: Fix DoCompareTreePosition frame tree version with null aCommonAncestor. r=xidorn
...
It doesn't fill the ancestors of the first frame if aCommonAncestor is null,
which means that we get garbage afterwards.
MozReview-Commit-ID: G85dv7KM1Xd
--HG--
extra : rebase_source : 80168515b122c60461bf1cde1695fb7b98aaaa99
2017-12-22 11:01:19 +01:00
Emilio Cobos Álvarez
c8eb630ebe
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ffdf5d2cb5
Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me
2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
c0959b2955
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Matt Woodrow
6145974a31
Bug 1413546 - Add pref to allow retained display lists within the parent process. r=jet
2017-12-22 11:45:32 +13:00
Emilio Cobos Álvarez
dbb3111ff1
Bug 1398492: Remove the grid pref. r=mats
...
MozReview-Commit-ID: 6Qez8NE8oze
2017-12-17 00:04:35 +01:00
Gerald Squelart
024f843fb6
Bug 1425550 - Output frame tree when RDL checker finds issues - r=mattwoodrow
...
MozReview-Commit-ID: IGnFpDuk0Sc
--HG--
extra : rebase_source : 28099067dd8bcecd51cdc56a5befcf807f140f89
2017-12-15 14:56:37 -06:00
Cosmin Sabou
d1dc090edc
Backed out changeset 3eab9fd44dda (bug 1425550) for build bustages on build/src/layout/base/nsLayoutUtils.cpp:3888:21 r=backout on a CLOSED TREE
2017-12-16 00:56:48 +02:00
Gerald Squelart
61cd254de0
Bug 1425550 - Output frame tree when RDL checker finds issues - r=mattwoodrow
...
MozReview-Commit-ID: IGnFpDuk0Sc
--HG--
extra : rebase_source : 659c6ed336493a458bc62c2eb73ebc08fef0a0d4
2017-12-15 14:56:37 -06:00
Samathy Barratt
d8ba79a56b
Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r+tnikkel r=tnikkel
...
Renamed to imgDrawResult
MozReview-Commit-ID: 5ESSgIhhU41
--HG--
rename : image/DrawResult.h => image/ImgDrawResult.h
extra : rebase_source : dbf645574aff7eefe65fa81809d6c07cb5800ec6
2017-12-11 15:37:59 +00:00
Ciure Andrei
b8d4330b53
Backed out changeset 8e33d0ce108c (bug 1351447) for failing /builds/worker/workspace/build/src/widget/cocoa/nsCocoaUtils on OS X r=backout a=backout on a CLOSED TREE
...
--HG--
rename : image/ImgDrawResult.h => image/DrawResult.h
2017-12-12 09:49:59 +02:00
Samathy Barratt
0749baf2d8
Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r=tnikkel
...
Renamed to imgDrawResult
MozReview-Commit-ID: 5ESSgIhhU41
--HG--
rename : image/DrawResult.h => image/ImgDrawResult.h
extra : rebase_source : 4fba109b84ef456126d50e0d5e525f29f944a46d
2017-12-11 15:37:59 +00:00
Emilio Cobos Álvarez
74b31155f7
Bug 1423167: Move most attribute-related methods from nsIContent to Element. r=bz
...
MozReview-Commit-ID: 6WXqNiODttD
2017-12-06 16:05:59 +01:00
Gurzau Raul
f5f1c3f294
Merge inbound to mozilla-central r=merge a=merge
2017-12-06 11:53:55 +02:00
Nazım Can Altınova
0177b1a524
Bug 1421645 - Hide accidentally exposed subgrid behind prefs r=emilio,xidorn
...
It was exposed during stylo implementation but it should be behind
`layout.css.grid-template-subgrid-value.enabled` pref.
MozReview-Commit-ID: DqrU6zYgdES
--HG--
extra : rebase_source : 14859f5912faff9cf2daf9b10409114e853bab6d
2017-12-05 22:11:10 +03:00
Boris Zbarsky
77d6a0dd53
Bug 1418558 part 4. Add MOZ_CAN_RUN_SCRIPT annotations to nsGenericHTMLElement methods that can call GetPrimaryFrame. r=mystor
...
MozReview-Commit-ID: HxFFC85qgOD
2017-12-05 11:18:16 -05:00
Andrew Osmond
cc5c98e1d3
Bug 1420648 - Ensure WebRender computes the snapped image decode size the same as the fallback path. r=tnikkel
2017-12-01 07:18:53 -05:00
Ciure Andrei
ce43f5fe52
Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
2017-11-27 11:51:40 +02:00
Matt Woodrow
7f1eacde4f
Bug 1419225 - Clip transformed rectangles to the maximum allowed values for the appunit coordinates we're converting into. r=miko
2017-11-27 15:01:15 +13:00
Gerald Squelart
91a021aeb0
Bug 1420298 'layout.display-list.retain.verify' to debug retained-dl - r=mattwoodrow
...
Setting the 'layout.display-list.retain.verify' gfxPrefs implies
'layout.display-list.build-twice', and then compares the retained-built tree
to the non-retained one, and outputs differences&trees to the terminal.
MozReview-Commit-ID: 3dnyIUTbtH8
--HG--
extra : rebase_source : 36a6b8f029d0bd1339557e7c630906311ecf1254
2017-11-20 17:15:08 +11:00
Botond Ballo
41aac0b97c
Bug 951793 - Store the overscroll behavior in ScrollMetadata and propagate it to APZ. r=mstange
...
MozReview-Commit-ID: J7Vkd941QxK
2017-11-25 01:29:01 +01:00
Sebastian Hengst
6d4637aebb
Backed out 15 changesets (bug 951793) because it landed before the necessary servo changes. r=backout requested by emilio on a CLOSED TREE
...
Backed out changeset ca8c86e229df (bug 951793)
Backed out changeset 6eef6403fa71 (bug 951793)
Backed out changeset a5e529f52fb1 (bug 951793)
Backed out changeset 054e837609d0 (bug 951793)
Backed out changeset 713a3c9617ce (bug 951793)
Backed out changeset 884913aa1668 (bug 951793)
Backed out changeset c3340b84e534 (bug 951793)
Backed out changeset 50fe3c6ac486 (bug 951793)
Backed out changeset be4e22e5c257 (bug 951793)
Backed out changeset 7055bd5dfc4e (bug 951793)
Backed out changeset fa6da1e723cf (bug 951793)
Backed out changeset 386f77004d89 (bug 951793)
Backed out changeset fa82cdc01408 (bug 951793)
Backed out changeset 867d8ea5355c (bug 951793)
Backed out changeset e61ac8e48971 (bug 951793)
2017-11-25 01:01:41 +02:00
Botond Ballo
69d3063396
Bug 951793 - Store the overscroll behavior in ScrollMetadata and propagate it to APZ. r=mstange
...
MozReview-Commit-ID: J7Vkd941QxK
--HG--
extra : rebase_source : f9d0f664f17f4efe34a21064cbbf259642fe3caf
2017-10-18 20:13:19 -04:00
Gurzau Raul
7d49983b86
Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE
2017-11-24 00:36:16 +02:00
Kartikaya Gupta
86ac46d3f7
Bug 1412112 - Cache the view id on the ASR to speed up the ViewIDForASR operation. r=mstange
...
This also moves the function from nsLayoutUtils to be a function on the
ASR itself, which seems more appropriate.
MozReview-Commit-ID: 88lUmYi80P0
--HG--
extra : rebase_source : 3f7e4f875c3267f9f4c5c67e720912ceedb25719
2017-11-23 12:22:22 -05:00
Cameron McCormack
3991f1ba0d
Bug 1418899 - Part 2: Move some font-related static methods out of nsRuleNode. r=TYLin
...
MozReview-Commit-ID: 3l9L6bHr0PJ
--HG--
extra : rebase_source : 4d60e21f70a0e8b7a54b009ca6f5d6c2c90a80bd
2017-11-20 12:43:21 +08:00
Ting-Yu Lin
dc7e13b5d5
Bug 1418905 - Move nsRuleNode::ComputeCoordPercentCalc() into nsStyleCoord. r=heycam
...
MozReview-Commit-ID: GLLseBxhUiP
--HG--
extra : rebase_source : 2940610dbb5e81e463db82459a46a54eb693e5cb
2017-11-20 14:05:19 +08:00
Ting-Yu Lin
320b123d4b
Bug 1418905 - Move nsRuleNode::ComputeComputedCalc() into nsStyleCoord. r=heycam
...
MozReview-Commit-ID: LFxZGzyyii6
--HG--
extra : rebase_source : 516a8ed1a372d483f4c96cd392c1d382b0b4e38a
2017-11-20 13:30:27 +08:00
Miko Mynttinen
8f00af8953
Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
...
MozReview-Commit-ID: 6QFc4Sq3WiC
--HG--
extra : rebase_source : 268c2959d38e955d1af9ab39fdb8cce0146788e3
extra : intermediate-source : 7ee9657574a2ee223b6184d1657803a0d382be59
extra : source : 558439637eba09eaae8a653ffc77d5830b16ff42
2017-11-09 16:10:21 +01:00
Cameron McCormack
468dc30c34
Bug 1418872 - Move ControlCharVisibilityDefault() out of nsCSSParser. r=TYLin
...
MozReview-Commit-ID: EkNq7lREGgA
--HG--
extra : rebase_source : 689d4a9baa6c05acafb72fa6b042b21b4befd752
2017-11-20 10:46:45 +08:00
Ting-Yu Lin
264402226f
Bug 1417376 Part 3 - Pass nsPoint parameters by const references instead of values. r=mats
...
It's good to save some copy constructor calls.
MozReview-Commit-ID: 6TveqwkOvc0
--HG--
extra : rebase_source : 02e678f985c074f6c972cf8478e233aa5e4607db
2017-11-15 17:55:36 +08:00
Sebastian Hengst
c633ffa4c4
Backed out changeset bdab19ff2fef (bug 1415485) for letting web platform tests in /css/CSS2/backgrounds/ frequently fail. r=backout a=backout
2017-11-19 15:05:47 +02:00
Miko Mynttinen
a677051b03
Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
...
MozReview-Commit-ID: 6QFc4Sq3WiC
--HG--
extra : rebase_source : 8ccd535dbc4443cac3571d748490e64e91b9b816
extra : intermediate-source : 7ee9657574a2ee223b6184d1657803a0d382be59
extra : source : 558439637eba09eaae8a653ffc77d5830b16ff42
2017-11-09 16:10:21 +01:00
Matt Woodrow
aab0cbe92c
Bug 1406727. r=froydnj
2017-11-16 16:09:28 +13:00
Narcis Beleuzu
af710e4746
Backed out changeset 0f783930e1b2 (bug 1406727) for GTest failures on ArenaAllocator. r=backout on a CLOSED TREE
2017-11-16 07:45:06 +02:00
Matt Woodrow
5e1a10f3be
Bug 1406727. r=froydnj
2017-11-16 16:09:28 +13:00
Ya-Chieh Wu
cc97d12776
Bug 1381153 - Part 2: Look up MayHaveTransformAnimation in nsIFrame. r=mstange
...
Find out where we use MayHaveTransformAnimation in EffectSet
and change them to MayHaveTransformAnimation in nsIFrame.
MozReview-Commit-ID: GhkztK8JtNa
2017-11-12 23:23:00 -05:00
Sebastian Hengst
31bab6f683
Backed out changeset 32958aa32cb5 (bug 1415485) for frequently failing for failing reftest layout/reftests/async-scrolling/position-fixed-in-scroll-container.html on Linux x64 QuantumRender. r=backout a=backout on a CLOSED TREE
2017-11-14 14:47:14 +02:00
Miko Mynttinen
b7715ba593
Bug 1415485 - Make the pref layout.display-list.retain live again r=mattwoodrow
...
MozReview-Commit-ID: 6QFc4Sq3WiC
--HG--
extra : rebase_source : 946f69b611544671556aaab66654d2e30c59b4ef
extra : intermediate-source : 7ee9657574a2ee223b6184d1657803a0d382be59
extra : source : 558439637eba09eaae8a653ffc77d5830b16ff42
2017-11-09 16:10:21 +01:00
Kartikaya Gupta
87186734ba
Bug 1416540 - Convert AnimationValue::GetStyleValue to return a float-based Size. r=mattwoodrow
...
This follows from the previous patch; these values feed into UpdateMinMaxScale
as well, which explicitly wants to use floats, so there's no point in creating
doubles. The source of this information is also a float-based matrix.
MozReview-Commit-ID: LPk4Xm9AaJJ
--HG--
extra : rebase_source : d7714755fb1078880133d6f044cc9bc7743439ee
2017-11-12 18:37:33 -05:00
Kartikaya Gupta
92c112278f
Bug 1416540 - Convert a bunch of scaling code to avoid unnecessary double conversion. r=mattwoodrow
...
The code in ComputeSuitableScaleForAnimation feeds its double-based
computation results into GetSuitableScale, which takes and returns
floats. Also the double-based computation that it's doing involves
calling UpdateMinMaxScale a bunch which explicitly uses the float
variant of std::min and std::max. And all of this is used from
ChooseScaleAndSetTransform which does other things like call a
"RoundToFloatPrecision" function, and casts the final values to
floats before setting the layer's prescale. So let's just use
floats all the way through.
MozReview-Commit-ID: BE3WC5hv89d
--HG--
extra : rebase_source : 987d9d69ec2a200ed68c59bae5fae1115713a94c
2017-11-12 18:37:33 -05:00
Chris Peterson
edb82b8131
Bug 1416164 - Replace NS_POSTCONDITION with MOZ_ASSERT. r=froydnj
...
MozReview-Commit-ID: 9K3Ksf36uxr
--HG--
extra : rebase_source : c5574794ae0e0ce5e756bdbcc2601896d6916002
2017-11-04 22:48:48 -07:00
Kartikaya Gupta
00ef028ed3
Bug 1416267 - Update gfxContext matrix functions to avoid flip-flopping between float and double matrices. r=jrmuizel
...
The core of this change is in gfxContext.*:
- change gfxContext::CurrentMatrix() and gfxContext::SetMatrix() to
return and take a Matrix respectively, instead of converting to
and from a gfxMatrix (which uses doubles). These functions therefore
will now match the native representation of the transform in gfxContext.
- add two new functions CurrentMatrixDouble() and SetMatrixDouble() that
do what the old CurrentMatrix() and SetMatrix() used to do, i.e.
convert between the float matrix and the double matrix.
The rest of the change is just updating the call sites to avoid round-
tripping between floats and doubles where possible. Call sites that are
hard to fix are migrated to the new XXXDouble functions which preserves
the existing behaviour.
MozReview-Commit-ID: 5sbBpLUus3U
2017-11-10 21:14:09 -05:00
Miko Mynttinen
c94a72556d
Bug 1416065 - Ensure that override dirty rects are properly removed from frames r=mattwoodrow
...
MozReview-Commit-ID: 8uLgDFxl5MV
--HG--
extra : rebase_source : f8b1202e068b448499ebe470c9d9151715cb1419
2017-11-10 01:32:29 +01:00
Kartikaya Gupta
93ca1a3bc5
Bug 1415225 - Stop setting the EventRegionsOverride flag on root layers. r=botond,mattwoodrow
...
As with the previous patch, instead of setting the override on the root
layer, we set the flag on the nsDisplayListBuilder before building the
display list, and the flag automatically forces all event regions
display items to use their dispatch-to-content region instead of any
other regions.
Both the WebRender and non-WebRender codepaths were setting the override
flag on their root layers and don't need to any more.
MozReview-Commit-ID: 1cz0ahqwkOm
--HG--
extra : rebase_source : 3292951aca97fd1a355c2fae5b0ab42d2064c548
2017-11-09 09:03:52 -05:00
Mats Palmgren
770a2228d1
Bug 1414666 part 2 - A few formatting improvements after mass conversion of PresContext()->PresShell() to PresShell(). r=emilio
...
MozReview-Commit-ID: FoEnINS0Jbk
2017-11-09 03:00:48 +01:00
Mats Palmgren
1c2b8c222e
Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio
...
MozReview-Commit-ID: 8FPTPKWyVtY
2017-11-09 03:00:48 +01:00