Commit Graph

15489 Commits

Author SHA1 Message Date
Brindusan Cristian
267e79dacc Bug 1583736 - Fix Eslint failure due to Delete , r=me CLOSED TREE 2019-10-02 07:41:42 +03:00
Cameron McCormack
bcd2fa209b Bug 1581579 - Fix scrollbar style caching conflict for <resizer dir="bottom"> vs <resizer dir="bottomleft">. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D47568

--HG--
extra : moz-landing-system : lando
2019-09-30 09:51:07 +00:00
Emilio Cobos Álvarez
ea3d3a0084 Bug 1583736 - Don't allow negative radii in radial gradients. r=boris
Mostly renaming for clarity, as the gradient parsing code is a bit hairy.

This also changes -webkit- gradients, which is, I think, the right thing to do
(otherwise I need to give up on the type system and sprinkle parse_non_negatives
around, which would be unfortunate).

I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1008112 on
Chromium still accepting negative radii for those, so will wait to submit the
patch for review until they reply there with their intentions.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 21:44:41 +00:00
Emilio Cobos Álvarez
c36001b625 Bug 1546783 - Test that we preload @import stylesheets. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D47486

--HG--
extra : moz-landing-system : lando
2019-09-30 13:52:14 +00:00
Emilio Cobos Álvarez
b41a8a2d6f Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 13:29:23 +00:00
Coroiu Cristina
b3555c999a Backed out 3 changesets (bug 1546783) on request by emilio on a CLOSED TREE
Backed out changeset ad3822105edc (bug 1546783)
Backed out changeset a8ac28c2bfc7 (bug 1546783)
Backed out changeset b2678d2e55fb (bug 1546783)
2019-09-30 16:23:16 +03:00
Emilio Cobos Álvarez
4fe6a4a5ca Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 10:37:22 +00:00
Tim Nguyen
5c78a8e3de Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-28 00:20:32 +00:00
Dorel Luca
759e72860c Backed out 2 changesets (bug 1582530) for Creshtest failures in ayout/generic/ReflowInput.cpp. CLOSED TREE
Backed out changeset 536e78fea3de (bug 1582530)
Backed out changeset ae88c31cf531 (bug 1582530)

--HG--
extra : amend_source : cd6928208a1916e72a8f14952adc85f5e5e2c47d
2019-09-28 00:31:24 +03:00
Tim Nguyen
597206ae06 Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-27 20:14:37 +00:00
Hiroyuki Ikezoe
258818e259 Bug 1536392 - Drop GeckoView checks for individual transform properties cases. r=boris
Now all test cases for individual transform properties work fine on GeckoView.

Depends on D47200

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

--HG--
extra : moz-landing-system : lando
2019-09-26 21:01:30 +00:00
Hiroyuki Ikezoe
777658832e Bug 1536392 - Make the transform transition opposite direction of the translate transition to make sure the transformed results is inside the display port. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D47200

--HG--
extra : moz-landing-system : lando
2019-09-26 21:01:26 +00:00
Geoff Brown
b0e5901c93 Bug 1582884 - Enable some crashtests on Android; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D46784

--HG--
extra : moz-landing-system : lando
2019-09-24 01:12:09 +00:00
Boris Chiou
470629b5d3 Bug 1567330 - Add offset shorthand. r=emilio,birtles
Also, update the serialization by the shorter perference because this is
a new feature and using older syntax doesn't make sense.

Besides, use `cssOffset` for web animation IDL attribute name.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 19:56:33 +00:00
Emilio Cobos Álvarez
678c18063d Bug 1583203 - Annotate nsINode::OwnerDoc() as MOZ_NONNULL_RETURN. r=smaug
People keep adding useless null-checks and it was not clear what the consensus
was from bug 1441165, but this should be unobjectionable I guess.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 18:12:19 +00:00
Brian Birtles
6bd2528448 Bug 1576866 - Make various border-image-* properties interpolable; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D46724

--HG--
extra : moz-landing-system : lando
2019-09-23 02:07:56 +00:00
Cameron McCormack
4ff6c875f8 Bug 1482778 - Include captions within table outlines. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D45802

--HG--
extra : moz-landing-system : lando
2019-09-22 23:42:04 +00:00
Emilio Cobos Álvarez
ac0963d614 Bug 1582814 - followup: fix a test now that we always count in the style system.
Differential Revision: https://phabricator.services.mozilla.com/D46708

--HG--
extra : moz-landing-system : lando
2019-09-21 13:40:42 +00:00
Andreea Pavel
e18057a961 Merge mozilla-inbound to mozilla-central. a=merge 2019-09-20 12:48:30 +03:00
Emilio Cobos Álvarez
b427bb0b08 No bug - Remove a silly LOG_ENABLED() check.
LOG() already checks that.

MANUAL PUSH: trivial
2019-09-20 15:36:22 +09:00
Emilio Cobos Álvarez
a2f95a081c Bug 1578151 - Factor out the "containing block did not really change" code from CalcStyleDifference. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D44351

--HG--
extra : moz-landing-system : lando
2019-09-20 05:06:49 +00:00
Emilio Cobos Álvarez
6c211da0ae Bug 1582374 - Add a warning when we find usage of the CSS zoom property. r=smaug,flod
Now that we count them, I think we should do this.

This property is pretty painful for various reasons:

 * It's a pretty awkward non-standard property.
 * Has a pretty short name, so people use it instead of the standard
   alternatives.
 * We cannot really even implement it easily anyhow, without breaking a whole
   bunch of stuff, because pages do things like:

```
myelement {
  zoom: 0.5;
  -moz-transform: scale(0.5);
  transform-origin: 0 0;
}
```

For now this is only recorded when CSS use counters are enabled (Nightly for
now), but I want to change it once bug 1578661 is in central.

The hope is that this warning slightly raises awareness of this property not
being standard. You get a CSS parsing error in the console, but those are
usually too noisy and disabled by default.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 01:31:35 +00:00
Emilio Cobos Álvarez
95582debce Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:04 +00:00
Emilio Cobos Álvarez
1e858d2a04 Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:39 +00:00
Emilio Cobos Álvarez
31755a845c Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:35 +00:00
Cosmin Sabou
2978a72248 Backed out 10 changesets (bug 1578661) for linting failures on layout/style/ServoCSSPropList.py. CLOSED TREE
Backed out changeset b1b5393b1099 (bug 1578661)
Backed out changeset b87eebb0cf6e (bug 1578661)
Backed out changeset 6ba2ee45f26e (bug 1578661)
Backed out changeset 4a1d45160d60 (bug 1578661)
Backed out changeset 7a5687bebc02 (bug 1578661)
Backed out changeset 33c306c9020a (bug 1578661)
Backed out changeset 89d7e6fb24b0 (bug 1578661)
Backed out changeset 42c4943e569b (bug 1578661)
Backed out changeset 88d988a80de1 (bug 1578661)
Backed out changeset 78c90f9e9eee (bug 1578661)
2019-09-19 01:50:03 +03:00
Emilio Cobos Álvarez
4ce6b69adf Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:15 +00:00
Emilio Cobos Álvarez
2adb14b20a Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:26 +00:00
Emilio Cobos Álvarez
6a2a92e98a Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:19 +00:00
Andreea Pavel
7494b360c0 Backed out 10 changesets (bug 1578661) for lints failure at ServoCSSPropList.cpp on a CLOSED TREE
Backed out changeset ed3c619100e7 (bug 1578661)
Backed out changeset 027514a2eaf6 (bug 1578661)
Backed out changeset f2e228282b20 (bug 1578661)
Backed out changeset 67c36136dce7 (bug 1578661)
Backed out changeset 2280b27cc130 (bug 1578661)
Backed out changeset 445d13a2c452 (bug 1578661)
Backed out changeset 89caaa850049 (bug 1578661)
Backed out changeset 2f8be5db1786 (bug 1578661)
Backed out changeset 51a015a9a0f8 (bug 1578661)
Backed out changeset ad8e1f27a600 (bug 1578661)
2019-09-18 18:09:30 +03:00
Emilio Cobos Álvarez
30e754a811 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:48 +00:00
Emilio Cobos Álvarez
959c99b520 Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:37 +00:00
Emilio Cobos Álvarez
d880111e86 Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:33 +00:00
Mihai Alexandru Michis
7bed28e9e2 Merge mozilla-central to autoland. 2019-09-18 14:47:25 +03:00
Andreea Pavel
31ca3fda59 Backed out 9 changesets (bug 1578661) for lints failure at ServoCSSPropList.py a=backout
Backed out changeset d16463e5698c (bug 1578661)
Backed out changeset c6d64ac858ba (bug 1578661)
Backed out changeset db306f1467f7 (bug 1578661)
Backed out changeset 273535aab82d (bug 1578661)
Backed out changeset f643262a8c25 (bug 1578661)
Backed out changeset b0db409ada96 (bug 1578661)
Backed out changeset dc96d13728e0 (bug 1578661)
Backed out changeset 11e1e8f0a1b7 (bug 1578661)
Backed out changeset 6dd7a0d914d9 (bug 1578661)
2019-09-18 13:53:34 +03:00
Henri Sivonen
c193518677 Bug 1490601 part 2 - Move C++ entry points to encoding_c_mem to mfbt/. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D43957

--HG--
extra : moz-landing-system : lando
2019-09-18 08:26:34 +00:00
Emilio Cobos Álvarez
5ebe1a5793 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:25 +00:00
Emilio Cobos Álvarez
f8337abcef Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:19 +00:00
Emilio Cobos Álvarez
a9ba10a9bc Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:32:52 +00:00
Boris Chiou
88285c24ba Bug 1480665 - Support ray() in offset-path and make it animatable. r=emilio,birtles
1. Add `generics::motion::OffsetPath`, and use specified `Angle` and
   computed `Angle` to define specified `OffsetPath` and computed `OffsetPath`.
2. Add `ray` function into `OffsetPath`.

We also tweak the degree from 150deg to 135deg in wpt (e.g.
offset-path-ray-001.html and others) to avoid floating point precision issues.
For example:
```
// offset-path: ray(150deg ...);
// offset-distance: 20px;
matrix:
{
  {0.500000 0.866025 0.000000 0.000000},
  {-0.866025 0.500000 0.000000 0.000000},
  {0.000000 0.000000 1.000000 0.000000},
  {10.000000 17.320509 0.000000 1.000000}
}

// rotate(60deg) translate(20px)
matrix:
{
  {0.500000 0.866025 0.000000 0.000000},
  {-0.866025 0.500000 0.000000 0.000000},
  {0.000000 0.000000 1.000000 0.000000},
  {10.000000 17.320507 0.000000 1.000000}
}
```
Their translate parts, 17.320509 vs 17.320507, are almost the same (only
tiny difference), which may cause the reftest failed.

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

--HG--
rename : testing/web-platform/tests/css/motion/offset-path-ray-ref.html => testing/web-platform/tests/css/motion/offset-path-ray-001-ref.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-001.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-002.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-003.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-004.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-005.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-006.html
rename : testing/web-platform/tests/css/motion/offset-path-ray.html => testing/web-platform/tests/css/motion/offset-path-ray-007.html
extra : moz-landing-system : lando
2019-09-16 23:24:48 +00:00
Christoph Kerschbaumer
ecfde38ed8 Bug 1580710: Expose functionality on the CSP Object to allow skipping the inline style checks. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D45631

--HG--
extra : moz-landing-system : lando
2019-09-16 23:47:19 +00:00
Emilio Cobos Álvarez
ff890f406e Bug 1579788 - Don't update validity state when the JS engine fails to execute the pattern. r=smaug
When we call nsContentUtils::IsPatternMatching, we swallow JS engine errors
unconditionally returning true.

This is bad, because if it happens in one of the value sets that arguably
shouldn't change the state of the element, we end up returning an arbitrary
value (true) which may or may not match the previous state of the element.

Handle error explicitly instead, by not updating the state.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 10:11:42 +00:00
Daisuke Akatsuka
409a2bc885 Bug 713106: Make :visited selector enabled to use from DevTools. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45624

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:12 +00:00
Emilio Cobos Álvarez
4fad3bb9aa Bug 1580307 - Avoid justify-items from the cached scrollbar assertions. r=heycam
justify-items' initial value is `legacy` and the computed value depends on the
parent's value.

We don't use flex / grid in the scrollbars, so just avoid asserting about this
property.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 12:18:19 +00:00
Sylvestre Ledru
e79e716c67 Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in /layout/ r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43784

--HG--
extra : moz-landing-system : lando
2019-09-12 12:32:12 +00:00
Emilio Cobos Álvarez
78a7d864e6 Bug 1577139 - Remove LengthPercentage::was_calc. r=heycam
There should not be any behavior change between specifying a percentage using %
or calc(%) per the resolution of https://github.com/w3c/csswg-drafts/issues/3482.

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

--HG--
extra : moz-landing-system : lando
2019-09-12 08:14:44 +00:00
Mihai Alexandru Michis
95b09298a4 Backed out changeset 7876583b2407 (bug 1577236) for causing failures in calc-rounding-001.html CLOSED TREE 2019-09-11 18:48:22 +03:00
Sylvestre Ledru
3029c376ad Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in /layout/ r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D43784

--HG--
extra : moz-landing-system : lando
2019-09-11 13:50:36 +00:00
Michael Woerister
77f7095cb5 Bug 1577171 - Remove duplicated logic from Stylo's Gecko wrapper. r=emilio
Stylo's Gecko wrapper duplicated some logic from the C++ side so
that the Rust compiler would be able to optimize better. Now that
we have xLTO, this kind of manual inlining should not be neccessary
anymore.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 17:23:20 +00:00
Boris Chiou
4db87c1296 Bug 1574222 - Serialize getComputedStyle on text-decoration properly. r=emilio,dholbert
The wpt will be updated in
https://github.com/web-platform-tests/wpt/pull/18866.

Besides, there are some other test cases use text-decoration, so we
have to update them as well. The rule is: if the test case is not related to
old `text-decoration` longhand, we use `text-decoration-line` instead.
If the test case is for testing the change of `text-decoration` from
longhand to shorthand, we should use the correct serialization.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 21:52:26 +00:00