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

61361 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 8907491b95 Bug 1419355: Add a test for non-content-accessible properties, and make Stylo and Gecko consistent. r=xidorn
MozReview-Commit-ID: 2n773xkmAqX

--HG--
extra : rebase_source : 3c515cbeb1c79c9d98c95bfd18590bd18de82a0c
2017-11-21 11:57:17 +01:00
Emilio Cobos Álvarez 9d2d410823 Bug 1418963: Enable chrome-only CSS features in user stylesheets. r=heycam
MozReview-Commit-ID: FJ4vTiOrotH

--HG--
extra : rebase_source : b41e96a2dc4a60bcf5999557557c6dff406dbf1e
2017-11-21 10:11:05 +01: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