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()) { |