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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.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/layout/LayoutTextFragment.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
index 3f11242b54cd0d467d3c2a522b0994f63b62be22..b639ac2d25b28d9b3c587a19d19a60d62915dfe7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp
@@ -57,7 +57,7 @@ LayoutTextFragment* LayoutTextFragment::createAnonymous(PseudoElement& pseudo,
unsigned length) {
LayoutTextFragment* fragment =
new LayoutTextFragment(nullptr, text, start, length);
- fragment->setDocumentForAnonymous(&pseudo.document());
+ fragment->setPseudoForAnonymous(pseudo);
if (length)
pseudo.document().view()->incrementVisuallyNonEmptyCharacterCount(length);
return fragment;

Powered by Google App Engine
This is Rietveld 408576698