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

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

Issue 2754653002: Cleanup anonymous text objects that pass the document as a node. (Closed)
Patch Set: Cleanup anonymous text objects that pass the document as a node. 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..9b95e882fecc18acf7a70542e6dead196aa7df4b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -29,6 +29,7 @@
#include "core/layout/LayoutImage.h"
#include "core/HTMLNames.h"
+#include "core/dom/PseudoElement.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/UseCounter.h"
@@ -50,9 +51,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->setDocumentForAnonymous(&pseudo.document());
return image;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImage.h ('k') | third_party/WebKit/Source/core/layout/LayoutMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698