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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1839803007: Guard Element and getComputedStyle methods that force a layout with inActiveDocument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 3ae652d4a77fd109b1f91e9e93388b5ee049fd44..d08344a7a4a6e2f46ee8d576a101558cb6d6017b 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -1940,6 +1940,14 @@ void Document::updateLayoutTreeForNode(Node* node)
updateLayoutTree();
}
+void Document::updateLayoutIgnorePendingStylesheetsForNode(Node* node)
+{
+ ASSERT(node);
+ if (!node->inActiveDocument())
+ return;
+ updateLayoutIgnorePendingStylesheets();
+}
+
void Document::updateLayout()
{
ASSERT(isMainThread());

Powered by Google App Engine
This is Rietveld 408576698