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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutCounter.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/LayoutCounter.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
index dbb6c98a448e16f75d9864bef7cc97da83f33671..958f8a71e4a84abdeaccbc2a330b5037a906ca5c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
@@ -431,7 +431,7 @@ LayoutCounter::LayoutCounter(PseudoElement& pseudo,
m_counter(counter),
m_counterNode(nullptr),
m_nextForSameCounter(nullptr) {
- setDocumentForAnonymous(&pseudo.document());
+ setPseudoForAnonymous(pseudo);
view()->addLayoutCounter();
}

Powered by Google App Engine
This is Rietveld 408576698