Changeset 168562 in webkit


Ignore:
Timestamp:
May 9, 2014 6:10:06 PM (10 years ago)
Author:
Simon Fraser
Message:

Fix some issues with scrolling tree logging
https://bugs.webkit.org/show_bug.cgi?id=132762

Reviewed by Tim Horton.

Only dump viewport constraints when they change, and dump the primary layer on
scrolling nodes.

  • Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:

(WebKit::RemoteScrollingTreeTextStream::dump): Dump the primary layer.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r168560 r168562  
     12014-05-09  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix some issues with scrolling tree logging
     4        https://bugs.webkit.org/show_bug.cgi?id=132762
     5
     6        Reviewed by Tim Horton.
     7       
     8        Only dump viewport constraints when they change, and dump the primary layer on
     9        scrolling nodes.
     10       
     11        * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
     12        (WebKit::RemoteScrollingTreeTextStream::dump): Dump the primary layer.
     13
    1142014-05-09  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebKit2/Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp

    r168433 r168562  
    464464    dumpProperty(ts, "type", node.nodeType());
    465465
     466    if (!changedPropertiesOnly || node.hasChangedProperty(ScrollingStateNode::ScrollLayer))
     467        dumpProperty(ts, "layer", static_cast<GraphicsLayer::PlatformLayerID>(node.layer()));
     468   
    466469    switch (node.nodeType()) {
    467470    case FrameScrollingNode:
     
    537540    RemoteScrollingTreeTextStream& ts = *this;
    538541
    539     ts << node.viewportConstraints();
     542    if (!changedPropertiesOnly || node.hasChangedProperty(ScrollingStateFixedNode::ViewportConstraints))
     543        ts << node.viewportConstraints();
    540544}
    541545
     
    544548    RemoteScrollingTreeTextStream& ts = *this;
    545549
    546     ts << node.viewportConstraints();
     550    if (!changedPropertiesOnly || node.hasChangedProperty(ScrollingStateFixedNode::ViewportConstraints))
     551        ts << node.viewportConstraints();
    547552}
    548553
Note: See TracChangeset for help on using the changeset viewer.