Changeset 209377 in webkit
- Timestamp:
- Dec 5, 2016 6:43:59 PM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r209369 r209377 1 2016-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 1 16 2016-12-05 Tim Horton <timothy_horton@apple.com> 2 17 -
trunk/Source/WebKit2/UIProcess/ios/WKContentView.h
r200470 r209377 67 67 - (instancetype)initWithFrame:(CGRect)frame processPool:(WebKit::WebProcessPool&)processPool configuration:(Ref<API::PageConfiguration>&&)configuration webView:(WKWebView *)webView; 68 68 69 - (void)didUpdateVisibleRect:(CGRect)visibleRect unobscuredRect:(CGRect)unobscuredRect 69 - (void)didUpdateVisibleRect:(CGRect)visibleRect 70 unobscuredRect:(CGRect)unobscuredRect 70 71 unobscuredRectInScrollViewCoordinates:(CGRect)unobscuredRectInScrollViewCoordinates 71 72 obscuredInset:(CGSize)topInset -
trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm
r208916 r209377 363 363 } 364 364 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 367 373 { 368 374 auto drawingArea = _page->drawingArea(); … … 373 379 HistoricalVelocityData::VelocityData velocityData; 374 380 if (!isStableState) 375 velocityData = _historicalKinematicData.velocityForNewData(visible Rect.origin, zoomScale, timestamp);381 velocityData = _historicalKinematicData.velocityForNewData(visibleContentRect.origin, zoomScale, timestamp); 376 382 else 377 383 _historicalKinematicData.clear(); 378 384 379 385 RemoteScrollingCoordinatorProxy* scrollingCoordinator = _page->scrollingCoordinatorProxy(); 380 FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscured Rect, _page->customFixedPositionRect(), zoomScale, WebPageProxy::UnobscuredRectConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled());386 FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredContentRect, _page->customFixedPositionRect(), zoomScale, WebPageProxy::UnobscuredRectConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled()); 381 387 382 388 VisibleContentRectUpdateInfo visibleContentRectUpdateInfo( 383 visible Rect,384 unobscured Rect,389 visibleContentRect, 390 unobscuredContentRect, 385 391 unobscuredRectInScrollViewCoordinates, 386 392 fixedPositionRectForLayout,
Note: See TracChangeset
for help on using the changeset viewer.