| Index: components/test_runner/web_test_proxy.cc
|
| diff --git a/components/test_runner/web_test_proxy.cc b/components/test_runner/web_test_proxy.cc
|
| index b36312046b05f1e221f75b5433901207c4e5b73e..7bc243c74b7bd64c7fcdd6a38adcba8ed10ed460 100644
|
| --- a/components/test_runner/web_test_proxy.cc
|
| +++ b/components/test_runner/web_test_proxy.cc
|
| @@ -457,7 +457,9 @@ void WebTestProxyBase::ShowValidationMessage(
|
| base::UTF16ToUTF8(sub_message) + "\n");
|
| }
|
|
|
| -std::string WebTestProxyBase::CaptureTree(bool debug_render_tree) {
|
| +std::string WebTestProxyBase::CaptureTree(
|
| + bool debug_render_tree,
|
| + bool dump_line_box_trees) {
|
| bool should_dump_custom_text =
|
| test_interfaces_->GetTestRunner()->shouldDumpAsCustomText();
|
| bool should_dump_as_text =
|
| @@ -490,6 +492,8 @@ std::string WebTestProxyBase::CaptureTree(bool debug_render_tree) {
|
| layout_text_behavior |= blink::WebFrame::LayoutAsTextPrinting;
|
| if (debug_render_tree)
|
| layout_text_behavior |= blink::WebFrame::LayoutAsTextDebug;
|
| + if (dump_line_box_trees)
|
| + layout_text_behavior |= blink::WebFrame::LayoutAsTextWithLineTrees;
|
| data_utf8 = frame->layoutTreeAsText(layout_text_behavior).utf8();
|
| data_utf8 += DumpFrameScrollPosition(frame, recursive);
|
| }
|
|
|