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

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

Issue 2500923002: No forced active stylesheet recollect when pending sheets reach 0. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e512e9cff7ca5069b9cac28a228ee8c15dc846bb..3d279fae1322058269df0c9643c639e34d2117c9 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3677,8 +3677,13 @@ void Document::notifyResizeForViewportUnits() {
}
void Document::styleResolverMayHaveChanged() {
rune 2016/11/15 10:39:03 This is a confusing name for this method, but I ha
meade_UTC10 2016/11/16 18:10:31 D:
- styleEngine().resolverChanged(
- hasNodesWithPlaceholderStyle() ? FullStyleUpdate : AnalyzedStyleUpdate);
+ styleEngine().resolverChanged(AnalyzedStyleUpdate);
+
+ if (hasNodesWithPlaceholderStyle()) {
+ setNeedsStyleRecalc(SubtreeStyleChange,
+ StyleChangeReasonForTracing::create(
+ StyleChangeReason::CleanupPlaceholderStyles));
+ }
if (didLayoutWithPendingStylesheets() &&
!styleEngine().hasPendingScriptBlockingSheets()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698