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

Unified Diff: Source/core/dom/Node.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/dom/Node.h ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index e069820a7cf2819ba2fa76b057e9ec7c91298964..1f921cf44822525e67ea4da85dbe81caa37cbf64 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -82,10 +82,10 @@
#include "core/html/HTMLDialogElement.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/HTMLStyleElement.h"
+#include "core/layout/LayoutBox.h"
#include "core/page/ContextMenuController.h"
#include "core/page/EventHandler.h"
#include "core/page/Page.h"
-#include "core/rendering/RenderBox.h"
#include "core/svg/graphics/SVGImage.h"
#include "platform/EventDispatchForbiddenScope.h"
#include "platform/Partitions.h"
@@ -596,10 +596,10 @@ bool Node::isEditableToAccessibility(EditableLevel editableLevel) const
return false;
}
-RenderBox* Node::renderBox() const
+LayoutBox* Node::layoutBox() const
{
LayoutObject* renderer = this->renderer();
- return renderer && renderer->isBox() ? toRenderBox(renderer) : nullptr;
+ return renderer && renderer->isBox() ? toLayoutBox(renderer) : nullptr;
}
LayoutBoxModelObject* Node::layoutBoxModelObject() const
@@ -2143,7 +2143,7 @@ void Node::defaultEventHandler(Event* event)
// LayoutTextControlSingleLine::scrollHeight
document().updateLayoutIgnorePendingStylesheets();
LayoutObject* renderer = this->renderer();
- while (renderer && (!renderer->isBox() || !toRenderBox(renderer)->canBeScrolledAndHasScrollableArea()))
+ while (renderer && (!renderer->isBox() || !toLayoutBox(renderer)->canBeScrolledAndHasScrollableArea()))
renderer = renderer->parent();
if (renderer) {
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698