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 b08b73bcd942a3cfec37278981cf3dc2714df543..d9a7e72890df8ca3888ca3da7671f3404c6837b4 100644 |
--- a/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp |
+++ b/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp |
@@ -300,8 +300,10 @@ void FirstLetterPseudoElement::attachFirstLetterTextLayoutObjects() { |
remainingText = new LayoutTextFragment( |
nextLayoutObject->node(), oldText.impl(), length, remainingLength); |
} else { |
+ PseudoElement* owningPseudo = nextLayoutObject->ownerPseudoElement(); |
remainingText = LayoutTextFragment::createAnonymous( |
- *this, oldText.impl(), length, remainingLength); |
+ owningPseudo ? *owningPseudo : *this, oldText.impl(), length, |
+ remainingLength); |
rune
2017/04/04 14:23:41
I don't understand this. What is an ownerPseudoEle
emilio
2017/04/04 15:09:18
So this is specific to first-letter because first-
|
} |
remainingText->setFirstLetterPseudoElement(this); |