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

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

Issue 2051703002: Implement closed shadow adjustment for Element.offsetParent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add one more test case. Created 4 years, 6 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 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)
« 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