Index: Source/core/frame/SmartClip.cpp |
diff --git a/Source/core/frame/SmartClip.cpp b/Source/core/frame/SmartClip.cpp |
index b8b9162884cf0fb66962331f6650ee5b31ee1795..6bca71a487f31f2a3278221bcb7a49a669568bd2 100644 |
--- a/Source/core/frame/SmartClip.cpp |
+++ b/Source/core/frame/SmartClip.cpp |
@@ -37,8 +37,8 @@ |
#include "core/frame/LocalDOMWindow.h" |
#include "core/frame/FrameView.h" |
#include "core/html/HTMLFrameOwnerElement.h" |
+#include "core/layout/LayoutObject.h" |
#include "core/page/Page.h" |
-#include "core/rendering/RenderObject.h" |
#include "wtf/text/StringBuilder.h" |
namespace blink { |
@@ -177,7 +177,7 @@ Node* SmartClip::findBestOverlappingNode(Node* rootNode, const IntRect& cropRect |
continue; |
} |
- RenderObject* renderer = node->renderer(); |
+ LayoutObject* renderer = node->renderer(); |
if (renderer && !nodeRect.isEmpty()) { |
if (renderer->isText() |
|| renderer->isRenderImage() |
@@ -211,7 +211,7 @@ bool SmartClip::shouldSkipBackgroundImage(Node* node) |
// image out of a CSS background, you're probably going to specify a height |
// or a width. On the other hand, if we've got a legit background image, |
// it's very likely the height or the width will be set to auto. |
- RenderObject* renderer = node->renderer(); |
+ LayoutObject* renderer = node->renderer(); |
if (renderer && (renderer->style()->logicalHeight().isAuto() || renderer->style()->logicalWidth().isAuto())) |
return true; |