Chromium Code Reviews| Index: Source/core/html/HTMLStyleElement.cpp |
| diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp |
| index 76f96d2f4609ea04fd568022e84e0864520628f0..cb3bfc98e4f369f41803f94fe2f711d9a0fb4d39 100644 |
| --- a/Source/core/html/HTMLStyleElement.cpp |
| +++ b/Source/core/html/HTMLStyleElement.cpp |
| @@ -210,6 +210,8 @@ void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint) |
| void HTMLStyleElement::didNotifySubtreeInsertionsToDocument() |
| { |
| + if (!inDocument()) |
| + return; |
|
esprehn
2014/04/02 19:33:31
This is impossible, we only call this if you're in
|
| StyleElement::processStyleSheet(document(), this); |
| } |