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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImage.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/LayoutImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
index 9b95e882fecc18acf7a70542e6dead196aa7df4b..d23c68def9c975071d06e3ca1b82a0676515b166 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -53,7 +53,7 @@ LayoutImage::LayoutImage(Element* element)
LayoutImage* LayoutImage::createAnonymous(PseudoElement& pseudo) {
LayoutImage* image = new LayoutImage(nullptr);
- image->setDocumentForAnonymous(&pseudo.document());
+ image->setPseudoForAnonymous(pseudo);
return image;
}

Powered by Google App Engine
This is Rietveld 408576698