Bug 1964158 - If a filter is not valid, return the original dirty region r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D247798
This commit is contained in:
committed by
longsonr@gmail.com
parent
13387e6e59
commit
ab0bcf2219
@@ -1490,7 +1490,7 @@ nsRegion FilterInstance::GetPreFilterNeededArea(
|
|||||||
/* InputIsTainted */ true, nullptr, tm,
|
/* InputIsTainted */ true, nullptr, tm,
|
||||||
&aPostFilterDirtyRegion);
|
&aPostFilterDirtyRegion);
|
||||||
if (!instance.IsInitialized()) {
|
if (!instance.IsInitialized()) {
|
||||||
return nsRect();
|
return aPostFilterDirtyRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now we can ask the instance to compute the area of the source
|
// Now we can ask the instance to compute the area of the source
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<title>zero width filters are ignored</title>
|
||||||
|
<link rel="help" href="https://www.w3.org/TR/filter-effects-1/#filter-region">
|
||||||
|
<link rel="match" href="reference/green-100x100.html">
|
||||||
|
<svg width="200" height="200">
|
||||||
|
<defs>
|
||||||
|
<rect id="r" width="100" height="100" fill="green"/>
|
||||||
|
<filter x="0" y="0" id="f_off" width="0" height="0">
|
||||||
|
<feOffset/>
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
<rect width="100" height="100" fill="red"/>
|
||||||
|
<use style="filter:url(#f_off)" href="#r"/>
|
||||||
|
</svg>
|
||||||
Reference in New Issue
Block a user