| Index: third_party/WebKit/Source/core/dom/Text.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
|
| index 637ff97396f7a866e972a884f942e4044dd70406..b592b24ec596f23f3ea67e09c69d10587f9a7ec9 100644
|
| --- a/third_party/WebKit/Source/core/dom/Text.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Text.cpp
|
| @@ -415,9 +415,9 @@ static bool shouldUpdateLayoutByReattaching(const Text& textNode, LayoutText* te
|
| if (!textNode.textLayoutObjectIsNeeded(*textLayoutObject->style(), *textLayoutObject->parent()))
|
| return true;
|
| if (textLayoutObject->isTextFragment()) {
|
| - FirstLetterPseudoElement* pseudo = toLayoutTextFragment(textLayoutObject)->firstLetterPseudoElement();
|
| - if (pseudo && !FirstLetterPseudoElement::firstLetterTextLayoutObject(*pseudo))
|
| - return true;
|
| + // Changes of |textNode| may change first letter part, so we should
|
| + // reattach.
|
| + return toLayoutTextFragment(textLayoutObject)->firstLetterPseudoElement();
|
| }
|
| return false;
|
| }
|
|
|