Changeset 230512 in webkit


Ignore:
Timestamp:
Apr 10, 2018 7:49:10 PM (6 years ago)
Author:
Brent Fulgham
Message:

Unreviewed follow-up to r230468.

Switch some RELEASE_ASSERTs in hot codepaths to normal DEBUG asserts.

Source/WebCore:

  • page/mac/EventHandlerMac.mm:

(WebCore::lastEventIsMouseUp):
(WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):

  • platform/mac/EventLoopMac.mm:

(WebCore::EventLoop::cycle):

Source/WebKit:

  • UIProcess/mac/PageClientImplMac.mm:

(WebKit::PageClientImpl::isViewWindowActive):
(WebKit::PageClientImpl::setCursor):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r230511 r230512  
     12018-04-10  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Unreviewed follow-up to r230468.
     4
     5        Switch some RELEASE_ASSERTs in hot codepaths to normal DEBUG asserts.
     6
     7        * page/mac/EventHandlerMac.mm:
     8        (WebCore::lastEventIsMouseUp):
     9        (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
     10        * platform/mac/EventLoopMac.mm:
     11        (WebCore::EventLoop::cycle):
     12
    1132018-04-10  Wenson Hsieh  <wenson_hsieh@apple.com>
    214
  • trunk/Source/WebCore/page/mac/EventHandlerMac.mm

    r230468 r230512  
    202202
    203203    ASSERT([NSApp isRunning]);
    204     RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
     204    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
    205205
    206206    BEGIN_BLOCK_OBJC_EXCEPTIONS;
     
    573573        return;
    574574
    575     RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
     575    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
    576576
    577577    BEGIN_BLOCK_OBJC_EXCEPTIONS;
  • trunk/Source/WebCore/platform/mac/EventLoopMac.mm

    r230468 r230512  
    4040        return;
    4141    }
    42     RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
     42    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
    4343#endif
    4444    [NSApp setWindowsNeedUpdate:YES];
  • trunk/Source/WebKit/ChangeLog

    r230509 r230512  
     12018-04-10  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Unreviewed follow-up to r230468.
     4
     5        Switch some RELEASE_ASSERTs in hot codepaths to normal DEBUG asserts.
     6
     7        * UIProcess/mac/PageClientImplMac.mm:
     8        (WebKit::PageClientImpl::isViewWindowActive):
     9        (WebKit::PageClientImpl::setCursor):
     10
    1112018-04-10  Fujii Hironori  <Hironori.Fujii@sony.com>
    212
  • trunk/Source/WebKit/UIProcess/mac/PageClientImplMac.mm

    r230468 r230512  
    162162bool PageClientImpl::isViewWindowActive()
    163163{
    164     RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
     164    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
    165165    NSWindow *activeViewWindow = activeWindow();
    166166    return activeViewWindow.isKeyWindow || [NSApp keyWindow] == activeViewWindow;
     
    293293void PageClientImpl::setCursor(const WebCore::Cursor& cursor)
    294294{
    295     RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
     295    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
    296296    // FIXME: Would be nice to share this code with WebKit1's WebChromeClient.
    297297
Note: See TracChangeset for help on using the changeset viewer.