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 c9923aae4dc224164d48d36654ca1ca617237266..fefc3724aafd8d8f7eade6f11417d334acc9a356 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) |