| 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);
|
|
|