OSDN Git Service

ensure plugins draw correctly even when they have been given focus.
authorDerek Sollenberger <djsollen@google.com>
Thu, 3 Mar 2011 20:13:18 +0000 (15:13 -0500)
committerDerek Sollenberger <djsollen@google.com>
Thu, 3 Mar 2011 21:51:31 +0000 (16:51 -0500)
commit68a3ee86577b9e75d6bd88c49c86989a5c3e83cb
tree85a1db984d5c400fd1b755597dbda212090a3a17
parenta9f4668988e6d40d01ad07acb702d6fe71d4a5f5
ensure plugins draw correctly even when they have been given focus.

The initial attempt at fixing this bug was to modify the clip, but
this was not correct and only fixed cases where the plugin was on
the left edge of the screen. This CL properly adjusts the plugin's
boundaries to make sure the content is drawn in the appropriate
position.

bug: 3477581
Change-Id: I5958228a93fa5600cd7e24ed9e7e1e26f6b241bc
WebCore/platform/graphics/android/LayerAndroid.cpp
WebCore/platform/graphics/android/MediaLayer.cpp
WebCore/platform/graphics/android/MediaTexture.cpp
WebCore/platform/graphics/android/MediaTexture.h
WebCore/platform/graphics/android/ShaderProgram.cpp