Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
index ebec54584303173c6badac797b30233b7cdf8fbe..c6d4e17dc8e9cef5e527a5ba24a1c8e40eec2651 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
@@ -686,22 +686,22 @@ void LayoutInline::absoluteQuads(Vector<FloatQuad>& quads) const |
continuation->absoluteQuads(quads); |
} |
-LayoutUnit LayoutInline::offsetLeft() const |
+LayoutUnit LayoutInline::offsetLeft(const Element* parent) const |
{ |
LayoutPoint topLeft; |
if (InlineBox* firstBox = firstLineBoxIncludingCulling()) { |
topLeft = firstBox->topLeft(); |
} |
- return adjustedPositionRelativeToOffsetParent(topLeft).x(); |
+ return adjustedPositionRelativeTo(topLeft, parent).x(); |
} |
-LayoutUnit LayoutInline::offsetTop() const |
+LayoutUnit LayoutInline::offsetTop(const Element* parent) const |
{ |
LayoutPoint topLeft; |
if (InlineBox* firstBox = firstLineBoxIncludingCulling()) { |
topLeft = firstBox->topLeft(); |
} |
- return adjustedPositionRelativeToOffsetParent(topLeft).y(); |
+ return adjustedPositionRelativeTo(topLeft, parent).y(); |
} |
static LayoutUnit computeMargin(const LayoutInline* layoutObject, const Length& margin) |