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

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

Issue 2699883002: Add type selector invalidation set for ruleset invalidations. (Closed)
Patch Set: Created 3 years, 10 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 4294b0b790cc03d931a4bfdf0e935993b5901ee8..eeda782a5caa7f52a252c24622edf05a330ad81a 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -1711,7 +1711,7 @@ void Document::updateStyleInvalidationIfNeeded() {
DCHECK(isActive());
ScriptForbiddenScope forbidScript;
- if (!childNeedsStyleInvalidation())
+ if (!childNeedsStyleInvalidation() && !needsStyleInvalidation())
return;
TRACE_EVENT0("blink", "Document::updateStyleInvalidationIfNeeded");
styleEngine().styleInvalidator().invalidate(*this);
« no previous file with comments | « third_party/WebKit/Source/core/css/invalidation/StyleInvalidatorTest.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698