Bug 136489 - Dump SimpleLineLayout info in showRenderTree() output
Summary: Dump SimpleLineLayout info in showRenderTree() output
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-09-03 11:43 PDT by Simon Fraser (smfr)
Modified: 2014-09-03 14:18 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.03 KB, patch)
2014-09-03 11:45 PDT, Simon Fraser (smfr)
zalan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2014-09-03 11:43:41 PDT
Dump SimpleLineLayout info in showRenderTree() output
Comment 1 Simon Fraser (smfr) 2014-09-03 11:45:04 PDT
Created attachment 237565 [details]
Patch
Comment 2 Simon Fraser (smfr) 2014-09-03 11:46:37 PDT
Sample output:

------- --        DIV RenderBlock  (0.00, 840.00) (741.00, 72.00) renderer->(0x600000161d40) node->(0x6580000c2a70)
------- --          RootInlineBox  (0.00, 0.00) (703.84, 18.00) (0x6580001201e0)
------- --            InlineTextBox  (0.00, 0.00) (703.84, 18.00) (0x6580000a3240) run(9, 119) "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore"
------- --          RootInlineBox  (0.00, 18.00) (729.18, 18.00) (0x658000120280)
------- --            InlineTextBox  (0.00, 18.00) (534.98, 18.00) (0x6580000a32a0) run(120, 201) "magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris "
------- --            InlineTextBox  (534.98, 18.00) (24.02, 18.00) (0x6580000a3300) run(0, 4) "nisi"
------- --            InlineTextBox  (559.00, 18.00) (170.18, 18.00) (0x6580000a3360) run(0, 25) " ut aliquip ex ea commodo"
------- --          RootInlineBox  (0.00, 36.00) (696.68, 18.00) (0x658000120820)
------- --            InlineTextBox  (0.00, 36.00) (696.68, 18.00) (0x6580000a33c0) run(26, 139) "consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
------- --          RootInlineBox  (0.00, 54.00) (694.03, 18.00) (0x658000120a00)
------- --            InlineTextBox  (0.00, 54.00) (694.03, 18.00) (0x6580000a3420) run(140, 250) "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
------- --          #text RenderText renderer->(0x6000000aa680) node->(0x6580000828a0) length->(201) "\n        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusm"...
------- --          B RenderInline renderer->(0x6000000c4130) node->(0x6580000c2ae0)
------- --            #text RenderText renderer->(0x6000000aac80) node->(0x658000082850) length->(4) "nisi"
------- --          #text RenderText renderer->(0x6000000aab00) node->(0x658000082800) length->(255) " ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in v"...
------- --        DIV RenderBlock  (0.00, 912.00) (741.00, 72.00) renderer->(0x600000161e00) node->(0x6580000c2b50)
------- --          SimpleLineLayout (4 lines, 4 runs) (0x658000082030)
------- --            run(9, 119) line 0 "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore"
------- --            run(120, 230) line 1 "magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo"
------- --            run(231, 344) line 2 "consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
------- --            run(345, 455) line 3 "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
------- --          #text RenderText renderer->(0x6000000aace0) node->(0x658000082760) length->(460) "\n        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusm"...
Comment 3 zalan 2014-09-03 11:50:28 PDT
Comment on attachment 237565 [details]
Patch

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

> Source/WebCore/rendering/SimpleLineLayoutFunctions.h:67
> +void showLineTreeForFlow(const RenderBlockFlow&, const Layout&, int depth);

showTextRunsForFlow()?
Comment 4 Simon Fraser (smfr) 2014-09-03 14:18:34 PDT
https://trac.webkit.org/r173226