Bug 135101 - Add helper functions to dump the scrolling state tree from the debugger
Summary: Add helper functions to dump the scrolling state tree from the debugger
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-20 10:17 PDT by Simon Fraser (smfr)
Modified: 2014-07-21 11:28 PDT (History)
8 users (show)

See Also:


Attachments
Patch (2.96 KB, patch)
2014-07-20 10:18 PDT, Simon Fraser (smfr)
darin: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 (587.76 KB, application/zip)
2014-07-20 11:51 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2014-07-20 10:17:23 PDT
Add helper functions to dump the scrolling state tree from the debugger
Comment 1 Simon Fraser (smfr) 2014-07-20 10:18:17 PDT
Created attachment 235185 [details]
Patch
Comment 2 Darin Adler 2014-07-20 10:32:02 PDT
Comment on attachment 235185 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=235185&action=review

> Source/WebCore/page/scrolling/ScrollingStateTree.cpp:39
> +#ifndef NDEBUG
> +#include <wtf/Text/CString.h>
> +#endif

I think we should just include this unconditionally.

> Source/WebCore/page/scrolling/ScrollingStateTree.cpp:254
> +#ifndef NDEBUG
> +void showScrollingStateTree(const WebCore::ScrollingStateTree* tree)

Please add a blank line here.

> Source/WebCore/page/scrolling/ScrollingStateTree.cpp:257
> +    if (!tree)
> +        return;

Silent? Maybe print something for clarity?

> Source/WebCore/page/scrolling/ScrollingStateTree.cpp:259
> +    const WebCore::ScrollingStateNode* rootNode = tree->rootStateNode();

I would just do auto* here; the complete typename and const is utterly uninteresting.

> Source/WebCore/page/scrolling/ScrollingStateTree.cpp:272
> +    if (!node)
> +        return;

Silent? Maybe print something for clarity?

> Source/WebCore/page/scrolling/ScrollingStateTree.h:111
> +#ifndef NDEBUG
> +void showScrollingStateTree(const WebCore::ScrollingStateTree*);
> +void showScrollingStateTree(const WebCore::ScrollingStateNode*);
> +#endif

Does it really need to be in the header? Can’t we just put this at the top of the .cpp file?
Comment 3 Build Bot 2014-07-20 11:51:18 PDT
Comment on attachment 235185 [details]
Patch

Attachment 235185 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5735317537554432

New failing tests:
media/W3C/audio/networkState/networkState_initial.html
media/track/track-long-word-container-sizing.html
Comment 4 Build Bot 2014-07-20 11:51:20 PDT
Created attachment 235189 [details]
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-12  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 5 Simon Fraser (smfr) 2014-07-21 11:28:18 PDT
https://trac.webkit.org/r171307