зеркало из https://github.com/mozilla/gecko-dev.git
Bug 935902 - Fix access to filter standard attributes for gaussian blur and component transfer. r=jwatt
This commit is contained in:
Родитель
4984e7db61
Коммит
379ae1f294
|
@ -13,3 +13,5 @@
|
|||
interface SVGFEComponentTransferElement : SVGElement {
|
||||
readonly attribute SVGAnimatedString in1;
|
||||
};
|
||||
|
||||
SVGFEComponentTransferElement implements SVGFilterPrimitiveStandardAttributes;
|
||||
|
|
|
@ -17,3 +17,5 @@ interface SVGFEGaussianBlurElement : SVGElement {
|
|||
|
||||
void setStdDeviation(float stdDeviationX, float stdDeviationY);
|
||||
};
|
||||
|
||||
SVGFEGaussianBlurElement implements SVGFilterPrimitiveStandardAttributes;
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" onload="createFilter();">
|
||||
|
||||
<title>Reference for filter result property</title>
|
||||
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=935902 -->
|
||||
|
||||
<defs>
|
||||
<filter id="f1">
|
||||
<feGaussianBlur id="gb" in="SourceGraphic" stdDeviation="4" result="blur"/>
|
||||
<feColorMatrix values="1 0 0 0 0 0 0.333 0 0 0 0 0 1 0 0 0 0 0 1 0" in="blur"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<circle cx="100" cy="50" r="50" fill="yellow" filter="url('#f1')"/>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 611 B |
|
@ -0,0 +1,23 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" onload="createFilter();">
|
||||
|
||||
<title>Testcase for filter result property</title>
|
||||
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=935902 -->
|
||||
|
||||
<defs>
|
||||
<filter id="f1">
|
||||
<feGaussianBlur id="gb" in="SourceGraphic" stdDeviation="4"/>
|
||||
<feColorMatrix values="1 0 0 0 0 0 0.333 0 0 0 0 0 1 0 0 0 0 0 1 0" in="blur"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<circle cx="100" cy="50" r="50" fill="yellow" filter="url('#f1')"/>
|
||||
<script type="text/javascript">
|
||||
function createFilter() {
|
||||
document.getElementById('gb').result.baseVal = 'blur';
|
||||
}
|
||||
</script>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 739 B |
|
@ -150,6 +150,7 @@ fails-if(Android||B2G) pref(security.fileuri.strict_origin_policy,true) == filte
|
|||
== filter-foreignObject-01.svg pass.svg
|
||||
== filter-in-mask-01.svg pass.svg
|
||||
skip-if(B2G) == filter-invalidation-01.svg pass.svg
|
||||
== filter-result-01.svg filter-result-01-ref.svg
|
||||
skip-if(B2G) == filter-scaled-01.svg pass.svg
|
||||
skip-if(B2G) == filter-scaled-02.html filter-scaled-02-ref.html
|
||||
== filter-translated-01.svg filter-translated-01-ref.svg
|
||||
|
|
Загрузка…
Ссылка в новой задаче