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

Unified Diff: Source/core/html/HTMLStyleElement.cpp

Issue 221673003: Defer iframe JavaScript URL evaluation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: What Elliott said Created 6 years, 9 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
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;
abarth-chromium 2014/04/02 05:46:05 Do other didNotifySubtreeInsertionsToDocument assu
StyleElement::processStyleSheet(document(), this);
}

Powered by Google App Engine
This is Rietveld 408576698