haikuwebkit/LayoutTests/svg/filters/first-letter-crash-expected...

3 lines
128 B
Plaintext
Raw Permalink Normal View History

Crash in WebCore::RenderLayer::FilterInfo::updateReferenceFilterClients <https://bugs.webkit.org/show_bug.cgi?id=121887> <rdar://problem/15073043> Reviewed by Dean Jackson. Source/WebCore: Test: svg/filters/first-letter-crash.html * rendering/FilterEffectRenderer.cpp: (WebCore::FilterEffectRenderer::buildReferenceFilter): Added a null check to prevent crashes for anonymous RenderObjects. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::filterNeedsRepaint): Get the enclosing element, if there is one, and recalculate its style. We use the enclosing element so that we recalculate style for the ancestor of an anonymous RenderElement. (WebCore::RenderLayer::enclosingElement): Remove an assertion; we may now reach this condition if loading a cached SVG document results in RenderLayer::filterNeedsRepaint() being called before the object has been inserted into the render tree. * rendering/RenderLayerFilterInfo.cpp: (WebCore::RenderLayer::FilterInfo::notifyFinished): Tell the RenderLayer that the filter needs repainting. (WebCore::RenderLayer::FilterInfo::updateReferenceFilterClients): Get the Element from the renderer rather than asking the renderer's Element, which will be null for anonymous RenderObjects. * rendering/RenderLayerFilterInfo.h: Removed declaration for the old workaround function, layerElement(). LayoutTests: * svg/filters/first-letter-crash-expected.txt: Added. * svg/filters/first-letter-crash.html: Added. Canonical link: https://commits.webkit.org/149132@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-04-02 02:48:14 +00:00
PASS.
WebKit bug #121887: Crash when applying SVG filter to first-letter pseudo element. This test passes if it does not crash.