Commit f071eb10 authored by jer.noble@apple.com's avatar jer.noble@apple.com

2011-03-26 Jer Noble <jer.noble@apple.com>

        Reviewed by Dan Bernstein.

        RenderMedia should obey the view's flattening bit.
        https://bugs.webkit.org/show_bug.cgi?id=57156

        Paint the current frame in software when the associated FrameView
        has its flattening bit set.

        * rendering/RenderVideo.cpp:
        (WebCore::RenderVideo::paintReplaced):

git-svn-id: svn://svn.chromium.org/blink/trunk@82051 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1b5950b5
2011-03-26 Jer Noble <jer.noble@apple.com>
Reviewed by Dan Bernstein.
RenderMedia should obey the view's flattening bit.
https://bugs.webkit.org/show_bug.cgi?id=57156
Paint the current frame in software when the associated FrameView
has its flattening bit set.
* rendering/RenderVideo.cpp:
(WebCore::RenderVideo::paintReplaced):
2011-03-26 Patrick Gansterer <paroga@webkit.org> 2011-03-26 Patrick Gansterer <paroga@webkit.org>
Unreviewed build fix for !ENABLE(DOM_STORAGE). Unreviewed build fix for !ENABLE(DOM_STORAGE).
...@@ -202,6 +202,8 @@ void RenderVideo::paintReplaced(PaintInfo& paintInfo, int tx, int ty) ...@@ -202,6 +202,8 @@ void RenderVideo::paintReplaced(PaintInfo& paintInfo, int tx, int ty)
if (displayingPoster) if (displayingPoster)
paintIntoRect(paintInfo.context, rect); paintIntoRect(paintInfo.context, rect);
else if (document()->view() && document()->view()->paintBehavior() & PaintBehaviorFlattenCompositingLayers)
mediaPlayer->paintCurrentFrameInContext(paintInfo.context, rect);
else else
mediaPlayer->paint(paintInfo.context, rect); mediaPlayer->paint(paintInfo.context, rect);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment