Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: webkit/glue/webplugin_impl.cc

Issue 119410: Fix for the Layout test failures occuring as a result of the change to downlo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "Cursor.h" 7 #include "Cursor.h"
8 #include "Document.h" 8 #include "Document.h"
9 #include "DocumentLoader.h" 9 #include "DocumentLoader.h"
10 #include "Event.h" 10 #include "Event.h"
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 WebPluginResourceClient* resource_client = client_info.client; 1388 WebPluginResourceClient* resource_client = client_info.client;
1389 client_index = clients_.erase(client_index); 1389 client_index = clients_.erase(client_index);
1390 if (resource_client) 1390 if (resource_client)
1391 resource_client->DidFail(); 1391 resource_client->DidFail();
1392 } 1392 }
1393 1393
1394 // This needs to be called now and not in the destructor since the 1394 // This needs to be called now and not in the destructor since the
1395 // webframe_ might not be valid anymore. 1395 // webframe_ might not be valid anymore.
1396 webframe_->set_plugin_delegate(NULL); 1396 webframe_->set_plugin_delegate(NULL);
1397 webframe_ = NULL; 1397 webframe_ = NULL;
1398 method_factory_.RevokeAll();
1398 } 1399 }
1399 1400
1400 void WebPluginImpl::UpdateVisibility() { 1401 void WebPluginImpl::UpdateVisibility() {
1401 if (!window_) 1402 if (!window_)
1402 return; 1403 return;
1403 1404
1404 WebCore::Frame* frame = element_->document()->frame(); 1405 WebCore::Frame* frame = element_->document()->frame();
1405 WebFrameImpl* webframe = WebFrameImpl::FromFrame(frame); 1406 WebFrameImpl* webframe = WebFrameImpl::FromFrame(frame);
1406 WebViewImpl* webview = webframe->GetWebViewImpl(); 1407 WebViewImpl* webview = webframe->GetWebViewImpl();
1407 if (!webview->delegate()) 1408 if (!webview->delegate())
1408 return; 1409 return;
1409 1410
1410 WebPluginGeometry move; 1411 WebPluginGeometry move;
1411 move.window = window_; 1412 move.window = window_;
1412 move.window_rect = gfx::Rect(); 1413 move.window_rect = gfx::Rect();
1413 move.clip_rect = gfx::Rect(); 1414 move.clip_rect = gfx::Rect();
1414 move.rects_valid = false; 1415 move.rects_valid = false;
1415 move.visible = widget_->isVisible(); 1416 move.visible = widget_->isVisible();
1416 1417
1417 webview->delegate()->DidMove(webview, move); 1418 webview->delegate()->DidMove(webview, move);
1418 } 1419 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698