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

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

Issue 2051703002: Implement closed shadow adjustment for Element.offsetParent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 8d2f18f7012defd451e73877a9219c51143dc035..58e6900eb73cd7b009aa5e64319d03f9b07687a3 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -458,12 +458,12 @@ int LayoutBox::pixelSnappedClientHeight() const
return snapSizeToPixel(clientHeight(), location().y() + clientTop());
}
-int LayoutBox::pixelSnappedOffsetWidth() const
+int LayoutBox::pixelSnappedOffsetWidth(const Element*) const
{
return snapSizeToPixel(offsetWidth(), location().x() + clientLeft());
}
-int LayoutBox::pixelSnappedOffsetHeight() const
+int LayoutBox::pixelSnappedOffsetHeight(const Element*) const
{
return snapSizeToPixel(offsetHeight(), location().y() + clientTop());
}
@@ -4445,14 +4445,14 @@ LayoutRect LayoutBox::visualOverflowRect() const
return unionRect(m_overflow->selfVisualOverflowRect(), m_overflow->contentsVisualOverflowRect());
}
-LayoutUnit LayoutBox::offsetLeft() const
+LayoutUnit LayoutBox::offsetLeft(const Element* parent) const
{
- return adjustedPositionRelativeToOffsetParent(topLeftLocation()).x();
+ return adjustedPositionRelativeTo(topLeftLocation(), parent).x();
}
-LayoutUnit LayoutBox::offsetTop() const
+LayoutUnit LayoutBox::offsetTop(const Element* parent) const
{
- return adjustedPositionRelativeToOffsetParent(topLeftLocation()).y();
+ return adjustedPositionRelativeTo(topLeftLocation(), parent).y();
}
LayoutPoint LayoutBox::flipForWritingModeForChild(const LayoutBox* child, const LayoutPoint& point) const

Powered by Google App Engine
This is Rietveld 408576698