RESOLVED FIXED 171802
Simplify ScrollingStateNode::scrollingStateTreeAsText
https://bugs.webkit.org/show_bug.cgi?id=171802
Summary Simplify ScrollingStateNode::scrollingStateTreeAsText
Frédéric Wang (:fredw)
Reported 2017-05-08 05:28:31 PDT
Dumping of the scrolling state tree can be simplified using TextStream's helper functions.
Attachments
Patch (22.66 KB, patch)
2017-05-08 05:29 PDT, Frédéric Wang (:fredw)
no flags
Patch (22.30 KB, patch)
2017-05-08 05:36 PDT, Frédéric Wang (:fredw)
buildbot: commit-queue-
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.13 MB, application/zip)
2017-05-08 06:37 PDT, Build Bot
no flags
Archive of layout-test-results from ews122 for ios-simulator-wk2 (863.17 KB, application/zip)
2017-05-08 07:38 PDT, Build Bot
no flags
Patch (23.41 KB, patch)
2017-05-08 07:41 PDT, Frédéric Wang (:fredw)
no flags
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (1.14 MB, application/zip)
2017-05-08 08:41 PDT, Build Bot
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (11.22 MB, application/zip)
2017-05-08 09:16 PDT, Build Bot
no flags
Patch (67.87 KB, patch)
2017-05-08 09:53 PDT, Frédéric Wang (:fredw)
no flags
Frédéric Wang (:fredw)
Comment 1 2017-05-08 05:29:25 PDT
Build Bot
Comment 2 2017-05-08 05:31:54 PDT
Attachment 309353 [details] did not pass style-queue: ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:195: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:196: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:202: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:203: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:209: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:210: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:216: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] ERROR: Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp:217: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 8 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Frédéric Wang (:fredw)
Comment 3 2017-05-08 05:36:16 PDT
Build Bot
Comment 4 2017-05-08 06:37:03 PDT
Comment on attachment 309354 [details] Patch Attachment 309354 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3698673 Number of test failures exceeded the failure limit.
Build Bot
Comment 5 2017-05-08 06:37:04 PDT
Created attachment 309356 [details] Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 6 2017-05-08 07:38:41 PDT
Comment on attachment 309354 [details] Patch Attachment 309354 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3698733 New failing tests: fast/scrolling/ios/remove-scrolling-role.html
Build Bot
Comment 7 2017-05-08 07:38:43 PDT
Created attachment 309357 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Frédéric Wang (:fredw)
Comment 8 2017-05-08 07:41:49 PDT
Build Bot
Comment 9 2017-05-08 07:42:50 PDT
Attachment 309358 [details] did not pass style-queue: ERROR: Source/WebCore/page/scrolling/ScrollingStateNode.cpp:139: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/WebCore/page/scrolling/ScrollingStateNode.cpp:140: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/WebCore/page/scrolling/ScrollingStateNode.cpp:141: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/WebCore/page/scrolling/ScrollingStateNode.cpp:142: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/WebCore/page/scrolling/ScrollingStateNode.cpp:143: Tab found; better to use spaces [whitespace/tab] [1] Total errors found: 5 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 10 2017-05-08 08:41:04 PDT
Comment on attachment 309358 [details] Patch Attachment 309358 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3699111 Number of test failures exceeded the failure limit.
Build Bot
Comment 11 2017-05-08 08:41:05 PDT
Created attachment 309361 [details] Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 12 2017-05-08 09:16:03 PDT
Comment on attachment 309358 [details] Patch Attachment 309358 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3699178 New failing tests: fast/scrolling/ios/remove-scrolling-role.html
Build Bot
Comment 13 2017-05-08 09:16:04 PDT
Created attachment 309364 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Frédéric Wang (:fredw)
Comment 14 2017-05-08 09:53:39 PDT
Frédéric Wang (:fredw)
Comment 15 2017-05-08 10:06:24 PDT
@Simon: Can you please review this patch? I tried to keep the changes in the text output minimal, that's why ScrollingStateNode::dump does not use TextStream::GroupScope.
Simon Fraser (smfr)
Comment 16 2017-05-08 10:20:50 PDT
Comment on attachment 309367 [details] Patch Cool, thanks for doing this! Its was on my to-do list. We'll probably have to rebaseline some iOS results.
Frédéric Wang (:fredw)
Comment 17 2017-05-08 10:28:11 PDT
(In reply to Simon Fraser (smfr) from comment #16) > Comment on attachment 309367 [details] > Patch > > Cool, thanks for doing this! Its was on my to-do list. No problem. I plan to submit follow-up patches to improve scrolling (state) tree nodes... > We'll probably have to rebaseline some iOS results. Do you mean on platforms not tested by the commit queue? If so, I'll probably land this tomorrow, so that I can watch the buildbot.
WebKit Commit Bot
Comment 18 2017-05-08 22:25:50 PDT
Comment on attachment 309367 [details] Patch Clearing flags on attachment: 309367 Committed r216478: <http://trac.webkit.org/changeset/216478>
WebKit Commit Bot
Comment 19 2017-05-08 22:25:52 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.