Chromium Code Reviews| 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 |