Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Unified Diff: components/test_runner/web_test_proxy.cc

Issue 1185563002: Add --dump-line-box-trees parameter to content_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Add braces to if one-liners. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698