Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1436)

Unified Diff: Source/core/svg/SVGStyleElement.cpp

Issue 16425002: Moved StyleElement::insertedIntoDocument into didNotifySubtreeInsertions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGStyleElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStyleElement.cpp
diff --git a/Source/core/svg/SVGStyleElement.cpp b/Source/core/svg/SVGStyleElement.cpp
index 5e5372ce35f13688daba44745246eb1e5ed31b2e..ce9cdd46712913f5c3142d2f58af4b9a0ec2999b 100644
--- a/Source/core/svg/SVGStyleElement.cpp
+++ b/Source/core/svg/SVGStyleElement.cpp
@@ -136,10 +136,15 @@ Node::InsertionNotificationRequest SVGStyleElement::insertedInto(ContainerNode*
{
SVGElement::insertedInto(rootParent);
if (rootParent->inDocument())
- StyleElement::insertedIntoDocument(document(), this);
+ return InsertionShouldCallDidNotifySubtreeInsertions;
return InsertionDone;
}
+void SVGStyleElement::didNotifySubtreeInsertions(ContainerNode* insertionPoint)
+{
+ StyleElement::processStyleSheet(document(), this);
+}
+
void SVGStyleElement::removedFrom(ContainerNode* rootParent)
{
SVGElement::removedFrom(rootParent);
« no previous file with comments | « Source/core/svg/SVGStyleElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698