diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/svg/SVGUseElement.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/svg/SVGUseElement.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/WebCore/svg/SVGUseElement.cpp b/src/3rdparty/webkit/WebCore/svg/SVGUseElement.cpp index 32019f2..b73a692 100644 --- a/src/3rdparty/webkit/WebCore/svg/SVGUseElement.cpp +++ b/src/3rdparty/webkit/WebCore/svg/SVGUseElement.cpp @@ -836,7 +836,11 @@ SVGElementInstance* SVGUseElement::instanceForShadowTreeElement(Node* element, S { ASSERT(element); ASSERT(instance); - ASSERT(instance->shadowTreeElement()); + + // We're dispatching a mutation event during shadow tree construction + // this instance hasn't yet been associated to a shadowTree element. + if (!instance->shadowTreeElement()) + return 0; if (element == instance->shadowTreeElement()) return instance; |