summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp b/chromium/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
index e3838ce5059..fef6d115e0f 100644
--- a/chromium/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
+++ b/chromium/third_party/WebKit/Source/core/svg/SVGStyleElement.cpp
@@ -105,14 +105,14 @@ void SVGStyleElement::FinishParsingChildren() {
Node::InsertionNotificationRequest SVGStyleElement::InsertedInto(
ContainerNode* insertion_point) {
SVGElement::InsertedInto(insertion_point);
- return kInsertionShouldCallDidNotifySubtreeInsertions;
-}
-
-void SVGStyleElement::DidNotifySubtreeInsertionsToDocument() {
- if (StyleElement::ProcessStyleSheet(GetDocument(), *this) ==
- StyleElement::kProcessingFatalError)
- NotifyLoadedSheetAndAllCriticalSubresources(
- kErrorOccurredLoadingSubresource);
+ if (isConnected()) {
+ if (StyleElement::ProcessStyleSheet(GetDocument(), *this) ==
+ StyleElement::kProcessingFatalError) {
+ NotifyLoadedSheetAndAllCriticalSubresources(
+ kErrorOccurredLoadingSubresource);
+ }
+ }
+ return kInsertionDone;
}
void SVGStyleElement::RemovedFrom(ContainerNode* insertion_point) {