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); |
} |