Reviewed by Darin
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Oct 2006 17:58:21 +0000 (17:58 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Oct 2006 17:58:21 +0000 (17:58 +0000)
commitb4cc00ae5c1955cca36ec2e2c7e057cd479c74d6
tree28035ae8253b44f00b017be0f8f7d2b566432dfe
parent727b10d67b9184d845942e5b357930ef8a5f40f9
    Reviewed by Darin

        - fixed <rdar://problem/4794935> setAcceptsMouseMovedEvents: is called for every layout,
          taking ~1% on the PLT test

        * WebView/WebHTMLView.m:
        (-[NSArray layoutToMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
        Don't call setAcceptsMouseMovedEvents: and WKSetNSWindowShouldPostEventNotifications() here
        because this is called too often.

        * WebView/WebView.m:
        (-[WebView viewWillMoveToWindow:]):
        Do call them here, because this is guaranteed to be called at least once for each window
        containing a webview, but isn't called too often. Also restructured this method a little.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/ChangeLog
WebKit/WebView/WebHTMLView.m
WebKit/WebView/WebView.m