Index: third_party/WebKit/Source/core/page/DragController.cpp |
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp |
index 672b9410852966e027c521a74dbb64443e40fb55..46367768ea2f8a8144815b961866a4f6969407d3 100644 |
--- a/third_party/WebKit/Source/core/page/DragController.cpp |
+++ b/third_party/WebKit/Source/core/page/DragController.cpp |
@@ -797,7 +797,7 @@ static PassOwnPtr<DragImage> dragImageForImage(Element* element, Image* image, c |
IntPoint origin; |
InterpolationQuality interpolationQuality = element->ensureComputedStyle()->imageRendering() == ImageRenderingPixelated ? InterpolationNone : InterpolationHigh; |
- RespectImageOrientationEnum shouldRespectImageOrientation = element->layoutObject() ? element->layoutObject()->shouldRespectImageOrientation() : DoNotRespectImageOrientation; |
+ RespectImageOrientationEnum shouldRespectImageOrientation = LayoutObject::shouldRespectImageOrientation(element->layoutObject()); |
ImageOrientation orientation; |
if (shouldRespectImageOrientation == RespectImageOrientation && image->isBitmapImage()) |