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

Unified Diff: Source/core/html/HTMLStyleElement.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/html/HTMLStyleElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLStyleElement.cpp
diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp
index 05eadff4961955d2fe970c40729f007a7c57f35a..e32e8e473c92e56d94be54a577dc07ac9577844e 100644
--- a/Source/core/html/HTMLStyleElement.cpp
+++ b/Source/core/html/HTMLStyleElement.cpp
@@ -174,7 +174,7 @@ Node::InsertionNotificationRequest HTMLStyleElement::insertedInto(ContainerNode*
if (insertionPoint->inDocument()) {
if (m_scopedStyleRegistrationState == NotRegistered && (scoped() || isInShadowTree()))
registerWithScopingNode(scoped());
- StyleElement::insertedIntoDocument(document(), this);
+ return InsertionShouldCallDidNotifySubtreeInsertions;
}
return InsertionDone;
@@ -203,6 +203,11 @@ void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint)
StyleElement::removedFromDocument(document(), this);
}
+void HTMLStyleElement::didNotifySubtreeInsertions(ContainerNode* insertionPoint)
+{
+ StyleElement::processStyleSheet(document(), this);
+}
+
void HTMLStyleElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
{
HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
« no previous file with comments | « Source/core/html/HTMLStyleElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698