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

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

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Commit the renames 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
Index: third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp b/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
index a66a9a403596cef4e4be18121a25cc765732a9b8..8f05ccbef39ebe1ff24aa7270a971f3f7308da95 100644
--- a/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
+++ b/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
@@ -224,9 +224,7 @@ void FirstLetterPseudoElement::setRemainingTextLayoutObject(
// to tell our parent element to recalcStyle so we can get cleaned up
// as well.
if (!fragment)
- setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(
- StyleChangeReason::PseudoClass));
-
+ parentNode()->markAncestorsWithChildNeedsReattachLayoutTree();
m_remainingTextLayoutObject = fragment;
}

Powered by Google App Engine
This is Rietveld 408576698