| Index: webkit/plugins/ppapi/ppapi_webplugin_impl.cc
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppapi_webplugin_impl.cc (revision 98865)
|
| +++ webkit/plugins/ppapi/ppapi_webplugin_impl.cc (working copy)
|
| @@ -118,7 +118,8 @@
|
| }
|
|
|
| void WebPluginImpl::paint(WebCanvas* canvas, const WebRect& rect) {
|
| - instance_->Paint(canvas, plugin_rect_, rect);
|
| + if (!instance_->IsFullscreenOrPending())
|
| + instance_->Paint(canvas, plugin_rect_, rect);
|
| }
|
|
|
| void WebPluginImpl::updateGeometry(
|
| @@ -127,7 +128,8 @@
|
| const WebVector<WebRect>& cut_outs_rects,
|
| bool is_visible) {
|
| plugin_rect_ = window_rect;
|
| - instance_->ViewChanged(plugin_rect_, clip_rect);
|
| + if (!instance_->IsFullscreenOrPending())
|
| + instance_->ViewChanged(plugin_rect_, clip_rect);
|
| }
|
|
|
| void WebPluginImpl::updateFocus(bool focused) {
|
| @@ -143,6 +145,8 @@
|
|
|
| bool WebPluginImpl::handleInputEvent(const WebKit::WebInputEvent& event,
|
| WebKit::WebCursorInfo& cursor_info) {
|
| + if (instance_->IsFullscreenOrPending())
|
| + return false;
|
| return instance_->HandleInputEvent(event, &cursor_info);
|
| }
|
|
|
|
|