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

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: rename functions, update comment 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 9137ecf1dc9429612d281307f6f2dbf45e1b35a7..c2e009f3d529dce50640f87fd93f79dbef857306 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -4436,12 +4436,12 @@ LayoutRect LayoutBox::visualOverflowRect() const
LayoutUnit LayoutBox::offsetLeft() const
{
- return adjustedPositionRelativeToOffsetParent(topLeftLocation()).x();
+ return adjustedPositionRelativeToUnclosedOffsetParent(topLeftLocation()).x();
}
LayoutUnit LayoutBox::offsetTop() const
{
- return adjustedPositionRelativeToOffsetParent(topLeftLocation()).y();
+ return adjustedPositionRelativeToUnclosedOffsetParent(topLeftLocation()).y();
}
LayoutPoint LayoutBox::flipForWritingModeForChild(const LayoutBox* child, const LayoutPoint& point) const

Powered by Google App Engine
This is Rietveld 408576698