Changeset 83090 in webkit


Ignore:
Timestamp:
Apr 6, 2011 1:29:22 PM (13 years ago)
Author:
kevino@webkit.org
Message:

Reviewed by Kevin Ollivier.

[wx] Fix cursor handling so that we always call the chrome to set it.

https://bugs.webkit.org/show_bug.cgi?id=57972

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83087 r83090  
     12011-04-06  Malcolm MacLeod  <malcolm.macleod@tshwanedje.com>
     2
     3        Reviewed by Kevin Ollivier.
     4
     5        [wx] Fix cursor handling so that we always call the chrome to set it.
     6       
     7        https://bugs.webkit.org/show_bug.cgi?id=57972
     8
     9        * platform/wx/WidgetWx.cpp:
     10        (WebCore::Widget::setCursor):
     11
    1122011-04-06  David Hyatt  <hyatt@apple.com>
    213
  • trunk/Source/WebCore/platform/wx/WidgetWx.cpp

    r78852 r83090  
    2828#include "Cursor.h"
    2929#include "GraphicsContext.h"
     30#include "HostWindow.h"
    3031#include "IntRect.h"
    3132#include "NotImplemented.h"
     33#include "ScrollView.h"
    3234
    3335#include <wx/defs.h>
     
    5557void Widget::setCursor(const Cursor& cursor)
    5658{
    57     if (platformWidget() && cursor.impl())
    58         platformWidget()->SetCursor(*cursor.impl());
     59    ScrollView* view = root();
     60    if (!view)
     61        return;
     62    view->hostWindow()->setCursor(cursor);
    5963}
    6064
  • trunk/Source/WebKit/wx/ChangeLog

    r82952 r83090  
     12011-04-06  Malcolm MacLeod  <malcolm.macleod@tshwanedje.com>
     2
     3        Reviewed by Kevin Ollivier.
     4
     5        [wx] Fix cursor handling so that we always call the chrome to set it.
     6       
     7        https://bugs.webkit.org/show_bug.cgi?id=57972
     8
     9        * WebKitSupport/ChromeClientWx.cpp:
     10        (WebCore::ChromeClientWx::setCursor):
     11
    1122011-04-04  MORITA Hajime  <morrita@google.com>
    213
  • trunk/Source/WebKit/wx/WebKitSupport/ChromeClientWx.cpp

    r80279 r83090  
    461461}
    462462
    463 void ChromeClientWx::setCursor(const Cursor&)
    464 {
    465     notImplemented();
     463void ChromeClientWx::setCursor(const Cursor& cursor)
     464{
     465    if (m_webView)
     466        m_webView->SetCursor(*cursor.impl());
    466467}
    467468
Note: See TracChangeset for help on using the changeset viewer.