summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-05 21:10:34 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-05 21:10:34 +0000
commit2d1bfdc15b5702bb9917ecf8bc0b1739dd9d1cc8 (patch)
treec1a705ddbc63a6c6a6fbc02270392e7fcd4f8455
parentd0b526daca9e589fa9e417d5533a0bd8aa47ca27 (diff)
downloadchromium_src-2d1bfdc15b5702bb9917ecf8bc0b1739dd9d1cc8.zip
chromium_src-2d1bfdc15b5702bb9917ecf8bc0b1739dd9d1cc8.tar.gz
chromium_src-2d1bfdc15b5702bb9917ecf8bc0b1739dd9d1cc8.tar.bz2
Fix the cursor not locked while resizing window.
BUG=145815 Review URL: https://chromiumcodereview.appspot.com/10912083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155021 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/browser/renderer_host/render_widget_host_view_aura.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index cf0d6be..dd25b2e 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1521,7 +1521,10 @@ void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() {
if (is_loading_)
cursor = ui::kCursorPointer;
- root_window->SetCursor(cursor);
+ aura::client::CursorClient* cursor_client =
+ aura::client::GetCursorClient(root_window);
+ if (cursor_client)
+ cursor_client->SetCursor(cursor);
}
ui::InputMethod* RenderWidgetHostViewAura::GetInputMethod() const {