Changeset 163836 in webkit


Ignore:
Timestamp:
Feb 10, 2014 4:24:55 PM (10 years ago)
Author:
Simon Fraser
Message:

Put a delegatesScrolling flag on WebPageProxy so that the UI process knows when scrolling is delegated
https://bugs.webkit.org/show_bug.cgi?id=128429

Reviewed by Sam Weinig.

Add delegatesScrolling() which defaults to false, but is set to true for iOS
by WKContentView.

  • UIProcess/API/ios/WKContentView.mm:

(-[WKContentView initWithFrame:configuration:]):
(-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::WebPageProxy):

  • UIProcess/WebPageProxy.h:

(WebKit::WebPageProxy::setDelegatesScrolling):
(WebKit::WebPageProxy::delegatesScrolling):

Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r163821 r163836  
     12014-02-10  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Put a delegatesScrolling flag on WebPageProxy so that the UI process knows when scrolling is delegated
     4        https://bugs.webkit.org/show_bug.cgi?id=128429
     5
     6        Reviewed by Sam Weinig.
     7       
     8        Add delegatesScrolling() which defaults to false, but is set to true for iOS
     9        by WKContentView.
     10
     11        * UIProcess/API/ios/WKContentView.mm:
     12        (-[WKContentView initWithFrame:configuration:]):
     13        (-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
     14        * UIProcess/WebPageProxy.cpp:
     15        (WebKit::WebPageProxy::WebPageProxy):
     16        * UIProcess/WebPageProxy.h:
     17        (WebKit::WebPageProxy::setDelegatesScrolling):
     18        (WebKit::WebPageProxy::delegatesScrolling):
     19
    1202014-02-10  Gavin Barraclough  <barraclough@apple.com>
    221
  • trunk/Source/WebKit2/UIProcess/API/ios/WKContentView.mm

    r163683 r163836  
    112112    _page->setIntrinsicDeviceScaleFactor([UIScreen mainScreen].scale);
    113113    _page->setUseFixedLayout(true);
     114    _page->setDelegatesScrolling(true);
    114115
    115116    WebContext::statistics().wkViewCount++;
     
    264265    _page->setIntrinsicDeviceScaleFactor([UIScreen mainScreen].scale);
    265266    _page->setUseFixedLayout(true);
     267    _page->setDelegatesScrolling(true);
    266268
    267269    WebContext::statistics().wkViewCount++;
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r163821 r163836  
    310310    , m_hasSpellDocumentTag(false)
    311311    , m_pendingLearnOrIgnoreWordMessageCount(0)
     312    , m_delegatesScrolling(false)
    312313    , m_mainFrameHasHorizontalScrollbar(false)
    313314    , m_mainFrameHasVerticalScrollbar(false)
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r163821 r163836  
    437437    bool canScrollView();
    438438    void scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset);
     439   
     440    void setDelegatesScrolling(bool delegatesScrolling) { m_delegatesScrolling = delegatesScrolling; }
     441    bool delegatesScrolling() const { return m_delegatesScrolling; }
    439442
    440443    enum class WantsReplyOrNot { DoesNotWantReply, DoesWantReply };
     
    13671370
    13681371    PageLoadState m_pageLoadState;
     1372   
     1373    bool m_delegatesScrolling;
    13691374
    13701375    bool m_mainFrameHasHorizontalScrollbar;
Note: See TracChangeset for help on using the changeset viewer.