Changeset 200636 in webkit
- Timestamp:
- May 10, 2016, 12:31:22 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
- 2 moved
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/scrolling/ios/remove-scrolling-role-expected.txt (moved) (moved from trunk/LayoutTests/platform/ios-simulator-wk2/scrolling/remove-scrolling-role-expected.txt ) (1 diff)
-
LayoutTests/fast/scrolling/ios/remove-scrolling-role.html (moved) (moved from trunk/LayoutTests/platform/ios-simulator-wk2/scrolling/remove-scrolling-role.html )
-
LayoutTests/platform/ios-simulator-wk2/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateFixedNode.cpp (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateFixedNode.h (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.cpp (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.h (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateNode.cpp (modified) (3 diffs)
-
Source/WebCore/page/scrolling/ScrollingStateNode.h (modified) (2 diffs)
-
Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.cpp (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.h (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateStickyNode.cpp (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingStateStickyNode.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r200635 r200636 1 2016-05-10 Simon Fraser <simon.fraser@apple.com> 2 3 Fix scrolling tree dumping 4 https://bugs.webkit.org/show_bug.cgi?id=157529 5 6 Reviewed by Tim Horton. 7 8 * fast/scrolling/ios/remove-scrolling-role-expected.txt: Renamed from LayoutTests/platform/ios-simulator-wk2/scrolling/remove-scrolling-role-expected.txt. 9 * fast/scrolling/ios/remove-scrolling-role.html: Renamed from LayoutTests/platform/ios-simulator-wk2/scrolling/remove-scrolling-role.html. 10 * platform/ios-simulator-wk2/TestExpectations: 11 1 12 2016-05-10 Simon Fraser <simon.fraser@apple.com> 2 13 -
trunk/LayoutTests/fast/scrolling/ios/remove-scrolling-role-expected.txt
r200635 r200636 6 6 (scrollable area size 300 400) 7 7 (contents size 300 2000) 8 (scrolled contents layer 22)9 8 ) 10 9 ) -
trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations
r200635 r200636 1665 1665 http/tests/navigation/postredirect-basic.html [ Failure ] 1666 1666 http/tests/navigation/postredirect-goback1.html [ Failure ] 1667 platform/ios-simulator-wk2/scrolling/remove-scrolling-role.html [ Failure ] 1667 1668 1668 platform/ios-simulator/ios/fast/text/underline-scaling.html [ Failure ] 1669 1669 compositing/masks/compositing-clip-path-on-subpixel-position.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r200633 r200636 1 2016-05-10 Simon Fraser <simon.fraser@apple.com> 2 3 Fix scrolling tree dumping 4 https://bugs.webkit.org/show_bug.cgi?id=157529 5 6 Reviewed by Tim Horton. 7 8 Scrolling tree dumps cannot contain layerIDs because they are not stable between 9 runs. Fix by adding ScrollingStateTreeAsTextBehavior flags, and not dumping 10 the layerID for tests. 11 12 Sadly RemoteScrollingCoordinatorTransaction has a lot of duplicated code for dumping 13 the scrolling state tree, which should be converted to dumpProperties() at some point. 14 15 Fix the one test that suffered from this problem, and unskip it. 16 17 Test: fast/scrolling/ios/remove-scrolling-role.html 18 19 * page/scrolling/ScrollingStateFixedNode.cpp: 20 (WebCore::ScrollingStateFixedNode::dumpProperties): 21 * page/scrolling/ScrollingStateFixedNode.h: 22 * page/scrolling/ScrollingStateFrameScrollingNode.cpp: 23 (WebCore::ScrollingStateFrameScrollingNode::dumpProperties): 24 * page/scrolling/ScrollingStateFrameScrollingNode.h: 25 * page/scrolling/ScrollingStateNode.cpp: 26 (WebCore::ScrollingStateNode::dump): 27 (WebCore::ScrollingStateNode::scrollingStateTreeAsText): 28 * page/scrolling/ScrollingStateNode.h: 29 * page/scrolling/ScrollingStateOverflowScrollingNode.cpp: 30 (WebCore::ScrollingStateOverflowScrollingNode::dumpProperties): 31 * page/scrolling/ScrollingStateOverflowScrollingNode.h: 32 * page/scrolling/ScrollingStateScrollingNode.cpp: 33 (WebCore::ScrollingStateScrollingNode::dumpProperties): 34 * page/scrolling/ScrollingStateScrollingNode.h: 35 * page/scrolling/ScrollingStateStickyNode.cpp: 36 (WebCore::ScrollingStateStickyNode::dumpProperties): 37 * page/scrolling/ScrollingStateStickyNode.h: 38 1 39 2016-05-10 Csaba Osztrogonác <ossy@webkit.org> 2 40 -
trunk/Source/WebCore/page/scrolling/ScrollingStateFixedNode.cpp
r184066 r200636 76 76 } 77 77 78 void ScrollingStateFixedNode::dumpProperties(TextStream& ts, int indent ) const78 void ScrollingStateFixedNode::dumpProperties(TextStream& ts, int indent, ScrollingStateTreeAsTextBehavior) const 79 79 { 80 80 ts << "(" << "Fixed node" << "\n"; -
trunk/Source/WebCore/page/scrolling/ScrollingStateFixedNode.h
r197563 r200636 59 59 void syncLayerPositionForViewportRect(const LayoutRect& viewportRect) override; 60 60 61 void dumpProperties(TextStream&, int indent ) const override;61 void dumpProperties(TextStream&, int indent, ScrollingStateTreeAsTextBehavior) const override; 62 62 63 63 FixedPositionViewportConstraints m_constraints; -
trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.cpp
r198078 r200636 222 222 #endif 223 223 224 void ScrollingStateFrameScrollingNode::dumpProperties(TextStream& ts, int indent ) const224 void ScrollingStateFrameScrollingNode::dumpProperties(TextStream& ts, int indent, ScrollingStateTreeAsTextBehavior behavior) const 225 225 { 226 226 ts << "(Frame scrolling node" << "\n"; 227 227 228 ScrollingStateScrollingNode::dumpProperties(ts, indent );228 ScrollingStateScrollingNode::dumpProperties(ts, indent, behavior); 229 229 230 230 if (m_frameScaleFactor != 1) { -
trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.h
r198078 r200636 120 120 void setScrollerImpsFromScrollbars(Scrollbar* verticalScrollbar, Scrollbar* horizontalScrollbar); 121 121 122 void dumpProperties(TextStream&, int indent ) const override;122 void dumpProperties(TextStream&, int indent, ScrollingStateTreeAsTextBehavior) const override; 123 123 124 124 private: -
trunk/Source/WebCore/page/scrolling/ScrollingStateNode.cpp
r180493 r200636 113 113 } 114 114 115 void ScrollingStateNode::dump(TextStream& ts, int indent ) const115 void ScrollingStateNode::dump(TextStream& ts, int indent, ScrollingStateTreeAsTextBehavior behavior) const 116 116 { 117 117 writeIndent(ts, indent); 118 dumpProperties(ts, indent );118 dumpProperties(ts, indent, behavior); 119 119 120 120 if (m_children) { … … 123 123 124 124 for (auto& child : *m_children) 125 child->dump(ts, indent + 2 );125 child->dump(ts, indent + 2, behavior); 126 126 writeIndent(ts, indent + 1); 127 127 ts << ")\n"; … … 136 136 TextStream ts; 137 137 138 dump(ts, 0 );138 dump(ts, 0, ScrollingStateTreeAsTextBehaviorNormal); 139 139 return ts.release(); 140 140 } -
trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h
r184066 r200636 41 41 class TextStream; 42 42 43 enum ScrollingStateTreeAsTextBehaviorFlags { 44 ScrollingStateTreeAsTextBehaviorNormal = 0, 45 ScrollingStateTreeAsTextBehaviorIncludeLayerIDs = 1 << 0, 46 ScrollingStateTreeAsTextBehaviorDebug = ScrollingStateTreeAsTextBehaviorIncludeLayerIDs 47 }; 48 typedef unsigned ScrollingStateTreeAsTextBehavior; 49 43 50 // Used to allow ScrollingStateNodes to refer to layers in various contexts: 44 51 // a) Async scrolling, main thread: ScrollingStateNode holds onto a GraphicsLayer, and uses m_layerID … … 239 246 240 247 private: 241 void dump(TextStream&, int indent ) const;242 243 virtual void dumpProperties(TextStream&, int indent ) const = 0;248 void dump(TextStream&, int indent, ScrollingStateTreeAsTextBehavior) const; 249 250 virtual void dumpProperties(TextStream&, int indent, ScrollingStateTreeAsTextBehavior) const = 0; 244 251 245 252 const ScrollingNodeType m_nodeType; -
trunk/Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.cpp
r184066 r200636 69 69 } 70 70 71 void ScrollingStateOverflowScrollingNode::dumpProperties(TextStream& ts, int indent ) const71 void ScrollingStateOverflowScrollingNode::dumpProperties(TextStream& ts, int indent, ScrollingStateTreeAsTextBehavior behavior) const 72 72 { 73 73 ts << "(" << "Overflow scrolling node" << "\n"; 74 74 75 ScrollingStateScrollingNode::dumpProperties(ts, indent );75 ScrollingStateScrollingNode::dumpProperties(ts, indent, behavior); 76 76 77 if ( m_scrolledContentsLayer.layerID()) {77 if ((behavior & ScrollingStateTreeAsTextBehaviorIncludeLayerIDs) && m_scrolledContentsLayer.layerID()) { 78 78 writeIndent(ts, indent + 1); 79 79 ts << "(scrolled contents layer " << m_scrolledContentsLayer.layerID() << ")\n"; -
trunk/Source/WebCore/page/scrolling/ScrollingStateOverflowScrollingNode.h
r197563 r200636 49 49 WEBCORE_EXPORT void setScrolledContentsLayer(const LayerRepresentation&); 50 50 51 void dumpProperties(TextStream&, int indent ) const override;51 void dumpProperties(TextStream&, int indent, ScrollingStateTreeAsTextBehavior) const override; 52 52 53 53 private: -
trunk/Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp
r185762 r200636 169 169 } 170 170 171 void ScrollingStateScrollingNode::dumpProperties(TextStream& ts, int indent ) const171 void ScrollingStateScrollingNode::dumpProperties(TextStream& ts, int indent, ScrollingStateTreeAsTextBehavior) const 172 172 { 173 173 if (m_scrollPosition != FloatPoint()) { -
trunk/Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h
r197563 r200636 96 96 WEBCORE_EXPORT void setExpectsWheelEventTestTrigger(bool); 97 97 98 void dumpProperties(TextStream&, int indent) const override;99 100 98 protected: 101 99 ScrollingStateScrollingNode(ScrollingStateTree&, ScrollingNodeType, ScrollingNodeID); 102 100 ScrollingStateScrollingNode(const ScrollingStateScrollingNode&, ScrollingStateTree&); 101 102 void dumpProperties(TextStream&, int indent, ScrollingStateTreeAsTextBehavior) const override; 103 103 104 104 private: -
trunk/Source/WebCore/page/scrolling/ScrollingStateStickyNode.cpp
r184066 r200636 76 76 } 77 77 78 void ScrollingStateStickyNode::dumpProperties(TextStream& ts, int indent ) const78 void ScrollingStateStickyNode::dumpProperties(TextStream& ts, int indent, ScrollingStateTreeAsTextBehavior) const 79 79 { 80 80 ts << "(" << "Sticky node" << "\n"; -
trunk/Source/WebCore/page/scrolling/ScrollingStateStickyNode.h
r197563 r200636 59 59 void syncLayerPositionForViewportRect(const LayoutRect& viewportRect) override; 60 60 61 void dumpProperties(TextStream&, int indent ) const override;61 void dumpProperties(TextStream&, int indent, ScrollingStateTreeAsTextBehavior) const override; 62 62 63 63 StickyPositionViewportConstraints m_constraints;
Note:
See TracChangeset
for help on using the changeset viewer.