| Index: Source/core/dom/FirstLetterPseudoElement.cpp
|
| diff --git a/Source/core/dom/FirstLetterPseudoElement.cpp b/Source/core/dom/FirstLetterPseudoElement.cpp
|
| index d47a521eba3c9acb4c8cc2dc9c3489c14df10b4c..eea9d256d0d1de662c8156bd94b107973d9b9efa 100644
|
| --- a/Source/core/dom/FirstLetterPseudoElement.cpp
|
| +++ b/Source/core/dom/FirstLetterPseudoElement.cpp
|
| @@ -273,6 +273,11 @@ void FirstLetterPseudoElement::attachFirstLetterTextLayoutObjects()
|
| new LayoutTextFragment(nextLayoutObject->node() ? nextLayoutObject->node() : &nextLayoutObject->document(), oldText.impl(), length, oldText.length() - length);
|
| remainingText->setFirstLetterPseudoElement(this);
|
| remainingText->setIsRemainingTextLayoutObject(true);
|
| + // Copy all properties, but assert that we're copying from a text node. Text nodes only have
|
| + // their inheritable properties set, while other nodes (HTML elements, for instance) may have
|
| + // anything set. We only want to set inheritable properties on text fragments (just like for
|
| + // regular text nodes).
|
| + ASSERT(nextLayoutObject->isText() && !nextLayoutObject->isBR());
|
| remainingText->setStyle(nextLayoutObject->mutableStyle());
|
|
|
| if (remainingText->node())
|
|
|