mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1492694 - Treat invalid in="" attributes as if they weren't specified r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D6355 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3e8224c602
commit
0f4ffbd8c2
@ -356,8 +356,9 @@ nsSVGFilterInstance::GetSourceIndices(nsSVGFE* aPrimitiveElement,
|
||||
sourceIndex = GetLastResultIndex(aPrimitiveDescrs);
|
||||
} else {
|
||||
bool inputExists = aImageTable.Get(str, &sourceIndex);
|
||||
if (!inputExists)
|
||||
return NS_ERROR_FAILURE;
|
||||
if (!inputExists) {
|
||||
sourceIndex = GetLastResultIndex(aPrimitiveDescrs);
|
||||
}
|
||||
}
|
||||
|
||||
aSourceIndices.AppendElement(sourceIndex);
|
||||
|
@ -165661,6 +165661,30 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/filter-effects/svg-unknown-input-001.html": [
|
||||
[
|
||||
"/css/filter-effects/svg-unknown-input-001.html",
|
||||
[
|
||||
[
|
||||
"/css/filter-effects/svg-unknown-input-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/filter-effects/svg-unknown-input-002.html": [
|
||||
[
|
||||
"/css/filter-effects/svg-unknown-input-002.html",
|
||||
[
|
||||
[
|
||||
"/css/filter-effects/svg-unknown-input-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/mediaqueries/aspect-ratio-001.html": [
|
||||
[
|
||||
"/css/mediaqueries/aspect-ratio-001.html",
|
||||
@ -272073,6 +272097,11 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/filter-effects/svg-unknown-input-ref.html": [
|
||||
[
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/geometry/META.yml": [
|
||||
[
|
||||
{}
|
||||
@ -579171,6 +579200,18 @@
|
||||
"3d8118b387d938b588e8e88ad5ec87a5343e4f72",
|
||||
"reftest"
|
||||
],
|
||||
"css/filter-effects/svg-unknown-input-001.html": [
|
||||
"7789f2a9af4f1492fa6db36b53a72ada151f61d5",
|
||||
"reftest"
|
||||
],
|
||||
"css/filter-effects/svg-unknown-input-002.html": [
|
||||
"f45d3e344ad193c59826543239c33fffc61d6527",
|
||||
"reftest"
|
||||
],
|
||||
"css/filter-effects/svg-unknown-input-ref.html": [
|
||||
"1fff2a6175cfe1956ff2c451aece45ec73345d81",
|
||||
"support"
|
||||
],
|
||||
"css/geometry/DOMMatrix-001.html": [
|
||||
"a8a357bff606925aaa95dce6c4642b81bd8c88ea",
|
||||
"testharness"
|
||||
@ -598516,7 +598557,7 @@
|
||||
"support"
|
||||
],
|
||||
"fullscreen/api/document-exit-fullscreen-active-document.html": [
|
||||
"18b0bb6493bd8275a750091b862c7ee5ee770abf",
|
||||
"8279fae533774fcf6daced99ffc84413a0a9172d",
|
||||
"testharness"
|
||||
],
|
||||
"fullscreen/api/document-exit-fullscreen-manual.html": [
|
||||
@ -656340,7 +656381,7 @@
|
||||
"support"
|
||||
],
|
||||
"tools/wptrunner/wptrunner/browsers/firefox.py": [
|
||||
"04f2ce84a41619a23e29d5436430b11fa2b6d7c5",
|
||||
"9f7ebfa2ca544616e2feaeb53c8af73220d7271a",
|
||||
"support"
|
||||
],
|
||||
"tools/wptrunner/wptrunner/browsers/ie.py": [
|
||||
@ -668704,7 +668745,7 @@
|
||||
"testharness"
|
||||
],
|
||||
"x-frame-options/multiple.sub.html": [
|
||||
"f7a28e40ee22be3493c3926e15c40d2e814ad2e4",
|
||||
"717e9fd25c51ee80f3adf029740d475790b3875e",
|
||||
"testharness"
|
||||
],
|
||||
"x-frame-options/redirect.sub.html": [
|
||||
|
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<title>Filter Effects: The in attribute</title>
|
||||
<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
|
||||
<link rel="help" href="https://www.w3.org/TR/filter-effects-1/#CommonAttributes">
|
||||
<link rel="match" href="svg-unknown-input-ref.html">
|
||||
<meta name="flags" content="svg">
|
||||
<meta name="assert" content="References to non-existent results on a first primitive must be treated like SourceGraphic.">
|
||||
<p>The test passes if you see a green square and no red.</p>
|
||||
<svg width="100" height="100">
|
||||
<defs>
|
||||
<filter id="f" x="0" y="0" width="100" height="100" filterUnits="userSpaceOnUse">
|
||||
<feComposite in="unknown" in2="SourceGraphic" result="a"/>
|
||||
<feFlood flood-color="green" result="b"/>
|
||||
<feComposite in="b" in2="a"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="100" height="100" fill="red"/>
|
||||
<rect x="25" y="25" width="50" height="50" fill="green" filter="url(#f)"/>
|
||||
</svg>
|
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<title>Filter Effects: The in attribute</title>
|
||||
<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
|
||||
<link rel="help" href="https://www.w3.org/TR/filter-effects-1/#CommonAttributes">
|
||||
<link rel="match" href="svg-unknown-input-ref.html">
|
||||
<meta name="flags" content="svg">
|
||||
<meta name="assert" content="References to non-existent results on a subsequent primitive must be treated like the previous primitive result.">
|
||||
<p>The test passes if you see a green square and no red.</p>
|
||||
<svg width="100" height="100">
|
||||
<defs>
|
||||
<filter id="f" x="0" y="0" width="100" height="100" filterUnits="userSpaceOnUse">
|
||||
<feFlood flood-color="green"/>
|
||||
<feComposite in="unknown" in2="SourceGraphic"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="100" height="100" fill="red"/>
|
||||
<rect x="25" y="25" width="50" height="50" fill="blue" filter="url(#f)"/>
|
||||
</svg>
|
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<title>Filter Effects: Reference</title>
|
||||
<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au">
|
||||
<meta name="flags" content="svg">
|
||||
<p>The test passes if you see a green square and no red.</p>
|
||||
<svg width="100" height="100">
|
||||
<rect width="100" height="100" fill="green"/>
|
||||
</svg>
|
Loading…
Reference in New Issue
Block a user