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

Unified Diff: Source/core/rendering/RenderVideo.cpp

Issue 18896003: [WIP] Migrate Fullscreen to use top layer instead of RenderFullScreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/core/rendering/RenderVideo.cpp
diff --git a/Source/core/rendering/RenderVideo.cpp b/Source/core/rendering/RenderVideo.cpp
index 61ce56c3c22770b593099c961ba82aca9e06ef59..9261d913bf75de160f049d131a1d168806bd26b8 100644
--- a/Source/core/rendering/RenderVideo.cpp
+++ b/Source/core/rendering/RenderVideo.cpp
@@ -35,7 +35,6 @@
#include "core/page/Page.h"
#include "core/platform/graphics/MediaPlayer.h"
#include "core/rendering/PaintInfo.h"
-#include "core/rendering/RenderFullScreen.h"
namespace WebCore {
@@ -267,45 +266,4 @@ bool RenderVideo::supportsAcceleratedRendering() const
return false;
}
-static const RenderBlock* rendererPlaceholder(const RenderObject* renderer)
-{
- RenderObject* parent = renderer->parent();
- if (!parent)
- return 0;
-
- RenderFullScreen* fullScreen = parent->isRenderFullScreen() ? toRenderFullScreen(parent) : 0;
- if (!fullScreen)
- return 0;
-
- return fullScreen->placeholder();
-}
-
-LayoutUnit RenderVideo::offsetLeft() const
-{
- if (const RenderBlock* block = rendererPlaceholder(this))
- return block->offsetLeft();
- return RenderMedia::offsetLeft();
-}
-
-LayoutUnit RenderVideo::offsetTop() const
-{
- if (const RenderBlock* block = rendererPlaceholder(this))
- return block->offsetTop();
- return RenderMedia::offsetTop();
-}
-
-LayoutUnit RenderVideo::offsetWidth() const
-{
- if (const RenderBlock* block = rendererPlaceholder(this))
- return block->offsetWidth();
- return RenderMedia::offsetWidth();
-}
-
-LayoutUnit RenderVideo::offsetHeight() const
-{
- if (const RenderBlock* block = rendererPlaceholder(this))
- return block->offsetHeight();
- return RenderMedia::offsetHeight();
-}
-
falken 2013/07/09 12:50:22 These were added in https://bugs.webkit.org/show_b
} // namespace WebCore
« Source/core/dom/FullscreenController.cpp ('K') | « Source/core/rendering/RenderVideo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698