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

11 Коммитов

Автор SHA1 Сообщение Дата
Mats Palmgren baaafd0dfa Bug 1604772 - Remove the eSVGGeometry IsFrameOfType bit. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D57622

--HG--
extra : moz-landing-system : lando
2019-12-18 16:06:29 +00:00
violet 702c5ec984 Bug 1557637 - Correct resolve <image> size when specified size is auto and intrinsic size is missing r=longsonr
https://www.w3.org/TR/css3-images/#default-sizing-algorithm

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

--HG--
extra : moz-landing-system : lando
2019-06-08 00:33:36 +00:00
violet a524e7ef15 Bug 1555758 - Fallback to GetComputedStyleNoFlush for BuildPath r=longsonr,emilio
It turns out the `BuildPath()` method will still be exposed by DOM
API via `getTotalLength()`. So we need to fallback to `GetComputedStyleNoFlush()`
to handle display:none problem, and if the element doesn't even belong
to a document, we further fallback to 0.

`BuildPath()` being affected also means `GetStrokeWidth()`, etc. will also
be indirectly exposed to DOM API in some obscure cases. Let's add a utility
to handle the fallback.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 13:17:46 +00:00
violet 13e131d652 Bug 1383650 - Support geometry property for SVG image element r=longsonr
The only different part is to resolve intrinsic image size. This patch
implements explicit requirements of the spec, but an edge case is tricky.
It's not clear per spec what the intrinsic image size is for an SVG
without explicit width/height, something like:

<svg>
  <image href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width='40' height='90' fill='red' /></svg>"/>
</svg>

Chrome treats the intrinsic size of the href svg as the default size of
a replaced element (300x150), our image/VectorImage.cpp doesn't resolve
size in this case.

We can handle this particular case in some seperate bug if necessary, I think.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 12:40:12 +00:00
violet 8ebdbe5a90 Bug 1383650 - Notify style system when SMIL animation changes length r=birtles,longsonr
When animating geometry attribute, we need to notify style system about the change of SMIL override style.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 13:21:20 +00:00
violet b081f29f41 Bug 1383650 - Add conversion utilities to get CSS counterpart of SVG unit and AttrEnum r=longsonr
We need some utilities to convert SVG unit and attrenum to CSS unit and property id.
This is useful when we need to pass parsed geometry property directly to CSS.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 13:21:21 +00:00
violet b1f320104b Bug 1383650 - Resolve SVG geometry metrics from CSS r=longsonr,emilio
This patch makes SVG retrieve metrics from CSS style.

It doesn't handle <svg> element because geometry properties for
outer <svg> element has been partially implemented long ago, it
needs special change.

It doesn't deal with the impact on SMIL.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 13:21:20 +00:00
Coroiu Cristina b4731ed54d Backed out 12 changesets (bug 1383650) for landing in the soft-freeze period
Backed out changeset 4316d55f87be (bug 1383650)
Backed out changeset 0118148f1534 (bug 1383650)
Backed out changeset 447c9248342b (bug 1383650)
Backed out changeset 6730776560c0 (bug 1383650)
Backed out changeset a7b8e6460fb8 (bug 1383650)
Backed out changeset e864696f6cf8 (bug 1383650)
Backed out changeset 2b003d678c58 (bug 1383650)
Backed out changeset 7bc3bff991c4 (bug 1383650)
Backed out changeset f1f7b4ad9547 (bug 1383650)
Backed out changeset 18b030b31660 (bug 1383650)
Backed out changeset 70e74dd6b45d (bug 1383650)
Backed out changeset 55a283e793df (bug 1383650)
2019-05-16 04:47:58 +03:00
violet a5f610a05c Bug 1383650 - Notify style system when SMIL animation changes length r=birtles,longsonr
When animating geometry attribute, we need to notify style system about the change of SMIL override style.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 00:58:56 +00:00
violet e3fcbc33d6 Bug 1383650 - Add conversion utilities to get CSS counterpart of SVG unit and AttrEnum r=longsonr
We need some utilities to convert SVG unit and attrenum to CSS unit and property id.
This is useful when we need to pass parsed geometry property directly to CSS.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 00:53:45 +00:00
violet 9264ebe151 Bug 1383650 - Resolve SVG geometry metrics from CSS r=longsonr,emilio
This patch makes SVG retrieve metrics from CSS style.

It doesn't handle <svg> element because geometry properties for
outer <svg> element has been partially implemented long ago, it
needs special change.

It doesn't deal with the impact on SMIL.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 00:47:37 +00:00