| 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 0d12a673395dcd43c5503c5373bd9e0b63a24f96..fb209ce555db2ecd8be18a8b9f24630a1a6b82a4 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,
|
|
|