Commit Graph

416 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
6133d4c3a3 Bug 1488817 - Remove the has-first-letter-child bit from the block when the first-letter is removed from a first-line. r=bzbarsky
Always new reasons to remove the first-line frame and this reparenting stuff...
I hope I can get to it.

Differential Revision: https://phabricator.services.mozilla.com/D5075

--HG--
extra : moz-landing-system : lando
2018-09-17 17:36:06 +00:00
Emilio Cobos Álvarez
eaec6c788a Bug 1490012 - FlushPendingMediaFeatureValuesChanged can kill the PresShell. r=xidorn
It can flush the parent document from MediaQueryList::RecomputeMatches, which
can destroy our pres context.

I think that flush is wrong btw, it should probably either flush layout so the
viewport size is correct, or just not flush (we should make MediaList::Matches
take a document now that we don't need a pres context to match media queries,
but that requires a bit more refactoring).

Differential Revision: https://phabricator.services.mozilla.com/D5524
2018-09-12 15:44:37 +02:00
Emilio Cobos Álvarez
196560b95f Bug 1479681: Fix the loop in nsTransitionManager dealing with stopping all transitions. r=hiro a=aryx
The loop was mutating the nsCSSPropertyID used to guard the exit, which is
obviously wrong.

This branch is pretty rarely taken, since people don't usually specify `all` as
a transition property other than the first, for which case we take the fast path
with `checkProperties = false`. Our test-suite failed to catch this.

Added a crashtest that hangs without this patch.

The reason bug 1478990 regressed this is because it changed the order of
nsCSSPropertyID so that `p` actually went backwards causing the infinite loop,
but the bug was introduced (by me, whoops) in bug 1309752.

Differential Revision: https://phabricator.services.mozilla.com/D2552

MozReview-Commit-ID: Ii3D1FaZ31R

--HG--
extra : source : 78be4bbf4b050f6614bb9f4115f57fb61f4890df
2018-07-31 11:32:53 +02:00
Brian Birtles
8ab6ee61ba Bug 1471814 - Add a preference for {Document,Element}.getAnimations(); r=bz,hiro
This is probably the last thing we will ship since it needs the most spec work.

MozReview-Commit-ID: LLmDBLCsCBJ

--HG--
extra : rebase_source : c06752c9201a9ede87e1ac200ab12577bf784ce6
2018-07-14 09:23:03 +09:00
Brian Birtles
382fd2fe39 Bug 1471814 - Add a preference for animation composite modes; r=bz,hiro
This feature should not be shipped until the various definitions of addition for
each additive property are properly specified.

Unlike other patches in this series, compositing is not frequently used
internally (e.g. by DevTools etc.) so there is no need to enable this by default
for system code.

Also, it turns out we have inadvertently been shipping part of this feature for
some time now. The next patch in this series will add tests for that case and
disable that part of the feature (a suitable intent to unship will follow). This
patch merely adapts and extends the existing tests without affecting the surface
area covered by the combination of the newly-added pref and the existing
dom.animations-api.core.enabled pref.

MozReview-Commit-ID: Htr6mlyCBav

--HG--
rename : dom/animation/test/mozilla/file_disable_animations_api_core.html => dom/animation/test/mozilla/file_disable_animations_api_compositing.html
rename : dom/animation/test/mozilla/test_disable_animations_api_core.html => dom/animation/test/mozilla/test_disable_animations_api_compositing.html
extra : rebase_source : 7715a25e59568eb122ba3f7dbd2c2b2ffdd19954
2018-07-14 09:23:03 +09:00
Brian Birtles
fc657410ff Bug 1471814 - Add a preference for implicit keyframes; r=bz,hiro
This preference controls whether authors are allowed to specify animations
without a 0% or 100% keyframe.

We intend to ship this soon but this preference acts as a safeguard in case we
discover we need to disable it.

This feature is very convenient and commonly used so this patch ensures it is
always enabled for system content.

MozReview-Commit-ID: BHTsuS2xO61

--HG--
rename : dom/animation/test/mozilla/file_disable_animations_api_core.html => dom/animation/test/mozilla/file_disable_animations_api_implicit_keyframes.html
rename : dom/animation/test/mozilla/test_disable_animations_api_core.html => dom/animation/test/mozilla/test_disable_animations_api_implicit_keyframes.html
extra : rebase_source : 04fd93dd26a4765c14b0b22febdb0311b650ea59
2018-07-14 09:23:03 +09:00
Brian Birtles
c96dd5e595 Bug 1475162 - Drop pref annotations from tests that no longer need them; r=hiro
Many tests set the dom.animations-api.core.enabled pref to true when all they
really require are the features covered by the dom.element-animate.core.enabled
pref. Now that we have removed that pref and permanently enabled that
functionality we can drop the annotations from such tests.

MozReview-Commit-ID: CGOLp6pVFLE

--HG--
extra : rebase_source : e298e9404d76d55421d9ca4b514410d02cc243b1
2018-07-12 17:22:09 +09:00
Olli Pettay
cb4f7fda48 Bug 1475003, don't notify DOM of SMIL changes, r=peterv 2018-07-12 13:04:26 +03:00
Emilio Cobos Álvarez
e80b8667d5 Bug 1469076: Fix the broken invariants of the rule node cache. r=heycam
We were spuriously reframing the <shadow> because it initially shared style with
the <br>, which ended up being display: none, while the <shadow> should've been
display: contents from the beginning.

lookup_by_rules seems pretty prone to obscure bugs, and also it's pretty
complex... Probably we should try to get rid of it, I'm unconvinced that it's
worth it.

Even with that, in a normal restyle the <details> wouldn't have ended up with a
style. It of course never had it before the reframe because the <shadow> was
display: none, but that doesn't mean it shouldn't have gotten one, since we
detected we needed to go through kids in:

  https://searchfox.org/mozilla-central/rev/6eea08365e7386a2b81c044e7cc8a3daa51d8754/servo/components/style/matching.rs#500

That code did happen, but since it's an animation-only restyle, we don't look at
unstyled stuff.

That looks somewhat fishy, but I guess for now it's fine as long as display
isn't animatable.

MozReview-Commit-ID: B6NMSTNOKgK
2018-06-20 11:21:35 +02:00
Emilio Cobos Álvarez
3b50e4d260 Bug 1468640: Relax a bit an invalid assertion. r=me
We may end up looking at a non-flushed AuthorStyles object when looking at
whether attribute changes and such may affect style.

Check the styles are clean to preserve the assertion, since if that happens
before the first flush, we may not have updated the quirks_mode field (and
that's fine).

MozReview-Commit-ID: FgVpiTf4qMr
2018-06-16 03:32:50 -07:00
Jesse Ruderman
2ed160f327 Bug 612213 - Add a crashtest. r=mats 2018-06-09 23:03:41 +02:00
Jesse Ruderman
d4d7b3a1ba Bug 1250791 - Add a crashtest. r=mats 2018-06-09 23:03:40 +02:00
Jesse Ruderman
c7da709335 Bug 873260 - Add crashtests. r=mats DONTBUILD 2018-06-09 16:11:26 +02:00
Jesse Ruderman
34af89ca3d Bug 827220 - Add a crashtest. r=mats 2018-06-09 16:11:26 +02:00
Jesse Ruderman
bb19d486e5 Bug 822877 - Add a crashtest. r=mats 2018-06-09 16:11:26 +02:00
Jesse Ruderman
f1e9743b7d Bug 694775 - Add a crashtest. r=mats 2018-06-09 16:11:26 +02:00
Jesse Ruderman
5a1430954d Bug 635153 - Add a crashtest. r=mats 2018-06-09 16:11:26 +02:00
Aki Helin
3287f6a440 Bug 653675 - Add a crashtest. r=mats 2018-06-09 16:11:26 +02:00
Mats Palmgren
88fc0d362a Bug 1236398 - Disable this crashtest for now since it crashes stylo! r=bustage CLOSED TREE 2018-06-08 23:48:29 +02:00
Mats Palmgren
1281ce8d06 Bug 1227498 - Add a crashtest. r=me DONTBUILD 2018-06-08 20:56:04 +02:00
Mats Palmgren
9430bea55c Bug 1236398 - Add a crashtest. r=me 2018-06-08 20:56:04 +02:00
Mats Palmgren
2b56a17279 Bug 1156969 - Add a crashtest. r=me 2018-06-08 20:56:04 +02:00
Emilio Cobos Álvarez
29985b3f24 Bug 1449243: Remove invalid assertion. r=me
We can look at stale styles while trying to figure out if we need any
invalidation, and that's ok.

MozReview-Commit-ID: 4mBIFNm9qJv
2018-06-04 14:51:47 +02:00
Emilio Cobos Álvarez
dd5f25c2f6 Bug 1465107: Cleanup remaining mochitest / reftest / crashtests stylo expectations. r=xidorn
MozReview-Commit-ID: 1IeURcnoESX
2018-05-30 10:03:50 +02:00
Jonathan Watt
4753528362 Bug 1447039 - Stop using getPropertyCSSValue in test files. r=emilio
MozReview-Commit-ID: GjsNPBZmje0
2018-05-12 11:23:30 +02:00
Brad Werth
2a2644f159 Bug 1457288 - Part 4: Add a crashtest. r=mats 2018-05-01 11:32:03 -07:00
Emilio Cobos Álvarez
d9af1e4edf Bug 1457985: Fix a typo in nsStyleContentData copy-constructor. r=xidorn
MozReview-Commit-ID: FtcA6Nm4dwr

--HG--
extra : rebase_source : cf1b1c1323072e78a721804e3ae469c367f4bb8a
2018-04-30 20:41:08 +02:00
Emilio Cobos Álvarez
5d21d26790 Bug 1411008: Add crashtest. r=me
MozReview-Commit-ID: CbhZXAORyoV
2018-04-21 19:28:32 +02:00
Emilio Cobos Álvarez
3e3d930acb Bug 1455108: Don't reparent first-line stuff in display: none subtrees. r=heycam
We may no longer know what the right parent style is, and it's not like it
matters anyway, the frame tree under us is dead, including placeholders and such
holding from us.

MozReview-Commit-ID: 1RHTwvKy0zQ

--HG--
extra : rebase_source : 26e9d393d8edc0f068736cfa1cf1cf630e8d55fa
2018-04-19 18:18:35 +02:00
Emilio Cobos Álvarez
cbdd3db954 Bug 1454140: Invalid URLs with ref also exist. r=heycam
MozReview-Commit-ID: HsH3ERcTeLm

--HG--
extra : rebase_source : 0cac89785ba837bbbe1a56e5d7b217e98f0996bb
2018-04-14 17:24:45 +02:00
Emilio Cobos Álvarez
9083c33e83 Bug 1453206: Fix IsInAnonymousSubtree to account for XBL in Shadow DOM. r=smaug
MozReview-Commit-ID: B2aYury8K7i
2018-04-14 11:59:06 +02:00
Andreea Pavel
4784e6b61b Backed out 2 changesets (bug 1453206) for crashtest failures on muliple files e.g. tests/reftest/tests/layout/base/crashtests/416107.xhtml on a CLOSED TREE
Backed out changeset 1844a120acda (bug 1453206)
Backed out changeset b12b7c5b8178 (bug 1453206)
2018-04-13 23:06:55 +03:00
Emilio Cobos Álvarez
1fe3a2d36a Bug 1453206: Fix IsInAnonymousSubtree to account for XBL in Shadow DOM. r=smaug
MozReview-Commit-ID: B2aYury8K7i
2018-04-13 21:05:48 +02:00
Emilio Cobos Álvarez
9509cd7e32 Bug 1453789: Remove Element.createShadowRoot. r=smaug
MozReview-Commit-ID: Hgxbp1Icgvh
2018-04-13 20:51:55 +02:00
arthur.iakab
ad2eeb28a0 Merge mozilla-central to mozilla-inbound 2018-04-03 12:41:24 +03:00
Cameron McCormack
c14a8ffa84 Bug 1450859 - Remove layout.css.expensive-style-struct-assertions.enabled pref. r=emilio
With the old style system removed, this pref has no effect.

--HG--
extra : rebase_source : ddc8462a0044225a46522f53f4bbb131627fb7f1
2018-04-03 15:58:32 +10:00
Emilio Cobos Álvarez
3e623bcd7c Bug 1450691: Flushing the parent document can kill our shell. r=xidorn
Bug 1443492 made us flush the parent document for cross-doc getComputedStyle
situations. That can kill the shell we're flushing, let's handle that case
gracefully.

MozReview-Commit-ID: HpFsPQvjKcZ
2018-04-03 08:03:35 +02:00
Emilio Cobos Álvarez
48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Emilio Cobos Álvarez
5caaf1c9f3 Bug 1445682: Make Shadow DOM account for stylesheet applicableness correctly. r=xidorn
Summary:
Also, make stuff sound in presence of CSSOM and what not.

The dirty: false thing is reverting an accidental change that landed in the
de-XBL stuff, which was harmless, but now wouldn't let me assert stuff properly.

Reviewers: xidorn

Bug #: 1445682

Differential Revision: https://phabricator.services.mozilla.com/D748

MozReview-Commit-ID: K0W2Rv0qK8X
2018-03-19 15:50:31 +01:00
Emilio Cobos Álvarez
c107f54aac Bug 1409183: Don't consider anonymous checkboxes as part of the document radio group. r=smaug
Summary: In this case the radiobox is in a SVG <use> subtree.

Reviewers: smaug

Bug #: 1409183

Differential Revision: https://phabricator.services.mozilla.com/D741

MozReview-Commit-ID: Abkg7ahST5t
2018-03-17 00:19:43 +01:00
Tyson Smith
a006a03ffa Bug 1405880: Crashtest. r=emilio
MozReview-Commit-ID: GPvmVmH9t74
2018-03-05 20:01:44 +01:00
Emilio Cobos Álvarez
b51ef4b81b Bug 1416296: Enable shadow DOM in the crashtest now that it doesn't leak the XBL stuff. r=me
MozReview-Commit-ID: LpWCIIWSf1q
2018-03-05 20:01:42 +01:00
Tyson Smith
9b09b6d9a7 Bug 1413670: Crashtest. r=emilio
MozReview-Commit-ID: JdhBkxTgLeD
2018-03-05 20:01:40 +01:00
Raymond Forbes
99faa7ac37 Bug 1439793: Crashtest. r=xidorn
MozReview-Commit-ID: 9szcIWSRxDX

--HG--
extra : rebase_source : 43565f5b15da5c0c30f40f11a804bea15bbe77ea
2018-02-21 09:42:54 +01:00
Jessica Jong
4bee56a645 Bug 1428685 - Use dom.webcomponents.shadowdom.enabled pref for Shadow DOM. r=smaug
Most of the Shadow DOM related code are behind "dom.webcomponents.enabled" and
this pref is only used by Shadow DOM right now, so we should rename it to
"dom.webcomponents.shadowdom.enabled"

MozReview-Commit-ID: er1c7AsSSW
2018-01-16 17:16:30 +01:00
Emilio Cobos Álvarez
baf57d28b5 Bug 1426312: Make sure to honor parse_method in transition and animation shorthands. r=birtles
MozReview-Commit-ID: HY3jtdSdaga
2017-12-21 20:41:36 +01:00
Edgar Chen
9f4324f41e Bug 1416999 - Remove document.registerElement; r=smaug
MozReview-Commit-ID: HiX07Vbljhk

--HG--
rename : dom/base/test/chrome/registerElement_ep.js => dom/base/test/chrome/custom_element_ep.js
rename : dom/base/test/chrome/frame_registerElement_content.html => dom/base/test/chrome/frame_custom_element_content.html
rename : dom/base/test/chrome/test_registerElement_content.xul => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_registerElement_ep.xul => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/test_document_register.html => dom/base/test/test_custom_element.html
rename : dom/tests/mochitest/webcomponents/test_document_register.html => dom/tests/mochitest/webcomponents/test_custom_element_define.html
rename : dom/tests/mochitest/webcomponents/test_document_register_parser.html => dom/tests/mochitest/webcomponents/test_custom_element_define_parser.html
rename : dom/tests/mochitest/webcomponents/test_template_custom_elements.html => dom/tests/mochitest/webcomponents/test_custom_element_template.html
extra : rebase_source : cd2ebf166e8bd9c49910387c9136d7b83b51598d
2017-11-16 12:23:15 +08:00
Emilio Cobos Álvarez
72a1d3ff81 Bug 1419554: Teach the restyle root code about elements outside of the flattened tree. r=heycam
The textarea is inserted under a Shadow host, with no matching insertion point,
so its flattened tree parent node is null.

We're treating this case in the restyle root code as "the parent is the
document", but that's very wrong.

MozReview-Commit-ID: JlzUMRIYaYZ

--HG--
extra : rebase_source : feeaf7a7333097aa87b35358172472790f6c74a7
2017-11-22 14:15:34 +01: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
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