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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImage.cpp

Issue 2727853002: [css-display] Support display: contents pseudo-elements.
Patch Set: Add missing nullcheck (whoops). 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 4863e53ccec65efacdfb80b1cdd3a26fca523d70..265861ee6e9289ccdc0b369a31d2ccf54bdb234d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -50,9 +50,9 @@ LayoutImage::LayoutImage(Element* element)
m_isGeneratedContent(false),
m_imageDevicePixelRatio(1.0f) {}
-LayoutImage* LayoutImage::createAnonymous(Document* document) {
+LayoutImage* LayoutImage::createAnonymous(PseudoElement& pseudo) {
LayoutImage* image = new LayoutImage(nullptr);
- image->setDocumentForAnonymous(document);
+ image->setPseudoForAnonymous(pseudo);
return image;
}

Powered by Google App Engine
This is Rietveld 408576698