Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index 56eede0205aa29a9d07182d06914186997cdd3ec..09511f777b024f27d8fbca790d877439bc87d4b8 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2086,9 +2086,12 @@ void Element::rebuildShadowRootLayoutTree(Text*& nextTextSibling) { |
void Element::rebuildPseudoElementLayoutTree(PseudoId pseudoId, |
Text* nextTextSibling) { |
if (PseudoElement* element = pseudoElement(pseudoId)) { |
+ if (pseudoId == PseudoIdFirstLetter && updateFirstLetter(element)) |
+ return; |
if (element->needsReattachLayoutTree() || |
- element->childNeedsReattachLayoutTree()) |
+ element->childNeedsReattachLayoutTree()) { |
element->rebuildLayoutTree(nextTextSibling); |
+ } |
} else { |
createPseudoElementIfNeeded(pseudoId); |
} |