Index: third_party/WebKit/Source/core/html/ImageDocument.cpp |
diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp |
index 37b578bb13bb98e7122e65274a05ecb322e053d0..0d312fce026acad9721e83db6b9086adecc1cc84 100644 |
--- a/third_party/WebKit/Source/core/html/ImageDocument.cpp |
+++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp |
@@ -223,7 +223,7 @@ void ImageDocument::createDocumentStructure() |
HTMLBodyElement* body = HTMLBodyElement::create(*this); |
body->setAttribute(styleAttr, "margin: 0px;"); |
- frame()->loader().client()->dispatchWillInsertBody(); |
+ willInsertBody(); |
m_imageElement = HTMLImageElement::create(*this); |
m_imageElement->setAttribute(styleAttr, "-webkit-user-select: none"); |