Changeset 209377 in webkit


Ignore:
Timestamp:
Dec 5, 2016 6:43:59 PM (7 years ago)
Author:
Simon Fraser
Message:

Minor reformat and renames in -didUpdateVisibleRect:
https://bugs.webkit.org/show_bug.cgi?id=165365

Reviewed by Dave Hyatt.

didUpdateVisibleRect:... has lots of parameters. Put one on each line.

Rename the rects to make it clear they are "content" rects (i.e. in document coordinates).

  • UIProcess/ios/WKContentView.h:
  • UIProcess/ios/WKContentView.mm:

(-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:obscuredInset:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:enclosedInScrollableAncestorView:]):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r209369 r209377  
     12016-12-03  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Minor reformat and renames in -didUpdateVisibleRect:
     4        https://bugs.webkit.org/show_bug.cgi?id=165365
     5
     6        Reviewed by Dave Hyatt.
     7       
     8        didUpdateVisibleRect:... has lots of parameters. Put one on each line.
     9
     10        Rename the rects to make it clear they are "content" rects (i.e. in document coordinates).
     11
     12        * UIProcess/ios/WKContentView.h:
     13        * UIProcess/ios/WKContentView.mm:
     14        (-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:obscuredInset:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:enclosedInScrollableAncestorView:]):
     15
    1162016-12-05  Tim Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/ios/WKContentView.h

    r200470 r209377  
    6767- (instancetype)initWithFrame:(CGRect)frame processPool:(WebKit::WebProcessPool&)processPool configuration:(Ref<API::PageConfiguration>&&)configuration webView:(WKWebView *)webView;
    6868
    69 - (void)didUpdateVisibleRect:(CGRect)visibleRect unobscuredRect:(CGRect)unobscuredRect
     69- (void)didUpdateVisibleRect:(CGRect)visibleRect
     70    unobscuredRect:(CGRect)unobscuredRect
    7071    unobscuredRectInScrollViewCoordinates:(CGRect)unobscuredRectInScrollViewCoordinates
    7172    obscuredInset:(CGSize)topInset
  • trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm

    r208916 r209377  
    363363}
    364364
    365 - (void)didUpdateVisibleRect:(CGRect)visibleRect unobscuredRect:(CGRect)unobscuredRect unobscuredRectInScrollViewCoordinates:(CGRect)unobscuredRectInScrollViewCoordinates
    366     obscuredInset:(CGSize)obscuredInset scale:(CGFloat)zoomScale minimumScale:(CGFloat)minimumScale inStableState:(BOOL)isStableState isChangingObscuredInsetsInteractively:(BOOL)isChangingObscuredInsetsInteractively enclosedInScrollableAncestorView:(BOOL)enclosedInScrollableAncestorView
     365- (void)didUpdateVisibleRect:(CGRect)visibleContentRect
     366    unobscuredRect:(CGRect)unobscuredContentRect
     367    unobscuredRectInScrollViewCoordinates:(CGRect)unobscuredRectInScrollViewCoordinates
     368    obscuredInset:(CGSize)obscuredInset
     369    scale:(CGFloat)zoomScale minimumScale:(CGFloat)minimumScale
     370    inStableState:(BOOL)isStableState
     371    isChangingObscuredInsetsInteractively:(BOOL)isChangingObscuredInsetsInteractively
     372    enclosedInScrollableAncestorView:(BOOL)enclosedInScrollableAncestorView
    367373{
    368374    auto drawingArea = _page->drawingArea();
     
    373379    HistoricalVelocityData::VelocityData velocityData;
    374380    if (!isStableState)
    375         velocityData = _historicalKinematicData.velocityForNewData(visibleRect.origin, zoomScale, timestamp);
     381        velocityData = _historicalKinematicData.velocityForNewData(visibleContentRect.origin, zoomScale, timestamp);
    376382    else
    377383        _historicalKinematicData.clear();
    378384
    379385    RemoteScrollingCoordinatorProxy* scrollingCoordinator = _page->scrollingCoordinatorProxy();
    380     FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredRect, _page->customFixedPositionRect(), zoomScale, WebPageProxy::UnobscuredRectConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled());
     386    FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredContentRect, _page->customFixedPositionRect(), zoomScale, WebPageProxy::UnobscuredRectConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled());
    381387
    382388    VisibleContentRectUpdateInfo visibleContentRectUpdateInfo(
    383         visibleRect,
    384         unobscuredRect,
     389        visibleContentRect,
     390        unobscuredContentRect,
    385391        unobscuredRectInScrollViewCoordinates,
    386392        fixedPositionRectForLayout,
Note: See TracChangeset for help on using the changeset viewer.