Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2194793006: Do not commit: Revert of r404081 and r402757 for perf testing purposes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 42a76bc6d31bfe668fed3c7ff1a3ba071bd30424..6e9c19287c634e668776e67556e9db4ba1c153ba 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 Element* parent) const
+LayoutUnit LayoutInline::offsetLeft() const
{
LayoutPoint topLeft;
if (InlineBox* firstBox = firstLineBoxIncludingCulling()) {
topLeft = firstBox->topLeft();
}
- return adjustedPositionRelativeTo(topLeft, parent).x();
+ return adjustedPositionRelativeToOffsetParent(topLeft).x();
}
-LayoutUnit LayoutInline::offsetTop(const Element* parent) const
+LayoutUnit LayoutInline::offsetTop() const
{
LayoutPoint topLeft;
if (InlineBox* firstBox = firstLineBoxIncludingCulling()) {
topLeft = firstBox->topLeft();
}
- return adjustedPositionRelativeTo(topLeft, parent).y();
+ return adjustedPositionRelativeToOffsetParent(topLeft).y();
}
static LayoutUnit computeMargin(const LayoutInline* layoutObject, const Length& margin)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.h ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698