Changeset 216778 in webkit


Ignore:
Timestamp:
May 12, 2017 1:09:25 PM (7 years ago)
Author:
Simon Fraser
Message:

Add some logging for layer tree commits, and resize and orientation change events
https://bugs.webkit.org/show_bug.cgi?id=172041

Reviewed by Tim Horton.

Add some logging that's useful during rotation investigations.

Source/WebCore:

  • dom/Document.cpp:

(WebCore::Document::orientationChanged):

  • page/FrameView.cpp:

(WebCore::FrameView::sendResizeEventIfNeeded):

Source/WebKit2:

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _didCommitLayerTree:]):

  • UIProcess/ios/WKContentView.mm:

(-[WKContentView _didCommitLayerTree:]):

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216775 r216778  
     12017-05-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Add some logging for layer tree commits, and resize and orientation change events
     4        https://bugs.webkit.org/show_bug.cgi?id=172041
     5
     6        Reviewed by Tim Horton.
     7
     8        Add some logging that's useful during rotation investigations.
     9
     10        * dom/Document.cpp:
     11        (WebCore::Document::orientationChanged):
     12        * page/FrameView.cpp:
     13        (WebCore::FrameView::sendResizeEventIfNeeded):
     14
    1152017-05-12  Romain Bellessort  <romain.bellessort@crf.canon.fr>
    216
  • trunk/Source/WebCore/dom/Document.cpp

    r216426 r216778  
    69716971void Document::orientationChanged(int orientation)
    69726972{
     6973    LOG(Events, "Document %p orientationChanged - orientation %d", this, orientation);
    69736974    dispatchWindowEvent(Event::create(eventNames().orientationchangeEvent, false, false));
    69746975    m_orientationNotifier.orientationChanged(orientation);
  • trunk/Source/WebCore/page/FrameView.cpp

    r216541 r216778  
    36263626    bool canSendResizeEventSynchronously = isMainFrame && !m_shouldAutoSize;
    36273627
     3628    LOG(Events, "FrameView %p sendResizeEventIfNeeded sending resize event, size %dx%d (canSendResizeEventSynchronously %d)", this, currentSize.width(), currentSize.height(), canSendResizeEventSynchronously);
     3629
    36283630    Ref<Event> resizeEvent = Event::create(eventNames().resizeEvent, false, false);
    36293631    if (canSendResizeEventSynchronously)
  • trunk/Source/WebKit2/ChangeLog

    r216774 r216778  
     12017-05-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Add some logging for layer tree commits, and resize and orientation change events
     4        https://bugs.webkit.org/show_bug.cgi?id=172041
     5
     6        Reviewed by Tim Horton.
     7
     8        Add some logging that's useful during rotation investigations.
     9
     10        * UIProcess/API/Cocoa/WKWebView.mm:
     11        (-[WKWebView _didCommitLayerTree:]):
     12        * UIProcess/ios/WKContentView.mm:
     13        (-[WKContentView _didCommitLayerTree:]):
     14
    1152017-05-12  Andy Estes  <aestes@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r216704 r216778  
    14681468    if (![self usesStandardContentView])
    14691469        return;
     1470
     1471    LOG_WITH_STREAM(VisibleRects, stream << "-[WKWebView _didCommitLayerTree:] transactionID " <<  layerTreeTransaction.transactionID() << " _dynamicViewportUpdateMode " << (int)_dynamicViewportUpdateMode);
    14701472
    14711473    if (_dynamicViewportUpdateMode != DynamicViewportUpdateMode::NotResizing) {
  • trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm

    r216352 r216778  
    560560    CGRect contentBounds = { scrollOrigin, contentsSize };
    561561
     562    LOG_WITH_STREAM(VisibleRects, stream << "-[WKContentView _didCommitLayerTree:] transactionID " <<  layerTreeTransaction.transactionID() << " contentBounds " << FloatRect(contentBounds));
     563
    562564    BOOL boundsChanged = !CGRectEqualToRect([self bounds], contentBounds);
    563565    if (boundsChanged)
Note: See TracChangeset for help on using the changeset viewer.