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

Unified Diff: Source/core/html/HTMLBodyElement.cpp

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (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/FrameViewAutoSizeInfo.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLBodyElement.cpp
diff --git a/Source/core/html/HTMLBodyElement.cpp b/Source/core/html/HTMLBodyElement.cpp
index ea724bfbbb0ec54f59ac85e5df3d8437567aad87..f92220d4ea0810e8ec498bdc59061fcbb8bd4d06 100644
--- a/Source/core/html/HTMLBodyElement.cpp
+++ b/Source/core/html/HTMLBodyElement.cpp
@@ -37,7 +37,7 @@
#include "core/frame/UseCounter.h"
#include "core/html/HTMLFrameElementBase.h"
#include "core/html/parser/HTMLParserIdioms.h"
-#include "core/rendering/RenderBox.h"
+#include "core/layout/LayoutBox.h"
namespace blink {
@@ -225,7 +225,7 @@ double HTMLBodyElement::scrollLeft()
document.updateLayoutIgnorePendingStylesheets();
if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
- RenderBox* render = renderBox();
+ LayoutBox* render = layoutBox();
if (!render)
return 0;
if (render->hasOverflowClip())
@@ -248,7 +248,7 @@ void HTMLBodyElement::setScrollLeft(double scrollLeft)
return;
if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
- RenderBox* render = renderBox();
+ LayoutBox* render = layoutBox();
if (!render)
return;
if (render->hasOverflowClip()) {
@@ -270,7 +270,7 @@ double HTMLBodyElement::scrollTop()
document.updateLayoutIgnorePendingStylesheets();
if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
- RenderBox* render = renderBox();
+ LayoutBox* render = layoutBox();
if (!render)
return 0;
if (render->hasOverflowClip())
@@ -293,7 +293,7 @@ void HTMLBodyElement::setScrollTop(double scrollTop)
return;
if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
- RenderBox* render = renderBox();
+ LayoutBox* render = layoutBox();
if (!render)
return;
if (render->hasOverflowClip()) {
@@ -336,11 +336,11 @@ void HTMLBodyElement::scrollBy(const ScrollToOptions& scrollToOptions)
document.updateLayoutIgnorePendingStylesheets();
if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
- RenderBox* render = renderBox();
+ LayoutBox* render = layoutBox();
if (!render)
return;
if (render->hasOverflowClip()) {
- scrollRenderBoxBy(scrollToOptions);
+ scrollLayoutBoxBy(scrollToOptions);
return;
}
if (!document.inQuirksMode())
@@ -359,11 +359,11 @@ void HTMLBodyElement::scrollTo(const ScrollToOptions& scrollToOptions)
document.updateLayoutIgnorePendingStylesheets();
if (RuntimeEnabledFeatures::scrollTopLeftInteropEnabled()) {
- RenderBox* render = renderBox();
+ LayoutBox* render = layoutBox();
if (!render)
return;
if (render->hasOverflowClip()) {
- scrollRenderBoxTo(scrollToOptions);
+ scrollLayoutBoxTo(scrollToOptions);
return;
}
if (!document.inQuirksMode())
« no previous file with comments | « Source/core/frame/FrameViewAutoSizeInfo.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698