| 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 19ac47476b6db7945f4398c23c95b8de0474d753..6c284fe55d51afbe22d214a6e49dfbf94f7cde69 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -782,20 +782,18 @@ void LayoutInline::absoluteQuadsForSelf(Vector<FloatQuad>& quads) const {
|
| context(FloatRect());
|
| }
|
|
|
| +LayoutPoint LayoutInline::firstLineBoxTopLeft() const {
|
| + if (InlineBox* firstBox = firstLineBoxIncludingCulling())
|
| + return firstBox->topLeft();
|
| + return LayoutPoint();
|
| +}
|
| +
|
| LayoutUnit LayoutInline::offsetLeft(const Element* parent) const {
|
| - LayoutPoint topLeft;
|
| - if (InlineBox* firstBox = firstLineBoxIncludingCulling()) {
|
| - topLeft = firstBox->topLeft();
|
| - }
|
| - return adjustedPositionRelativeTo(topLeft, parent).x();
|
| + return adjustedPositionRelativeTo(firstLineBoxTopLeft(), parent).x();
|
| }
|
|
|
| LayoutUnit LayoutInline::offsetTop(const Element* parent) const {
|
| - LayoutPoint topLeft;
|
| - if (InlineBox* firstBox = firstLineBoxIncludingCulling()) {
|
| - topLeft = firstBox->topLeft();
|
| - }
|
| - return adjustedPositionRelativeTo(topLeft, parent).y();
|
| + return adjustedPositionRelativeTo(firstLineBoxTopLeft(), parent).y();
|
| }
|
|
|
| static LayoutUnit computeMargin(const LayoutInline* layoutObject,
|
|
|