Changeset 63893 in webkit


Ignore:
Timestamp:
Jul 22, 2010 8:03:51 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-07-22 Balazs Kelemen <kb@inf.u-szeged.hu>

Reviewed by Antonio Gomes.

Lazy cursor creation should be guarded by #if USE(LAZY_NATIVE_CURSOR) in WebKit2

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

  • Shared/WebCoreArgumentCoders.h:
  • UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::didReceiveMessage):
  • WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::setCursor):
Location:
trunk/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r63881 r63893  
     12010-07-22  Balazs Kelemen  <kb@inf.u-szeged.hu>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        Lazy cursor creation should be guarded by #if USE(LAZY_NATIVE_CURSOR) in WebKit2
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=42622
     8
     9        * Shared/WebCoreArgumentCoders.h:
     10        * UIProcess/WebPageProxy.cpp:
     11        (WebKit::WebPageProxy::didReceiveMessage):
     12        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
     13        (WebKit::WebChromeClient::setCursor):
     14
    1152010-07-22  Jon Honeycutt  <jhoneycutt@apple.com>
    216
  • trunk/WebKit2/Shared/WebCoreArgumentCoders.h

    r63339 r63893  
    112112};
    113113
     114#if USE(LAZY_NATIVE_CURSOR)
    114115template<> struct ArgumentCoder<WebCore::Cursor> {
    115116    static void encode(ArgumentEncoder* encoder, const WebCore::Cursor& cursor)
     
    135136    }
    136137};
     138#endif
    137139
    138140} // namespace CoreIPC
  • trunk/WebKit2/UIProcess/WebPageProxy.cpp

    r63843 r63893  
    556556        }
    557557        case WebPageProxyMessage::SetCursor: {
     558#if USE(LAZY_NATIVE_CURSOR)
    558559            Cursor cursor;
    559560            if (!arguments.decode(cursor))
    560561                return;
    561562            setCursor(cursor);
     563#endif
    562564            break;
    563565        }
  • trunk/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp

    r63850 r63893  
    436436void WebChromeClient::setCursor(const Cursor& cursor)
    437437{
     438#if USE(LAZY_NATIVE_CURSOR)
    438439    WebProcess::shared().connection()->send(WebPageProxyMessage::SetCursor, m_page->pageID(), CoreIPC::In(cursor));
     440#endif
    439441}
    440442
Note: See TracChangeset for help on using the changeset viewer.