summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-11-15 19:11:51 -0800
committerNicolas Roard <nicolasroard@google.com>2011-11-15 19:11:51 -0800
commita8660794aef3191e012d11e47a18f58a89d2c3bb (patch)
treef8aea0dad0ba55974355e74efcf327ff7fb62e9b /Source/WebCore/platform
parent61a908361c8a96eeb70afdb5430e89845edb2bdd (diff)
downloadexternal_webkit-a8660794aef3191e012d11e47a18f58a89d2c3bb.zip
external_webkit-a8660794aef3191e012d11e47a18f58a89d2c3bb.tar.gz
external_webkit-a8660794aef3191e012d11e47a18f58a89d2c3bb.tar.bz2
Use the transformed clipping rect for media layers (flash plugin)
bug:5621574 Change-Id: I4e2925edc314872a628b81daffe4ab1be7fe366f
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r--Source/WebCore/platform/graphics/android/MediaLayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/MediaLayer.cpp b/Source/WebCore/platform/graphics/android/MediaLayer.cpp
index 7fa5ac2..0181892 100644
--- a/Source/WebCore/platform/graphics/android/MediaLayer.cpp
+++ b/Source/WebCore/platform/graphics/android/MediaLayer.cpp
@@ -68,7 +68,8 @@ MediaLayer::~MediaLayer()
bool MediaLayer::drawGL(GLWebViewState* glWebViewState, SkMatrix& matrix)
{
- TilesManager::instance()->shader()->clip(drawClip());
+ FloatRect clippingRect = TilesManager::instance()->shader()->rectInScreenCoord(drawClip());
+ TilesManager::instance()->shader()->clip(clippingRect);
// when the plugin gains focus webkit applies an outline to the
// widget, which causes the layer to expand to accommodate the