Changeset 186586 in webkit
- Timestamp:
- Jul 9, 2015 12:01:49 AM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r186583 r186586 1 2015-07-09 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] Report the first paint after committing a load as a rendering progress event 4 https://bugs.webkit.org/show_bug.cgi?id=146765 5 6 Reviewed by Tim Horton. 7 8 * Shared/API/Cocoa/_WKRenderingProgressEvents.h: Added _WKRenderingProgressEventFirstPaint. 9 10 * UIProcess/API/Cocoa/WKWebView.mm: 11 (-[WKWebView _didCommitLayerTree:]): If this is the first layer tree commit since the load 12 was committed, and the delegate is observing _WKRenderingProgressEventFirstPaint, call 13 NavigationState::didFirstPaint. 14 15 * UIProcess/Cocoa/NavigationState.h: 16 * UIProcess/Cocoa/NavigationState.mm: 17 (WebKit::NavigationState::didFirstPaint): Added. Calls -_webView:renderingProgressDidChange: 18 with _WKRenderingProgressEventFirstPaint. 19 1 20 2015-07-08 Jinwoo Song <jinwoo7.song@samsung.com> 2 21 -
trunk/Source/WebKit2/Shared/API/Cocoa/_WKRenderingProgressEvents.h
r185880 r186586 34 34 _WKRenderingProgressEventReachedSessionRestorationRenderTreeSizeThreshold WK_ENUM_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) = 1 << 3, 35 35 _WKRenderingProgressEventFirstLayoutAfterSuppressedIncrementalRendering WK_ENUM_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) = 1 << 4, 36 _WKRenderingProgressEventFirstPaintAfterSuppressedIncrementalRendering WK_ENUM_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) = 1 << 5 36 _WKRenderingProgressEventFirstPaintAfterSuppressedIncrementalRendering WK_ENUM_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) = 1 << 5, 37 _WKRenderingProgressEventFirstPaint WK_ENUM_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA) = 1 << 6, 37 38 } WK_ENUM_AVAILABLE(10_10, 8_0); 38 39 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r186371 r186586 972 972 [_scrollView setContentOffset:[self _adjustedContentOffset:CGPointZero]]; 973 973 [self _updateVisibleContentRects]; 974 if (_observedRenderingProgressEvents & _WKRenderingProgressEventFirstPaint) 975 _navigationState->didFirstPaint(); 974 976 } 975 977 -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.h
r185877 r186586 73 73 void navigationGestureDidEnd(bool willNavigate, WebBackForwardListItem&); 74 74 void willRecordNavigationSnapshot(WebBackForwardListItem&); 75 76 void didFirstPaint(); 75 77 76 78 private: -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm
r186196 r186586 225 225 } 226 226 227 void NavigationState::didFirstPaint() 228 { 229 if (!m_navigationDelegateMethods.webViewRenderingProgressDidChange) 230 return; 231 232 auto navigationDelegate = m_navigationDelegate.get(); 233 if (!navigationDelegate) 234 return; 235 236 [static_cast<id <WKNavigationDelegatePrivate>>(navigationDelegate) _webView:m_webView renderingProgressDidChange:_WKRenderingProgressEventFirstPaint]; 237 } 238 227 239 NavigationState::NavigationClient::NavigationClient(NavigationState& navigationState) 228 240 : m_navigationState(navigationState)
Note: See TracChangeset
for help on using the changeset viewer.