Handle layer clients in LayoutSVGResourceContainer::registerResource
When registering pending clients on a newly discovered (filter) resource,
make sure to invalidate via the DeprectatedPaintLayer if the client has
one, or the client won't be updated properly.
Make SVGResourcesCache::clientStyleChanged handle non-SVG elements.
This was exposed by scheduler changes that caused flaky behavior in
LayoutTests/css3/filters/effect-reference-rename.html, where the
script:
document.getElementById("NotMyFilter").id = "MyFilter";
would normally execute before the call to registerResource() that added
MyFilter. With the scheduler these could happen in the opposite order
and trigger the "layoutObject->node()->isSVGElement()" assert.
BUG=453019,432129
Review URL: https://codereview.chromium.org/1068073005
git-svn-id: svn://svn.chromium.org/blink/trunk@193438 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed