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

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

Issue 2051703002: Implement closed shadow adjustment for Element.offsetParent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-revert the previous and check position:fixed in layout code. 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/LayoutVideo.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutVideo.cpp b/third_party/WebKit/Source/core/layout/LayoutVideo.cpp
index 7d9fe82d2aea986559a4d2a413ca11c08fc776ad..d30914821ac69accefce3cd00151db7df0e37f04 100644
--- a/third_party/WebKit/Source/core/layout/LayoutVideo.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutVideo.cpp
@@ -210,18 +210,18 @@ static const LayoutBlock* layoutObjectPlaceholder(const LayoutObject* layoutObje
return fullScreen->placeholder();
}
-LayoutUnit LayoutVideo::offsetLeft() const
+LayoutUnit LayoutVideo::offsetLeft(const Element* parent) const
{
if (const LayoutBlock* block = layoutObjectPlaceholder(this))
- return block->offsetLeft();
- return LayoutMedia::offsetLeft();
+ return block->offsetLeft(parent);
+ return LayoutMedia::offsetLeft(parent);
}
-LayoutUnit LayoutVideo::offsetTop() const
+LayoutUnit LayoutVideo::offsetTop(const Element* parent) const
{
if (const LayoutBlock* block = layoutObjectPlaceholder(this))
- return block->offsetTop();
- return LayoutMedia::offsetTop();
+ return block->offsetTop(parent);
+ return LayoutMedia::offsetTop(parent);
}
LayoutUnit LayoutVideo::offsetWidth() const

Powered by Google App Engine
This is Rietveld 408576698