зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1659783
- Fix use pointing to image elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D87571
This commit is contained in:
Родитель
b34da59978
Коммит
e3b924526e
|
@ -57,9 +57,9 @@ class SVGImageElement : public SVGImageElementBase,
|
|||
nsIPrincipal* aSubjectPrincipal,
|
||||
bool aNotify) override;
|
||||
bool IsNodeOfType(uint32_t aFlags) const override {
|
||||
// <imag> is not really a SVGGeometryElement, we should
|
||||
// <image> is not really a SVGGeometryElement, we should
|
||||
// ignore eSHAPE flag accepted by SVGGeometryElement.
|
||||
return SVGGraphicsElement::IsNodeOfType(aFlags);
|
||||
return !(aFlags & ~eUSE_TARGET);
|
||||
}
|
||||
|
||||
virtual nsresult BindToTree(BindContext&, nsINode& aParent) override;
|
||||
|
|
|
@ -550,6 +550,7 @@ pref(layout.css.devPixelsPerPx,"1.0") == svg-blurry-with-subpixel-position.html
|
|||
== use-children.svg pass.svg
|
||||
|
||||
== use-element-shadow-tree-rule-matching.html pass.svg
|
||||
== use-image-01.svg pass.svg
|
||||
|
||||
# test case for Fragment URLs
|
||||
# https://drafts.csswg.org/css-values/#local-urls
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<rect width="100%" height="100%" fill="url(#pattern0)"/>
|
||||
<defs>
|
||||
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0" />
|
||||
</pattern>
|
||||
<image id="image0" width="100%" height="100%" xlink:href="pass.svg"/>
|
||||
</defs>
|
||||
</svg>
|
||||
|
После Ширина: | Высота: | Размер: 359 B |
Загрузка…
Ссылка в новой задаче