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

Unified Diff: Source/core/frame/SmartClip.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/html/HTMLAppletElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/html/HTMLAppletElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698