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

61537 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack 0a5fdb11a0 Bug 1419652 - Remove HandleRefPtr. r=TYLin
This class was used back when we didn't have a base class for CSSStyleSheet
and ServoStyleSheet.  Now it's unused.

MozReview-Commit-ID: 8xaMAA3Opf7

--HG--
extra : rebase_source : fe507762ba80ab54ca2a87e84faa8bc1a1a8590f
2017-11-22 13:11:12 +08:00
Hiroyuki Ikezoe e41b79a2e7 Bug 1418867 - Crash test for the case where the parent element has no style data for pseudo. r=emilio
MozReview-Commit-ID: 977gqyZTob2

--HG--
extra : rebase_source : b8c5887782fd461f403467b3f761596d53e2133c
2017-11-22 12:20:15 +09:00
Hiroyuki Ikezoe 33e7b8838f Bug 1418867 - Pass element or pseudo element to Servo_StyleSet_GetBaseComputedValuesForElement(). r=emilio
MozReview-Commit-ID: Ae3iZ6g3x3c

--HG--
extra : rebase_source : 8d07ac08d63cfdb96cb07a73ed86b268d6b5026e
2017-11-22 11:03:40 +09:00
Hiroyuki Ikezoe 1646278bfe Bug 1418867 - getUnanimatedComputedStyle throws an exception for non-existent pseudo element. r=birtles
This is a prerequisite change for passing pseudo element to
Servo_StyleSet_GetBaseComputedValuesForElement which will be done in the next
commit.

MozReview-Commit-ID: HEGF2wjBGEP

--HG--
extra : rebase_source : 58d5991f3e4559c4215292ee8c48f79b38acb54a
2017-11-22 09:57:31 +09:00
Matt Woodrow 9165b3a1fb Bug 1418945 - Always use the new-list ordering when merging display list since it's guaranteed to be correct. r=miko 2017-11-22 15:10:31 +13:00
Matt Woodrow 69caf9d4bd Bug 1417947 - Mark the correct frame as modified when invalidating due to blend mode. r=miko 2017-11-22 15:10:22 +13:00
Coroiu Cristina 9eb4f34b0a Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-22 01:50:20 +02:00
Coroiu Cristina d6a2b15dbc Merge inbound to mozilla-central r=merge a=merge 2017-11-22 01:32:34 +02:00
Bas Schouten 455444a0f4 Bug 1417903: Make ImageRenderer use IntoLuminanceSource. r=dvander
MozReview-Commit-ID: 4fr3Koliieq
2017-11-22 00:27:34 +01:00
Jonathan Kew 09faef79f5 Bug 1418724 - part 2 - Force reflow of all content when locale prefs change, so that we can pick up modifications to the preferred ordering of CJK fonts without requiring restart or page reload. r=m_kato 2017-11-21 11:02:20 +00:00
Cameron McCormack 1dbd7f57c6 Bug 1418245 - Move @-moz-document matching function out of css::DocumentRule. r=TYLin
MozReview-Commit-ID: 81dCiFosF0V

--HG--
extra : rebase_source : 9852380c896530538e2b5b1415513cedb4b2e5e1
2017-11-17 17:31:22 +08:00
Emilio Cobos Álvarez 4061ff0e69 Bug 1417781: Consider style structs as not equal if visited styles on them are changed. r=heycam
This change should be also fine for the Gecko callers, but please double-check.

MozReview-Commit-ID: 5ZntHeBt5wC

--HG--
extra : rebase_source : d623693f690e933ccc67881795b3e4f5289e9fa4
2017-11-21 00:53:51 +01:00
Cameron McCormack c4a2859c9e Bug 1418899 - Followup speculative Windows build fix. (CLOSED TREE) 2017-11-21 17:11:40 +08:00
Cameron McCormack 0a20585745 Bug 1418899 - Part 4: Move image layer filling function out of nsRuleNode. r=cjku
MozReview-Commit-ID: 2FXGFEkpIKE

--HG--
extra : rebase_source : 280c85f0e53e6426289580a345685898888ed266
2017-11-20 13:53:58 +08:00
Cameron McCormack 630cd9c74f Bug 1418899 - Part 3: Use a single image layer array filling function. r=cjku
We were accidentally using the background one for the mask layers list anyway,
and I don't think the overhead of filling the arrays for the two properties
mask layers don't use is a problem.

MozReview-Commit-ID: 7LDiYGrnUd5

--HG--
extra : rebase_source : 573d70e0e8c4d110ca6da2846e6fd2887b1fded2
2017-11-20 13:44:22 +08: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
Cameron McCormack d8a0eb82de Bug 1418899 - Part 1: Remove some unused method declarations on nsRuleNode. r=TYLin
MozReview-Commit-ID: FOBOjJRJCea

--HG--
extra : rebase_source : ff3bf2cccf2ec21bdbaf61c8112ee97bc3306bfe
2017-11-20 13:09:16 +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
Gerald Squelart d886d393e0 Bug 1418851 - Inlined constant-time definition of nsDisplayItem::Count() - r=mattwoodrow
The "linear time" comment was rendered incorrect by bug 1404181.
And as the body is now only returning a member variable, it's more efficient
and maintainable to just have it to the header.

MozReview-Commit-ID: 4vjB1PyemxR

--HG--
extra : rebase_source : 8089dd66218922a07ffcca9a35f9809522752255
2017-11-21 09:14:32 +11:00
Brindusan Cristian 9bd6ed7630 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 4c68fb1a967a7c1b64e9779851573eb29a412908
2017-11-21 00:24:13 +02:00
Cosmin Sabou fdc83a94aa Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02:00
Joel Maher dd460b6416 Bug 1418406 - Disable css-invalid/select/select-disabled-fieldset-1.html on android for perma failures. r=me, a=testonly 2017-11-20 04:59:53 -05: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
Hiroyuki Ikezoe 49f31bb414 Bug 1418059 - Stop eagerly CSS animations on the root of display:none subtree. r=birtles
Otherwise we do update keyframes data unnecessarily.

MozReview-Commit-ID: ys4BEF1kxX

--HG--
extra : rebase_source : 725aef9a4be9296bc992f6128be7c62b4c2b01e1
2017-11-20 13:56:26 +09: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
Ting-Yu Lin 7326c2887e Bug 1417376 Part 2 - Pass nsPoint parameters by const references instead of references. r=mats
MozReview-Commit-ID: 6TveqwkOvc0

--HG--
extra : rebase_source : d4674181a6198279bedbfc2efe4e0b1715c91d51
2017-11-15 18:26:10 +08:00
Markus Stange fd4ef8574d Bug 1418836 - Add restyle markers in a place that I missed in bug 1350930. r=bz
MozReview-Commit-ID: 4lj6W02JwHM

--HG--
extra : rebase_source : eb1665225f5742ab9871f1bb6ac202bf16ac2ac0
2017-11-19 16:44:08 -05:00
Emilio Cobos Álvarez ca0edc11ac Bug 1415843: Remove an unneeded call to AdjustAppendParentForAfterContent. r=bz
I don't know why GetInsertionPrevSibling would get the parent wrong.

IsValidSibling handles the frameset case and a lot of the table caption cases.

The table caption cases IsValidSibling can't handle are due to elements which
create frames based on something other than display.

For those cases, while IsValidSibling will return incorrect results, we will end
up seeing that the parent frame is the wrong type after creating the frame
construction items for the new stuff and reframe under WipeContainingBlock.

MozReview-Commit-ID: 5b3L4CB6Oxl

--HG--
extra : rebase_source : c3559dae0b5f4de72fbf5031bdded48f79df6216
2017-11-08 15:38:09 +01:00
Emilio Cobos Álvarez ebfcd1dbd3 Bug 1414999: Synchronously clean style data from the DOM tree when the shell goes away. r=bz
There's nothing preventing the flat tree from changing while the document
doesn't have a shell. In that case, we really really don't want to lose track
of elements with stale style data, since then we'll mess up.

It's ok to _not_ clear the style data when the document goes into the BFCache
though, because the document is thrown away if other document runs script and
touches the cached DOM.

MozReview-Commit-ID: 4W3xDAnnLPL
2017-11-20 22:11:23 +01:00
Emilio Cobos Álvarez 1e0a205233 Bug 1418560: Don't build IsFlattenedTreeChild in release builds. r=bustage
MozReview-Commit-ID: GP7Qds5loBI
2017-11-20 18:07:06 +01:00
Emilio Cobos Álvarez 02c0028d6e Bug 1418560: Properly return null from GetFlattenedTreeParent if the node is XBL fallback content and the binding is active. r=heycam
Otherwise we may inappropriately style it or what not. This asserts with the
patches of bug 1414999 plus the cleanup of bug 1418456, since we no longer do
StyleNewChildren (which walks over the flattened tree children).

Too bad that GetXBLBinding is a virtual call in Gecko, probably can do just
MAY_BE_IN_BINDING_MGR...

MozReview-Commit-ID: CNU0YdKeaR0
2017-11-20 17:32:07 +01:00
Emilio Cobos Álvarez 8025679be5 Bug 1418456: Yet another followup: Always re-get the style context in the servo case after loading an XBL binding to avoid tripping otherwise useful assertions. r=me
Now we always restyle the whole subtree for Servo, so we may create another
style context for the bound element.

This trips assertions if we happen to create pseudo-element styles for them.

Since that assertion is pretty useful, just re-get the style context all the
time, which is a cheap operation otherwise.

The CLOSED TREE nightmare should end. This wasn't caught in my try run because
another assertion made the crashtests stop running, apparently.

MozReview-Commit-ID: 6U0phWFvvXO
2017-11-20 17:09:29 +01:00
Emilio Cobos Álvarez b77fd25354 Bug 1418456: followup: Re-add the HasServoData check because I was too optimistic addressing review comments. r=me
On a CLOSED TREE.

MozReview-Commit-ID: 8vpoqBv1E3
2017-11-20 14:49:45 +01:00
Emilio Cobos Álvarez 6de5cb4bf8 Bug 1418456: Get rid of unstyled children only traversals. r=heycam
They're useless now, provided we remove the hack to not traverse XBL-bound
elements on initial styling.

This also allows us to get rid of the fallback case.

MozReview-Commit-ID: AvBVdyF1wb6
2017-11-20 13:05:35 +01:00
Emilio Cobos Álvarez 3d003a48ea Bug 1418456: Clear subtree element data when applying an XBL binding. r=heycam
We not only need to care about children getting inserted in the flat tree, but
also about children moving _out_ of the flat tree.

In particular, as of right now we may leave stale data on elements when they
disappear from the flattened tree.

We're lucky enough that in 99% of the situations we enter in[1] and that clears
all the stuff, including servo data. But my assertions for bug 1414999 caught
the template / observes case.

Thus, just clear the whole bound element subtree data, and restyle it in the
end, no need for StyleNewChildren. This matches what we do for shadow DOM
(though in the shadow DOM case we do it async in DestroyFramesForAndRestyle).

[1]: https://searchfox.org/mozilla-central/rev/9bab9dc5a9472e3c163ab279847d2249322c206e/dom/xbl/nsXBLBinding.cpp#368

MozReview-Commit-ID: 69A0aR0AFfU
2017-11-20 13:02:24 +01: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
Sebastian Hengst c9214daa09 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-18 11:58:58 +02:00
Matt Woodrow 23aea3be25 Bug 1417010 - Invalidate MathML display items whenever we invalidate the referenced nsMathMLChar. r=miko 2017-11-18 11:06:49 +13:00
Matt Woodrow 9a888dc0e1 Bug 1417529 - Part 2: Propagate invalidations with a 3d context up to the root, since we don't have valid overflow areas for except for the post-transform overflow on the 3d context root. r=miko 2017-11-18 10:59:23 +13:00
Matt Woodrow bae6122c8a Bug 1417529 - Part 1: Make sure UpdateBounds actually takes effect for transform separator items. r=miko 2017-11-18 10:57:56 +13:00
Matt Woodrow 7e4706b721 Bug 1417411 - Invalidate nsDisplayPerspective items when the inner transform frame changes. r=miko 2017-11-18 10:57:46 +13:00
Cameron McCormack 2c22f8a99a Bug 1418232 - Part 2: Simplify Gecko_MatchLang a little. r=emilio
MozReview-Commit-ID: 9dHoD5KQYvF

--HG--
extra : rebase_source : 025550fe2e0dfe68c91ec02b7e6747421fc4db55
2017-11-17 16:51:01 +08:00
Cameron McCormack de377508c9 Bug 1418232 - Part 1: Move pseudo-class matching helper methods from nsCSSRuleProcessor to nsCSSPseudoClasses. r=emilio
MozReview-Commit-ID: LYn6duc0Zwh

--HG--
extra : rebase_source : d05df8d736547426c8719d114782556571b6479b
2017-11-17 16:48:34 +08:00
Cameron McCormack 0c8270fed4 Bug 1418222 - Move system metrics handling to nsMediaFeatures. r=TYLin
MozReview-Commit-ID: 25yWc29Wt4R

--HG--
extra : rebase_source : 2f17bd7444de71c6e4d4cb2429ba85180425fc52
2017-11-17 15:35:26 +08: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
Andrew Osmond 19e321eb9e Bug 1366097 - Part 8. Improve image memory reports to include SVG context information. r=tnikkel 2017-11-17 14:08:52 -05:00
JerryShih 11cc44fa89 Bug 1416868 - make sure we could always get the specific userData from mask layer. r=mattwoodrow
The gecko have two types of mask layer: css mask layer and the regular mask layer.
The hash key of ContainerState::mRecycledMaskImageLayers doesn't contain mask type.
So, we might get a css mask layer when we try to get a regular mask layer. Then, we
will get a nullptr of userData.
This patch add a userData checking in ContainerState::CreateOrRecycleMaskImageLayerFor()
to avoid the problem.

MozReview-Commit-ID: EEUhkctqwR2
2017-11-16 19:15:00 +02:00
Jan de Mooij 3a57a1a466 Bug 1417844 part 5 - Stop passing -v 170 to xpcshell. r=jmaher 2017-11-17 12:14:04 +01:00
Ciure Andrei 0792c2eee8 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-17 12:11:30 +02:00
Ciure Andrei 92d28bd8f2 Merge inbound to mozilla-central r=merge a=merge 2017-11-17 11:59:03 +02:00
Ethan Lin 7096d91795 Bug 1416620 - Fix webrender commands in nsDisplayButtonBorder. r=kats
MozReview-Commit-ID: 418FZgwFR2i
2017-11-17 17:09:33 +08:00
Kartikaya Gupta 5142eee14b Bug 1389149 - Conditionally create the compositor hit-test info items. r=mstange
Create hit-test info items (if enabled) for each frame that is not
invisible to hit-testing. This is not optimized at all yet, so it
creates a lot of display items if enabled.

MozReview-Commit-ID: LFqoaZ9e99F

--HG--
extra : rebase_source : 8a4a6bf912f88b35f2ed86f9a84ddb74e69bde38
2017-11-15 11:39:45 -05:00
Kartikaya Gupta f00ba5afd5 Bug 1389149 - Add a new display item to carry the compositor hit-test info to WR. r=mstange
This also adds a flag to the nsDisplayListBuilder to better control
the creation of these items.

MozReview-Commit-ID: BbeRGDjd2ie

--HG--
extra : rebase_source : ec36114d3c7eefffcf9612fc2da1aaf1353c35d8
2017-11-15 11:39:45 -05:00
Kartikaya Gupta 26f0373ad0 Bug 1389149 - Extract the logic from nsDisplayLayerEventRegions::AddFrame into a more reusable form. r=mstange
This introduces a enum bitset type that encapsulates some of the
interesting properties that frames have that make it interesting for
hit-testing in the compositor. This type is designed so it can be sent
directly to webrender and gotten back in the hit-test.

MozReview-Commit-ID: GCxV7ZaoJd1

--HG--
extra : rebase_source : a9cc5ecfc7c5baeab2f6e08cd2ee2c2a7756e20c
2017-11-15 11:39:44 -05:00
Nicholas Nethercote 5de6bdb13b Bug 90440 - Remove the font.size.unit pref. r=dbaron.
The default value is 'px'. The alternative value is 'pt', but it's not clear
that changing it to 'pt' will actually work sensibly.

It was first suggested that this pref be removed 17 years ago, and it doesn't
appear to have become more useful since then. It's not set anywhere. Let's
remove it.

--HG--
extra : rebase_source : 9dbb44102db2bcc5ba6c2f354dc35d8a86acd8f3
2017-11-16 09:54:17 +11:00
Mats Palmgren b7af3313b9 Bug 1416544 - Don't report COMPLETE reflow status when we still have pushed floats on some next-in-flow frame. r=dholbert
This patch amends an existing workaround, but as the NOTE there says,
we should have pulled up those floats and reflowed them somewhere
(and pushed them again potentially, and then we wouldn't be COMPLETE).
It's unclear to me where that pull-up is supposed to happen though.

MozReview-Commit-ID: ES2rb1l7jyi
2017-11-16 18:58:29 +01:00
Csoregi Natalia cb7f426f17 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-16 18:02:21 +02:00
Csoregi Natalia aec7df4aef Backed out 2 changesets (bug 1415963) for failing reftests on Android 4.3 API16 css-invalid/select/select-disabled-fieldset-1.html r=backout a=backout on a CLOSED TREE
Backed out changeset f592e4962e2b (bug 1415963)
Backed out changeset b98f2fff0e17 (bug 1415963)
2017-11-16 17:41:58 +02:00
Gurzau Raul 6dcee027d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-16 12:04:45 +02: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
Emilio Cobos Álvarez f98054e952 Backed out changeset 9418c23dfdba (bug 1414999) for asserting in layout/reftests/generated-content/display-types-01.html, even though I can't reproduce it. r=me
MozReview-Commit-ID: A5gYlHivHTa
2017-11-16 05:56:16 +01:00
Emilio Cobos Álvarez 90bcf3fcca Bug 1414999: Synchronously clean style data from the DOM tree when the shell goes away. r=bz
There's nothing preventing the flat tree from changing while the document
doesn't have a shell. In that case, we really really don't want to lose track
of elements with stale style data, since then we'll mess up.

It's ok to _not_ clear the style data when the document goes into the BFCache
though, because the document is thrown away if other document runs script and
touches the cached DOM.

MozReview-Commit-ID: 4W3xDAnnLPL
2017-11-16 04:42:39 +01:00
Matt Woodrow 5e1a10f3be Bug 1406727. r=froydnj 2017-11-16 16:09:28 +13:00
Matt Woodrow 12d7cfd60d Bug 1416291 - Don't do partial display list building within preserve-3d contexts. r=miko 2017-11-16 16:09:19 +13:00
Gurzau Raul ef1ba4921a Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-16 12:17:24 +02:00
Matt Woodrow aab0cbe92c Bug 1406727. r=froydnj 2017-11-16 16:09:28 +13:00
Xidorn Quan ffd1cf2956 Bug 1417220 - Force re-resolve style for doc element when binding requires so. r=emilio
MozReview-Commit-ID: DdbpZnk7tCZ

--HG--
extra : rebase_source : 4672e37ea037d07651cd5cf5a136b9a38fedb3f2
2017-11-15 15:39:29 -08:00
Brindusan Cristian d0a4ab96a0 Merge inbound to mozilla-central r=merge a=merge 2017-11-16 00:24:15 +02:00
Nathan Froyd 2b3527011f Bug 1325632 - part 3 - compile rust bindings with -fno-sized-deallocation; r=ted.mielczarek
This probably doesn't make a huge difference, as we're not generating
any code here, but better safe than sorry.
2017-11-15 14:53:17 -04:00
Emilio Cobos Álvarez 981470d0c2 Bug 1415013: Clear servo data on flattened tree changes. r=bz
MozReview-Commit-ID: 3TsM8tbzPMV
2017-11-15 19:50:22 +01:00
Nika Layzell a63b1e0ebd Bug 1416384 - Part 2e: Eliminate duplicate declarations, and get gecko building again, r=smaug
There are many helper methods and structs in nsGlobalWindow.cpp. Many of these
are used by only the inner or only the outer window, while some are used by
both. In the case of the items used by both, I extracted them into
nsGlobalWindow.cpp, which includes nsGlobalWindowInner.cpp and
nsGlobalWindowOuter.cpp as the compilation unit entry point.

In the case of items used by just one or the other, I removed them from the
other file, and deleted the bodies of functions which used them, replacing them,
with a MOZ_CRASH.

This gets gecko building again, so that we can make further incremental
improvements.

MozReview-Commit-ID: 8QnJ1PX6TAO

--HG--
extra : rebase_source : 0eac00ad757f825a22a1af95d0a01d6fa92d824d
2017-11-15 11:33:58 -05:00
Boris Zbarsky e8d2ef04ef Bug 691151. Remove Event.getPreventDefault. r=smaug
MozReview-Commit-ID: FQ3LzP7rW6e
2017-11-15 12:23:58 -05:00
Nika Layzell 5c65681cb0 Bug 1415645 - Part 5: Fix some more consumers of nsGlobalWindow which I missed, r=smaug
MozReview-Commit-ID: DvMH4cVw5NK
2017-11-15 11:21:57 -05:00
Jonathan Watt 08a7a8b80b Bug 1382427 - Support running reftest in a mode that runs the test with Retained Display lists on, and references with it off. r=mattwoodrow
This change adds a pref reftest.compareRetainedDisplayLists to enable
this mode.

MozReview-Commit-ID: JxSkJrQifQx
2017-10-31 09:44:17 +00:00
Noemi Erli fe054d4e08 Backed out changeset c2bf7ca0839c (bug 1382427) for failing reftests r=backout on a CLOSED TREE 2017-11-15 14:22:43 +02:00
Brad Werth 6182a6fe8c Bug 1350780 Part 2: Add a test of getComputedStyle with pseudo element styling on an unflowed display:grid element. r=mats
MozReview-Commit-ID: KEk4cz5bEb0

--HG--
extra : rebase_source : 45a438614ff011bc6d6c4bf13b825c3a99746cd1
2017-11-13 17:45:29 -08:00
Brad Werth 35a17bc67c Bug 1350780 Part 1: Change nsComputedDOMStyle::DoGetGridTemplate{Columns|Rows} to take grid templates from mInnerFrame. r=mats
MozReview-Commit-ID: KYGfehqaOij

--HG--
extra : rebase_source : d05fcd8de27ae7a3b603e4adeb747f531145f0d0
2017-11-14 13:15:37 -08:00
Cameron McCormack c72056e124 Bug 1417393 - Count style contexts properly. r=emilio
MozReview-Commit-ID: FHoc7XOkH4P

--HG--
extra : rebase_source : 96439470bef18877bc3e6e6ed03645ced467518c
2017-11-15 19:44:05 +08:00
Noemi Erli c6ea2b9c8f Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-15 12:13:56 +02:00
Noemi Erli 550148ab69 Merge inbound to mozilla-central r=merge a=merge 2017-11-15 11:57:12 +02: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
Ya-Chieh Wu d2e5bc76eb Bug 1381153 - Part 1: Cache MayHaveOpacityAnimation and MayHaveTransformAnimation in nsIFrame. r=mstange, r=mats
There are two places where I have to cache the status of MayHaveOpacityAnimation
and MayHaveTransformAnimation. First place is in |nsIFrame:init()| where an
element is associated with a frame. Second place is in
|KeyframeEffectReadOnly::UpdateEffectSet()| where the script can add animations
on element.

btw I keep the original two flags of MayHaveOpacityAnimation and
MayHaveTransformAnimation in EffectSet because there is no guarantee that
an element has been associated with a frame when we call to |UpdateEffectSet()|.
But we still want to keep the benefits that we can quickly look up
MayHaveOpacityAnimation or MayHaveTransformAnimation. So I keep them in
EffectSet and transfer the status into nsIFrame when we bind an element
to a frame in nsIFrame:Init().

MozReview-Commit-ID: JDwyAQQTKA7
2017-11-13 18:15:00 -05:00
Xidorn Quan d1120869f6 Bug 1417281 part 1 - Trigger subtree restyle when lwtheme / lwthemetextcolor attribute on root element of XUL document is changed. r=heycam
MozReview-Commit-ID: 2RM3ZkWKiSl

--HG--
extra : rebase_source : a4619229de23a55696a37974d2daa007b7e803a3
2017-11-14 17:53:11 -08:00
Ethan Lin 391f141dc6 Bug 1415407 - Update annotations for related tests. r=kats
MozReview-Commit-ID: 5RD3UaFi9nG

--HG--
extra : rebase_source : 9e0a0968e1cf4eb6bb6d6f4654cf4ef0ffe733c3
2017-11-15 06:37:53 +00:00
Ethan Lin 90f209e713 Bug 1415407 - Add webrender support for filters (hue-rotate, opacity, saturate). r=kats
MozReview-Commit-ID: 7LGmFOsyPUU

--HG--
extra : rebase_source : 0c6716c8a2db602a7dcab39ed25975e107c3d5d2
2017-11-08 04:04:27 +00:00
Botond Ballo 5b02c23562 Bug 1415963 - Add a reftest. r=mstange
MozReview-Commit-ID: kbVHp3lqCU

--HG--
extra : rebase_source : fc7117ba005a378e6746305e4c5966b7a566920e
2017-11-13 19:35:58 -05:00
Botond Ballo ea4262207f Bug 1415963 - Take into account stroke (not just fill) when calculating the contribution of an SVG element to a clip rect for a clip path. r=mstange
MozReview-Commit-ID: 7ZwwOH0ErRN

--HG--
extra : rebase_source : ceb52d8f5c57259f99ac819fa4e7cfda92bd893e
2017-11-13 19:35:51 -05:00
Brindusan Cristian cdb95907ba Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2017-11-16 00:41:40 +02:00
Markus Stange ae94ae81a4 Bug 1350930 - Move profiler markers for reflow and style flushes from the refresh driver into the PresShell. r=bz
MozReview-Commit-ID: FQs2zsIU2zO

--HG--
extra : rebase_source : 166617f5966cbad18401bc590a266ce00d858bab
2017-11-15 16:10:32 -05:00
Markus Stange a25f1fafb3 Bug 1417197 - Create nsITheme::CreateWebRenderCommands in order to optimize simple theme fills, and add a Mac implementation. r=jrmuizel
MozReview-Commit-ID: 1G9NHPwd5ST

--HG--
extra : rebase_source : 74189f1bad32600979b099663bae27cd24d1f0ec
2017-11-14 15:34:56 -05:00
Markus Stange 457af832c8 Bug 1415203 - Don't refuse to create WebRender commands due to -moz-border-*-colors on border sides that don't have a border. r=jrmuizel
MozReview-Commit-ID: DPQQgds3GOk

--HG--
extra : rebase_source : 8fd44cb73619f475accd0ae5eb098b317cb958de
2017-11-14 15:47:53 -05:00
Jonathan Watt 61b75cd481 Bug 1382427 - Support running reftests with retained display lists on for the test files only. r=mattwoodrow
MozReview-Commit-ID: 4n2kvXU2RYo
2017-10-30 18:09:41 +00:00
Csoregi Natalia de043261b9 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE
--HG--
extra : rebase_source : cf4ea2aa6cd7874c0ae1aa0a3982453f2347a4d4
2017-11-16 17:57:40 +02:00
Noemi Erli 696ac83de9 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-18 02:55:06 +02:00
Noemi Erli d96f41a437 Merge inbound to mozilla-central r=merge a=merge 2017-11-18 00:01:46 +02:00
Botond Ballo b968be1ddd Bug 1416754 - Reftest. r=longsonr
MozReview-Commit-ID: Kd0umDQxYsH

--HG--
extra : rebase_source : 60fe483c9d650ba3dc0eddddb46f302c24ded37a
2017-11-17 15:19:34 -05:00
Botond Ballo 6adc2e4d1d Bug 1416754 - Account for a clip-path's transform in nsSVGUtils::GetBBox(). r=longsonr
MozReview-Commit-ID: 87RpVYk0nm0

--HG--
extra : rebase_source : 95bc906f923de229f6af63473f263e07d81e60ff
2017-11-15 17:33:41 -05:00
Miko Mynttinen 3b508a2e1b Bug 1417601 - Override dirty rect for OOF frames with containing block outside a modified stacking context r=mattwoodrow
MozReview-Commit-ID: DqvdDECU7dM

--HG--
extra : rebase_source : 3abb1741d8fec40249a4450ed3e867691c490f95
extra : intermediate-source : 0ac00e0c1d107480da7c387ac6969f4eafd96475
extra : source : e88d129b7a6d372adddb781b8e6384f70c08c380
2017-11-16 16:09:16 +01:00
Botond Ballo 5f6ce2d40f Bug 1415963 - Add a reftest. r=mstange
MozReview-Commit-ID: kbVHp3lqCU

--HG--
extra : rebase_source : fc7117ba005a378e6746305e4c5966b7a566920e
2017-11-13 19:35:58 -05:00
Botond Ballo 2e288f9a6b Bug 1415963 - Take into account stroke (not just fill) when calculating the contribution of an SVG element to a clip rect for a clip path. r=mstange
MozReview-Commit-ID: 7ZwwOH0ErRN

--HG--
extra : rebase_source : ceb52d8f5c57259f99ac819fa4e7cfda92bd893e
2017-11-13 19:35:51 -05:00
Kartikaya Gupta 90e8088bb6 Bug 1417062 - Update reftest annotations for changes in WR PR 2031. r=nical
MozReview-Commit-ID: 9yCEOjrnPSQ

--HG--
extra : rebase_source : 13cf0cd891a2d6a5eac800616422274c4a465c19
2017-11-17 08:43:30 -05:00
Jeremy Chen 7387e4c386 Bug 1415581 - get the correct positions of explicit hyphens while calling PropertyProvider::GetHyphenationBreaks. r=jfkthame
In the current implementation, when hyphens property is set to auto, we do some
math to determine the index of text fragment, so we can check whether a character
is an explicit hyphen. However, the math calculation is not reliable, and it is
not easy to calculate the fragment index when there are more than one fragments
in a gfxTextRun, e.g., a paragraph which consists multiple inline elements.

In this patch, we simply use GetOriginalOffset() to get the position relative
to the current text fragment, and scan/detect explicit hyphens correctly.

MozReview-Commit-ID: JIg3tdpViRH

--HG--
extra : rebase_source : a6ac03914badd2f2dcd238186a6653e8660bc116
2017-11-17 12:00:58 +08:00
Jeremy Chen 7d5e0d0763 Bug 1415581 - add reftest. r=jfkthame
Add reftest to ensure that hyphenation breaks are not affected if there are
multiple inline elements inside a paragraph.

MozReview-Commit-ID: Jmh0LPgjCVF

--HG--
extra : rebase_source : 985ae8c3f878c0275b3dab6876bbc544ccb8cc36
2017-11-16 19:19:07 +08:00
Jeremy Chen fa080f402c Bug 1387176 - switch nsFrameSelection to use per-member defaults. r=TYLin
Many members of nsFrameSelection are uninitialized, which could cause some
potential issues. In this patch, we use per-member defaults for nsFrameSelection,
and make sure we initialize all the members properly.

MozReview-Commit-ID: H9MMlSZoinh

--HG--
extra : rebase_source : c68ac4f61a687fd981363efa924fdbb2e0804b10
2017-11-17 17:03:15 +08:00
Jeremy Chen c4bc4498fd Bug 1387176 - move member initialization from the constructor to class definition for nsFrameSelection. r=TYLin
In this patch, we move the member assignments in nsFrameSelection's constructor
to nsFrameSelection's class definition. This is a pre-patch for switching
nsFrameSelection to use per-member defaults. With this patch, all the uninitialized
members can be tracked easily.

MozReview-Commit-ID: 1HhTDlV73QN

--HG--
extra : rebase_source : f97f7a46ba70e1f36f4812591d73b64061cf0c9e
2017-11-17 16:18:40 +08:00
lochang 9214b56b5a Bug 1406268 - Use rect width/height instead of minimum width/height and clamp the rect on Linux. r=mats
MozReview-Commit-ID: B7KjnO9uaef

--HG--
extra : rebase_source : c4647b31b650dddd90df528ff1ac48f72d92fed5
2017-11-17 14:20:42 +08:00
KuoE0 7e30937e7c Bug 1418180 - Add parent information into the output of the frame tree. r=TYLin
Sometimes, when adjusting the frame construction procedure, the relationship
between parent and child would be unexpected. So, adding the parent info
into that allows us to notice the expected result.

MozReview-Commit-ID: 8DWOXing463

--HG--
extra : rebase_source : 6d45b0fc40a90ca141a267ec7f152a8bd6d33932
2017-11-17 11:20:38 +08:00
Cameron McCormack 99c87da38a Bug 1418217 - Move visited links pref to StylePrefs. r=TYLin
On a CLOSED TREE to fix Servo bustage.

MozReview-Commit-ID: HLukaX0EFFv
2017-11-17 14:08:22 +01:00
Emilio Cobos Álvarez 13a641cf32 Bug 1417924: Don't test <style scoped> in display: contents tests. r=heycam
MozReview-Commit-ID: 5RSWXHmzKRi

--HG--
extra : rebase_source : b0e2d61905115b2d6057bdc355f4cf9ebd4ea8b5
2017-11-16 15:37:25 +01:00
Emilio Cobos Álvarez 75f51aafd5 Bug 1417701: Remove some useless rules and importance declarations in ua.css. r=heycam
There's no need to set anon boxes reset properties to their defaults.

Also, there's no need to use !important, since they have no other rules. There's
::-moz-pagecontent which is tricky, because it can be affected by @page rules,
but only margin properties are allowed on those.

MozReview-Commit-ID: Gtl9jTLYyXA

--HG--
extra : rebase_source : c151a61f112a7e2fe402663bb32e76514ddb69c9
2017-11-16 19:13:41 +01:00
Cameron McCormack 12c5248d34 Bug 1418216 - Move IsCSSSheetType out of nsStyleSet. r=TYLin
MozReview-Commit-ID: 6OV5WHX4INb

--HG--
extra : rebase_source : 35bc872210252aeed011734aaa54b9e25da92c6f
2017-11-16 09:37:17 +08:00
Ciure Andrei fdbe147ffb Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-17 12:09:31 +02:00
Brendan Dahl 910a43290e Bug 1409580 - Skip test_transformed_scrolling_repaints_2.html in headless mode on MacOS. r=jrmuizel
MozReview-Commit-ID: EzaRkMKWjUE

--HG--
extra : rebase_source : 86702c0f7b8fe758fd118d6a9ead6f9b74345019
2017-11-02 17:10:47 -07:00
Ed Lee cf71bbf47e Bug 1415812 - Fix broken Pocket disclaimer, missing rich icons and bug fixes to Activity Stream. r=k88hudson
MozReview-Commit-ID: CAHA3b13jCE

--HG--
extra : rebase_source : a147b717fe2915c20d6e4e1e8f752769295331e7
2017-11-15 12:27:46 -08:00
Alex Gaynor c8aadb27c8 Bug 1417939 - do not crash in release builds when a PRFileDescStream is closed twice; r=bobowen
This makes it API compatible with std::ostream, which it replaced. This silences a rare crash.

MozReview-Commit-ID: JoNo1qRCb0n

--HG--
extra : rebase_source : bcdce5d57fd0620610a5c797045d95b44fbc9099
2017-11-16 13:38:33 -05:00
Cameron McCormack 180dccaf7d Bug 1417841 - Don't reset <textPath> first character coordinate to 0 when an ancestor text content element specifies an explicit position coordinate. r=longsonr
MozReview-Commit-ID: KpJCuYwXxXC

--HG--
extra : rebase_source : ab8cde36825c580fd77337aac6e8a7d7bcd47e95
2017-11-16 13:19:11 +08:00
Emilio Cobos Álvarez f9b153f761 Bug 1416564: Remove mozmm CSS unit. r=heycam
MozReview-Commit-ID: AU4CUq09tw4
2017-11-14 16:14:17 +01:00
Sebastian Hengst 57fd5c3c24 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-14 14:48:43 +02: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
Sebastian Hengst 53f71049ff Backed out 2 changesets (bug 1416620) for failing own reftest. r=backout a=backout on a CLOSED TREE
Backed out changeset 3b45218edc2e (bug 1416620)
Backed out changeset c48580e1f535 (bug 1416620)
2017-11-14 13:04:52 +02:00
Emilio Cobos Álvarez 407a8b95ff Bug 1416756: Stub out Servo_SourceSizeList_Drop so MingGW builds again. r=heycam
MozReview-Commit-ID: 9zvYonPJL16

--HG--
extra : rebase_source : 5c3e3e491684f167b0b9cb614395adfc012e6cf2
2017-11-13 16:41:59 +01:00
Ethan Lin 81075981f6 Bug 1416620 - Part1. Fix webrender commands in nsDisplayButtonBorder. r=kats
MozReview-Commit-ID: 418FZgwFR2i

--HG--
extra : rebase_source : a1f1da061f55fb6cac22e74eae80503fd9168717
2017-11-13 13:54:11 +08: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
Ting-Yu Lin 6b102ecb1a Bug 1416962 - Remove the support for disabling "drag and select" on touchable devices. r=mats
The pref "browser.ignoreNativeFrameTextSelection" was used only by B2G, and
currently not enabled elsewhere, so this code is dead now. Also, this
functionality is obsoleted by AccessibleCaret.

MozReview-Commit-ID: 2kHYXLueFH5

--HG--
extra : rebase_source : d610dd7f4c3aa48fbcae0d9bed4736b89cf7b659
2017-11-14 11:22:59 +08: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
Kartikaya Gupta 6fe3141125 Bug 1416540 - Avoid unnecessary conversion to doubles in ActiveLayerTracker code. r=mstange
This code was written before the ScaleFactors() function was available on
the float-based gfx::Matrix, which I presume is why it was written to
convert the matrix to the double-based variant and store the scale as
doubles. We don't need to do that any more.

MozReview-Commit-ID: EoWLpny8g61

--HG--
extra : rebase_source : 4cac59121961bfb35359def042ac4b0200a85312
2017-11-12 18:37:33 -05:00
Kartikaya Gupta 2c46265720 Bug 1416540 - Avoid unnecessary use of double-based types in GenerateAndPushTextMask. r=jfkthame
The code here feeds into gfxContext::mTransform which is float-based, so
using double-based rects and matrices here is unnecessary.

MozReview-Commit-ID: CbeMM8003DA

--HG--
extra : rebase_source : 735d5c880cca36b9e9bea6cb0c94825b6a1c4597
2017-11-12 18:37:32 -05:00
Ting-Yu Lin dfca359d6e Bug 1416699 - Add a space between #include and comment. r=jeremychen
Skip files under intl/icu/ because they're imported from third party.

DONTBUILD because this is a whitespace-only change.

MozReview-Commit-ID: GSd6oeFSTO7

--HG--
extra : rebase_source : 38c20bf6099c18b2fcb4c324d470b279addf8891
2017-11-13 17:54:18 +08:00
Narcis Beleuzu 81344fe444 Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2017-11-13 12:00:43 +02:00
Narcis Beleuzu 6185875025 Merge inbound to mozilla-central r=merge a=merge 2017-11-13 11:53:28 +02:00
Emilio Cobos Álvarez 7812d97abf Bug 1396057: Update test expectations. r=me
MozReview-Commit-ID: 4h7bVe5pHkt
2017-11-13 04:21:33 +01:00
Jeremy Chen c02390a457 Bug 1416689 - fix frame dump code in nsIFrame::ListGeneric. r=TYLin
I believe this is a typo. This fix will not affect the existing frame dump result
because the input parameter, i.e., aTo, has been initialized to empty string by
the caller before calling. So, the first line of nsIFrame::ListGeneric can be
written as:

a) aTo =+ aPrefix;
b) aTo += aPrefix;
c) aTo = aPrefix;

and all three results are the same at present.

In this patch, we fix the typo by choosing (b) to make it align the rest parts
of nsIFrame::ListGeneric.

MozReview-Commit-ID: CHJDyVSJj5W

--HG--
extra : rebase_source : 2569f2ebaf72a1a4784cf58a76f14382811412e7
2017-11-13 17:12:03 +08:00
Emilio Cobos Álvarez 0e8ba9b1b5 Bug 1408308: Reland the bindings so the build isn't busted, but we don't need to backout the servo bits. r=me
That way we don't bust the build (for some reason the ASAN build choked in
ResponsiveImageSelector, I suspect due to missing includes).

MozReview-Commit-ID: 6I6Q7jiAFr0
2017-11-13 06:33:46 +01:00
Margareta Eliza Balazs 85280dc48c Backed out 1 changesets (bug 1408308) for bustage in [toolkit/library/target] r=backout on a CLOSED TREE
Backed out changeset b59ffea83e0a (bug 1408308)
2017-11-13 07:23:52 +02:00
Emilio Cobos Álvarez 58aae7a733 Bug 1408308: Integrate Servo SourceSizeList in ResponsiveImageSelector. r=Manishearth
This needs to dumb down the parsing in order to match what we do in Gecko and
pass more tests.

The remaining tests are just because of calc() in media queries and "or" media
expressions.

MozReview-Commit-ID: CXGdYVbojBL
2017-11-13 05:18:36 +01:00
Mantaroh Yoshinaga 009f4e7e5c Bug 1354832 - Sort a fuzzy-if condition of bugs/368020-1.html to descending order. r=mats
Current fuzzy-if of reftest will use last specified fuzzy range which condition
is true. In this test case, all fuzzy-if condition is true and doesn't order in
descending. We should sort this order in descending order.

MozReview-Commit-ID: 2foJaqFAOwG

--HG--
extra : rebase_source : 9a7311eb7ded5556bd9e075c9da66c0db047c95a
2017-11-13 09:00:43 +09:00
Matt Woodrow 3af1439f69 Bug 1416448 - Don't update the ASR during merging for an empty container item, since we can't compute the ASR of the contents. r=miko 2017-11-13 09:02:48 +13:00
Matt Woodrow 53892cd491 Bug 1413073 - Fix rebase issue that caused us to only update the container asr for reused items. 2017-11-11 15:46:48 +13:00
Coroiu Cristina 230207fe30 Merge inbound to mozilla-central r=merge a=merge 2017-11-12 00:05:11 +02:00
Jonathan Kew 49c97adb4e Bug 1411625 - Remove the constructor from gfxShapedText::CompressedGlyph to make it a trivial class, and provide a couple of convenience "factory" methods to create simple and complex glyph values. r=andi 2017-11-11 15:32:58 +00:00
Andreea Pavel 7fb4cc447c Merge inbound to mozilla-central r=merge a=merge 2017-11-11 11:59:20 +02:00
Ethan Lin beaea27dc3 Bug 1415989 - Do not use 'ShouldUseAdvancedLayer' for button type display items. r=jrmuizel
MozReview-Commit-ID: 83qOTfTRUY0

--HG--
extra : rebase_source : 560f285f3092cd75d14d27cae4adcb8e9dca0e3a
2017-11-10 11:41:15 +08:00
Ryan Hunt eb27ee5903 Add a reftest (bug 1409871, r=mstange)
MozReview-Commit-ID: 9UxLeFGZW8E

--HG--
extra : amend_source : 8a465617d209183e6744324a01f763282832596b
2017-11-05 10:05:14 -06:00
Ryan VanderMeulen ef843a0e30 Merge m-c to inbound. a=merge 2017-11-10 16:14:16 -05:00
Ryan VanderMeulen b16410f51c Merge inbound to m-c. a=merge 2017-11-10 16:13:15 -05:00
Emilio Cobos Álvarez 5e27db6805 Bug 1415021: Re-disable web-components in the crashtest for leaks, see bug 1416296. r=me on a CLOSED TREE
MozReview-Commit-ID: IhWWbh7B8N
2017-11-10 18:58:11 +01:00
Andrea Marchesini b06af90b93 Bug 1416174 - part 1 - OSFileConstants must be a singleton, r=smaug 2017-11-10 19:27:03 +01:00
Mats Palmgren e471cefe55 Bug 1415683 - Make nsGridContainerFrame aware of the ::backdrop placeholder list. r=dholbert
MozReview-Commit-ID: KtOTmQSYgAn
2017-11-10 19:28:05 +01:00
Jason Kratzer 4b13bd4cda Bug 1415185 - Crashtest.
MozReview-Commit-ID: EoXgceDULsF
2017-11-10 19:28:05 +01:00
Mats Palmgren 72cf06d0c8 Bug 1415185 - Make nsBlockFrame::DoRemoveFrame handle anon/generated content from all the continuations it destroys. r=emilio
nsBlockFrame::DoRemoveFrame destroys the continuations in first-to-last
order. Unfortunatley, this means that frames for anon/generated content
that were pushed to a later continuation may already be unbound by
the time we destroy its frame.  This patch fixes that by collecting
anon/generated content from all the continuations, rather than from
each continuation separately.


MozReview-Commit-ID: LPBSoqjfjnA
2017-11-10 19:28:05 +01:00
Milan Sreckovic bec00bb060 Bug 1416012 - Fix a typo where << was used instead of <= (in a currently unused function LogicalRect::IsEmpty). r=bz 2017-11-10 07:18:00 -05:00
Kartikaya Gupta 650c3b8c8f Bug 1415150 - Update reftest result for changes in WR PR 2010. r=jrmuizel
MozReview-Commit-ID: 2QreASOyJ1M

--HG--
extra : rebase_source : 87bb0b8380aabc73a3fede232805c9610339d2df
2017-11-10 10:55:12 -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
Chris Peterson feb58d9d37 Bug 1416164 - Replace NS_NOTYETIMPLEMENTED with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: B5TZB3v52wY

--HG--
extra : rebase_source : 56bef4eead24901191f190e31d2841710097cdcf
2017-10-25 00:37:02 -07:00
Chris Peterson 0e8425b401 Bug 1416164 - Replace NS_ABORT with MOZ_ASSERT_UNREACHABLE. r=froydnj
MozReview-Commit-ID: DRdYlOYqZpN

--HG--
extra : rebase_source : b20fb24abf0f2ce648c12a827532c0dbeefb6c63
2017-10-24 23:52:56 -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
Mike Conley e899949a10 Bug 1172171 - Add a chrome-only scrollend event. r=kats
MozReview-Commit-ID: 1mUqPdsb31I

--HG--
extra : rebase_source : 234c70fdf14fc7174cbbc3aac76d718bb63b5270
2017-10-10 14:54:49 -04:00
Emilio Cobos Álvarez 6d99e28430 Bug 1415021: Enable webcomponents in the crashtest since it calls createShadowRoot. r=me
Thanks RyanVM for the heads-up!

MozReview-Commit-ID: nOQtodKAVY
2017-11-10 17:11:28 +01:00
Nathan Froyd 17b6101551 Bug 1341234 - part 2 - add an intermediate step for determining bindgen's CFLAGS; r=gps
Add an intermediate step in old-configure.in for setting up
BINDGEN_CFLAGS (renamed to BINDGEN_SYSTEM_FLAGS), so we can add whatever
flags we like (e.g. for system libaries with their includes in
non-standard places) at a later point.
2017-11-10 10:05:36 -05:00
Emilio Cobos Álvarez f21768f547 Bug 1415021: Add crashtest. r=me
MozReview-Commit-ID: AX0CTVFJo7P
2017-11-10 15:16:32 +01:00
Geoff Brown cbb956e0c3 Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh 2017-11-10 07:03:36 -07:00
Noemi Erli ca01158c96 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-10 12:45:26 +02:00
Margareta Eliza Balazs 7e070192d7 Merge inbound to mozilla-central r=merge a=merge 2017-11-10 11:55:43 +02:00
Tommy Kuo f1d1a3edc1 Bug 1415214 - (Part 2) Add test case for the regression. r=jfkthame
MozReview-Commit-ID: AdlSs9NbKIm
2017-11-10 16:45:19 +08:00
Tommy Kuo d9b8b8aa04 Bug 1415214 - (Part 1) Fix the bound of the clip rect for drawing decoration lines. r=jfkthame
MozReview-Commit-ID: KoDvzqaCSGB
2017-11-10 16:45:19 +08:00
Matt Woodrow 1696dda8f9 Bug 1413073 - Part 3: Recompute ASR and clip-chains on wrap lists when merging. r=mstange
--HG--
extra : rebase_source : 5c03d88f8d3467dad32fc3589803180fdad4e488
2017-11-10 13:16:55 +13:00
Matt Woodrow 7e5b5d152d Bug 1413073 - Part 2: Only force frames to have display items built if they intersect the dirty rectangle. r=mstange
--HG--
extra : rebase_source : d26f57488cb298cb3d1ea0b3ca600925279a5976
2017-11-10 13:16:45 +13:00
Matt Woodrow 367e79bd4d Bug 1413073 - Part 1: Add new crashtests for complex ASR cases. r=mstange
--HG--
extra : rebase_source : b2a075e9c703d7cd470546cf2bbd6516bea8192f
2017-11-10 13:16:36 +13:00
Matt Woodrow e1ee7ce3d0 Bug 1415672 - Don't invalidate the entire frame tree when we're marking a specific frame as being modified. r=miko
--HG--
extra : rebase_source : 7ec5936718e52803bcdf6f1edf435b8247c5107d
2017-11-10 13:16:26 +13:00
Phil Ringnalda ef24cfe9e6 Backed out 2 changesets (bug 1415214) for failures in 1415214.html
Backed out changeset 54a656b4c587 (bug 1415214)
Backed out changeset dbd2b14a7466 (bug 1415214)

MozReview-Commit-ID: 3NOHVkBjMVD
2017-11-09 22:46:22 -08:00
Tommy Kuo 543c7f2d74 Bug 1415214 - (Part 2) Add test case for the regression. r=jfkthame
MozReview-Commit-ID: 4g6QQtZsYT1
2017-11-10 13:53:05 +08:00
Tommy Kuo 1c4700db4c Bug 1415214 - (Part 1) Fix the bound of the clip rect for drawing decoration lines. r=jfkthame
MozReview-Commit-ID: L534I2s3xTi
2017-11-10 13:53:05 +08:00
Neil Deakin 52d3f646c7 Bug 380637, when an Alt+accesskey for a menubar menu is pressed, check if the user has blocked sites from overriding keyboard shortcuts, and don't send the event to the page if so. Add a similar check for the F10 key which focuses the menubar. An additional capturing keydown listener is added because the key needs to be blocked before content sees it. r=masayuki 2017-11-09 18:42:40 -05:00
Andrea Marchesini a4ddff0ca6 Bug 1347515 - Get rid of dom/json, r=qdot 2017-11-10 00:27:36 +01:00
Andreea Pavel e1c8aba28f Merge mozilla-central to mozilla-inbound r=merge a=merge on a CLOSED TREE 2017-11-09 22:17:00 +02:00
Kyle Machulis dacb51138d Bug 1415716 - Remove nsIDOMHTMLOptionElement; r=bz
MozReview-Commit-ID: JGxQxeFBQlO

--HG--
extra : rebase_source : 86c8b72862e84f17920d45b375c0db704ebe2eb3
2017-11-08 17:43:09 -08:00
Kartikaya Gupta 463cce7a87 Bug 1415225 - Small early-exit optimization. r=botond
MozReview-Commit-ID: A3UuqKKOsjA

--HG--
extra : rebase_source : 78042095524bda3371f347817b2ff201c9863729
2017-11-09 09:03:52 -05:00
Kartikaya Gupta 3c76c8128a Bug 1415225 - Move the EventRegionsOverride field to be on RefLayers only. r=botond
We now set EventRegionsOverride flags on ref layers only, so
there's no need to have the APIs to set it on container layers in
general.

MozReview-Commit-ID: JKU4UXvdR2e

--HG--
extra : rebase_source : 77f49787e8953520dc56ea4a8f9286b35d6942b8
2017-11-09 09:03:52 -05: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
Kartikaya Gupta 028fa48259 Bug 1415225 - Stop setting the EventRegionsOverride flag on in-process subdocument layers. r=botond
The mechanics of this change is fairly straightforward - instead of setting the
override on the layer corresponding to the in-process subdocument, we just set
the flag on the display list builder; that flag is already checked when building
the layer event regions for descendant nsIFrames.

As a side-effect, we also don't need to force a layer for in-process subdocuments
just because they have document-level APZ-aware listeners. One of reasons we were
doing so before was so that we would have a layer to stash the override flags on
but now we don't need that any more.

Note that out-of-process subdocuments are not affected; for those cases
the nsSubDocumentFrame delegates BuildDisplayList to
RenderFrameParent/nsDisplayRemote, which will still set the overrides on
the RefLayer that is created.

MozReview-Commit-ID: DZWglE4e62p

--HG--
extra : rebase_source : 78494a5cbfd0dfecb5f2262e5c1b3dc5367c5d55
2017-11-09 09:03:51 -05:00
Sebastian Hengst 92922351ff merge mozilla-central to autoland. r=merge a=merge 2017-11-09 11:59:49 +02:00
Sebastian Hengst 8916884b22 Backed out 6 changesets (bug 1415225) for frequently failing own gfx/layers/apz/test/mochitest/test_group_overrides.html on Windows. r=backout
Backed out changeset 27403a9dec13 (bug 1415225)
Backed out changeset 9e6710586531 (bug 1415225)
Backed out changeset 8cfef302b710 (bug 1415225)
Backed out changeset 8ae80d7421d5 (bug 1415225)
Backed out changeset 5f14fc545115 (bug 1415225)
Backed out changeset 4704645d4e81 (bug 1415225)
2017-11-09 11:59:04 +02:00
Sebastian Hengst 1b0413a887 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-09 11:53:05 +02:00
Emilio Cobos Álvarez 55be70adce Bug 1317937: Disallow <a> as <area> in image maps. r=mats
MozReview-Commit-ID: JTZgVMV7bZr

--HG--
extra : rebase_source : 3f44fa3d6fb245bbb05f327eb4ad9b119cd0fadc
2017-11-08 16:28:44 +01:00
Timothy Nikkel 397cbc598a Bug 1317937: Rename nsImageMap::mContainsBlockContents to mConsiderWholeSubtree so it is more descriptive of what it actually does. r=mats
MozReview-Commit-ID: 4TpkkWmMIrc

--HG--
extra : rebase_source : cfe444f66bc17f74fe05e6ca58383ecf042fdbd2
2017-11-08 16:02:05 +01:00
Jason Kratzer c85719a37f Bug 1415663 - Add crashtest. r=me 2017-11-08 22:39:49 -05:00
Miko Mynttinen 845735af56 Bug 1395476 - Do not call mStoredList.RecomputeVisibility for 3d transforms r=mattwoodrow
MozReview-Commit-ID: 1pnYL2RtFi6

--HG--
extra : rebase_source : 85699125c4b547b99ce2bf8580e0cd40720a285b
2017-11-08 02:54:10 +01: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
Mats Palmgren 2265d4509e Bug 1405319 part 2 - Reftests.
MozReview-Commit-ID: 49ntwW5qoFr
2017-11-09 03:00:47 +01:00
Mats Palmgren 25b73f4951 Bug 1405319 part 1 - Don't try to optimize re-positioning of Flexbox/Grid abs.pos. children since they are affected by CSS Align positioning too. r=dholbert
MozReview-Commit-ID: 2KNfvNVCeIN
2017-11-09 03:00:47 +01:00
David Anderson d3b572527a Don't fallback to DrawTargetCairo in TextureClient. (bug 1413862, r=mattwoodrow) 2017-11-08 16:57:25 -08:00
Kartikaya Gupta be01b429eb Bug 1415225 - Small early-exit optimization. r=botond
MozReview-Commit-ID: 8h1kYevQUtT

--HG--
extra : rebase_source : 8d529c1f48d6655e2b90d12ddb9e8c7845bded6f
2017-11-08 20:47:19 -05:00
Kartikaya Gupta f07bd076ed Bug 1415225 - Move the EventRegionsOverride field to be on RefLayers only. r=botond
We now set EventRegionsOverride flags on ref layers only, so
there's no need to have the APIs to set it on container layers in
general.

MozReview-Commit-ID: EX57VvaZv8A

--HG--
extra : rebase_source : 7ea4c8bb2716821bf7069158fdf9729fb6137a35
2017-11-08 20:47:19 -05:00
Kartikaya Gupta 536af04afe 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: KQV3w2nvlgs

--HG--
extra : rebase_source : 5be30af2d928117519296ec238eac91139986531
2017-11-08 20:47:18 -05:00
Kartikaya Gupta 0e18ce302a Bug 1415225 - Stop setting the EventRegionsOverride flag on in-process subdocument layers. r=botond
The mechanics of this change is fairly straightforward - instead of setting the
override on the layer corresponding to the in-process subdocument, we just set
the flag on the display list builder; that flag is already checked when building
the layer event regions for descendant nsIFrames.

As a side-effect, we also don't need to force a layer for in-process subdocuments
just because they have document-level APZ-aware listeners. One of reasons we were
doing so before was so that we would have a layer to stash the override flags on
but now we don't need that any more.

Note that out-of-process subdocuments are not affected; for those cases
the nsSubDocumentFrame delegates BuildDisplayList to
RenderFrameParent/nsDisplayRemote, which will still set the overrides on
the RefLayer that is created.

MozReview-Commit-ID: GTy9BmVVZ9q

--HG--
extra : rebase_source : be321091d6b5fe4b66738f2deeffbcfa6af0b521
2017-11-08 20:47:18 -05:00
Kyle Machulis bcce449ae5 Bug 1408186 - Remove nsIDOMHTMLSelectElement and nsIDOMHTMLOptionsCollection; r=bz
MozReview-Commit-ID: Gh3JwLUtmz9

--HG--
extra : rebase_source : 6cdee487246406cafe0e5a9afe4a44f62d131c8b
2017-10-12 16:32:25 -07:00