Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp

Issue 2727853002: [css-display] Support display: contents pseudo-elements.
Patch Set: [css-display] Support display: contents pseudos. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698