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

Unified Diff: Source/core/editing/EditingStyle.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/Position.cpp ('k') | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditingStyle.cpp
diff --git a/Source/core/editing/EditingStyle.cpp b/Source/core/editing/EditingStyle.cpp
index 0668a3b5c5fdccf723b7f2b099685938eabf553a..6e44f9af1d6196af24e7f72b7bed299f42c75d18 100644
--- a/Source/core/editing/EditingStyle.cpp
+++ b/Source/core/editing/EditingStyle.cpp
@@ -54,9 +54,9 @@
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLFontElement.h"
#include "core/html/HTMLSpanElement.h"
+#include "core/layout/LayoutBox.h"
#include "core/layout/LayoutObject.h"
#include "core/layout/style/LayoutStyle.h"
-#include "core/rendering/RenderBox.h"
namespace blink {
@@ -1241,10 +1241,10 @@ void EditingStyle::addAbsolutePositioningFromElement(const Element& element)
LayoutUnit width = rect.width();
LayoutUnit height = rect.height();
if (renderer && renderer->isBox()) {
- RenderBox* renderBox = toRenderBox(renderer);
+ LayoutBox* layoutBox = toLayoutBox(renderer);
- x -= renderBox->marginLeft();
- y -= renderBox->marginTop();
+ x -= layoutBox->marginLeft();
+ y -= layoutBox->marginTop();
m_mutableStyle->setProperty(CSSPropertyBoxSizing, CSSValueBorderBox);
}
« no previous file with comments | « Source/core/dom/Position.cpp ('k') | Source/core/editing/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698