| Index: Source/core/dom/FirstLetterPseudoElement.cpp
|
| diff --git a/Source/core/dom/FirstLetterPseudoElement.cpp b/Source/core/dom/FirstLetterPseudoElement.cpp
|
| index e0db41d3f7a270ba075ca5294835836316aef04a..b61d173425f0f0813512f0ec98cea06a36942827 100644
|
| --- a/Source/core/dom/FirstLetterPseudoElement.cpp
|
| +++ b/Source/core/dom/FirstLetterPseudoElement.cpp
|
| @@ -142,7 +142,8 @@ LayoutObject* FirstLetterPseudoElement::firstLetterTextRenderer(const Element& e
|
| return nullptr;
|
| } else if (firstLetterTextRenderer->isFlexibleBoxIncludingDeprecated() || firstLetterTextRenderer->isLayoutGrid()) {
|
| firstLetterTextRenderer = firstLetterTextRenderer->nextSibling();
|
| - } else if (firstLetterTextRenderer->style()->hasPseudoStyle(FIRST_LETTER)
|
| + } else if (!firstLetterTextRenderer->isInline()
|
| + && firstLetterTextRenderer->style()->hasPseudoStyle(FIRST_LETTER)
|
| && canHaveGeneratedChildren(*firstLetterTextRenderer)) {
|
| // There is a renderer further down the tree which has FIRST_LETTER set. When that node
|
| // is attached we will handle setting up the first letter then.
|
|
|