haikuwebkit/LayoutTests/svg/filters/feImage-filter-assertion.html

26 lines
661 B
HTML
Raw Permalink Normal View History

Assertion failure under FEImage::determineAbsolutePaintRect() <https://bugs.webkit.org/show_bug.cgi?id=131660> <rdar://problem/15669294> Source/WebCore: This patch merges Chromium r149536 (see <https://chromiumcodereview.appspot.com/14701012>), which moves m_absoluteTransform out of SVGFilter and into the base Filter class, so that it isn't necessary to cast a Filter to SVGFilter to get the absolute transform. Reviewed by Geoffrey Garen. Test: svg/filters/feImage-filter-assertion.html * platform/graphics/filters/Filter.h: (WebCore::Filter::Filter): Changed to take the absolute transform. (WebCore::Filter::absoluteTransform): Moved from SVGFilter. (WebCore::Filter::mapAbsolutePointToLocalPoint): Ditto. * rendering/FilterEffectRenderer.cpp: (WebCore::FilterEffectRenderer::FilterEffectRenderer): Pass a default AffineTransform() to the Filter base class. * svg/graphics/filters/SVGFEImage.cpp: (WebCore::FEImage::determineAbsolutePaintRect): Use the Filter without casting it to SVGFilter. (WebCore::FEImage::platformApplySoftware): Ditto. * svg/graphics/filters/SVGFilter.cpp: (WebCore::SVGFilter::SVGFilter): Pass the transform to the base class, and remove initialization of a removed member var. * svg/graphics/filters/SVGFilter.h: Member var moved to Filter.h. LayoutTests: Reviewed by Geoffrey Garen. * svg/filters/feImage-filter-assertion-expected.txt: Added. * svg/filters/feImage-filter-assertion.html: Added. Canonical link: https://commits.webkit.org/149736@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-04-15 05:23:07 +00:00
<style>
#filtered {
width: 160px;
height: 90px;
-webkit-filter: url(#imagereplace);
filter: url(#imagereplace);
}
</style>
<div id="filtered"></div>
<p>
WebKit bug #<a href="https://bugs.webkit.org/show_bug.cgi?id=131660">131660</a>: Assertion failure in FEImage::determineAbsolutePaintRect(). This test passes if it does not assert in a debug build.
</p>
<svg xmlns="http://www.w3.org/3000/svg" width="0" height="0" xmlns:xlink="http://www.w3.org/1999/xlink">
<filter id="imagereplace">
<feimage xlink:href="test.png"/>
</filter>
</svg>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
</script>