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

Issue 1755123004: Remove dump_line_box_trees and debug_render_tree from LayoutDumpFlags. (Closed)

Created:
4 years, 9 months ago by Łukasz Anforowicz
Modified:
4 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dump_line_box_trees and debug_render_tree from LayoutDumpFlags. LayoutDumpFlags::debug_render_tree was always set to false. LayoutDumpFlags::dump_line_box_trees was controlled by --dump-line-box-trees switch. I have not found any usage of this switch (searching chromium repo via web/codesearch [1] and manually searching the build repo [2] that contains trybot and fyibot scripts). Removing these flags is desirable because: - Replication of LayoutDumpFlags across OOPIFs [3] gets sligthly and unnecessarily more complicated when it has to take into account values coming from command-line switches. - Code removal is desirable in general (reduces maintenance burden). BUG=587175 [1] https://code.google.com/p/chromium/codesearch#chromium/src/content/shell/common/shell_switches.cc&q=%22dump-line-box-trees%22&sq=package:chromium&type=cs&l=33 [2] https://chromium.googlesource.com/chromium/tools/build.git [3] work-in-progress, 2 approaches being considered at crrev.com/1715573002 and crrev.com/1736353002. Committed: https://crrev.com/c76d857e4749bb13f8eeaf0a77d57e69338dc7f5 Cr-Commit-Position: refs/heads/master@{#379322}

Patch Set 1 #

Patch Set 2 : Adding const-ref enabled by the core changes. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -34 lines) Patch
M components/test_runner/layout_dump.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M components/test_runner/layout_dump_flags.h View 2 chunks +2 lines, -10 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 chunk +0 lines, -4 lines 2 comments Download
M content/shell/common/shell_messages.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/common/shell_switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/common/shell_switches.cc View 1 chunk +0 lines, -4 lines 1 comment Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 1 chunk +1 line, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (4 generated)
Łukasz Anforowicz
jochen@, could you please take a look? I can live with these 2 flags, but ...
4 years, 9 months ago (2016-03-03 17:33:27 UTC) #2
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/1755123004/diff/20001/content/shell/browser/shell_content_browser_client.cc File content/shell/browser/shell_content_browser_client.cc (left): https://codereview.chromium.org/1755123004/diff/20001/content/shell/browser/shell_content_browser_client.cc#oldcode237 content/shell/browser/shell_content_browser_client.cc:237: switches::kDumpLineBoxTrees)) { ugh, this should have been handled ...
4 years, 9 months ago (2016-03-04 12:33:36 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1755123004/diff/20001/content/shell/common/shell_switches.cc File content/shell/common/shell_switches.cc (left): https://codereview.chromium.org/1755123004/diff/20001/content/shell/common/shell_switches.cc#oldcode33 content/shell/common/shell_switches.cc:33: const char kDumpLineBoxTrees[] = "dump-line-box-trees"; maybe we should factor ...
4 years, 9 months ago (2016-03-04 12:34:14 UTC) #5
Łukasz Anforowicz
Thanks for reviewing. On 2016/03/04 12:34:14, jochen wrote: > https://codereview.chromium.org/1755123004/diff/20001/content/shell/common/shell_switches.cc > File content/shell/common/shell_switches.cc (left): > ...
4 years, 9 months ago (2016-03-04 17:40:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1755123004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1755123004/20001
4 years, 9 months ago (2016-03-04 17:51:48 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-04 18:59:14 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c76d857e4749bb13f8eeaf0a77d57e69338dc7f5 Cr-Commit-Position: refs/heads/master@{#379322}
4 years, 9 months ago (2016-03-04 19:00:45 UTC) #11
rhogan
On 2016/03/04 at 19:00:45, commit-bot wrote: > Patchset 2 (id:??) landed as https://crrev.com/c76d857e4749bb13f8eeaf0a77d57e69338dc7f5 > Cr-Commit-Position: ...
4 years, 8 months ago (2016-04-20 19:54:15 UTC) #12
Łukasz Anforowicz
On 2016/04/20 19:54:15, rhogan wrote: > On 2016/03/04 at 19:00:45, commit-bot wrote: > > Patchset ...
4 years, 8 months ago (2016-04-20 20:03:11 UTC) #13
rhogan
4 years, 7 months ago (2016-04-27 20:22:31 UTC) #14
Message was sent while issue was closed.
On 2016/04/20 at 20:03:11, lukasza wrote:
> On 2016/04/20 19:54:15, rhogan wrote:
> > On 2016/03/04 at 19:00:45, commit-bot wrote:
> > > Patchset 2 (id:??) landed as
> > https://crrev.com/c76d857e4749bb13f8eeaf0a77d57e69338dc7f5
> > > Cr-Commit-Position: refs/heads/master@{#379322}
> > 
> > Am disappointed to see the removal of --dump-line-box-trees - it was very
useful
> > when debugging line layout. Any chance of getting this back? Is there an
> > alternative?
> 
> Can you manually (temporarily, while debugging) add 
>     layout_text_behavior |=
>         WebFrameContentDumper::LayoutAsTextWithLineTrees;
> to DumpLayout function in your local components/test_runner/layout_dump.cc?

Thanks for the tip lukasza!

Powered by Google App Engine
This is Rietveld 408576698