DescriptionRemove duplication between TestRunner's fields and LayoutDumpFlags struct.
The current CL paves the way for 1) moving more test flags from
TestRunner's fields into LayoutDumpFlags and 2) replicating the
test flags when transferring to another renderer process (in addition
to using LayoutDumpFlags during a textual layout dump).
In a way, the current CL backpedals on some aspects of an earlier CL
(crrev.com/1589643003) which has introduced LayoutDumpFlags struct that
holds layout dump flags for the purpose of passing them to the browser
process (which can coordinate dumping across all frames). The
backpedaling is necessary because:
- Having LayoutDumpFlags is good for passing the flags to the browser
process (when having to do a layout dump spanning multiple renderers /
OOPIFs), but LayoutDumpFlags is also bad, because the same flags are
represented (in a slightly different way) in 2 places: in
LayoutDumpFlags struct and in TestRunner fields. This CL fixes this
by moving relevant fields of TestRunner into LayoutDumpFlags struct.
- The previous CL tried to be (unnecessarily :-/) smart and for example:
- consolidated |dump_child_frames_as_text|,
|dump_child_frames_as_markup| and |dump_child_frame_scroll_positions|
into |dump_child_frames| field.
- consolidated |dump_as_text|, |dump_as_markup| into a |main_dump_mode|
field with 3 possible states - text / markup / scroll positions.
The current CL backpedals on this and simply copies TestRunner's fields
into LayoutDumpFlags, because otherwise preserving all existing test
behavior is prooving to be really difficult.
BUG=587175
Committed: https://crrev.com/9b9d70ea6efc122e1957198be5e7bba8924efaad
Cr-Commit-Position: refs/heads/master@{#377712}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Just copy/move existing fields - quit trying to consolidate/tweak them enroute. #Patch Set 4 : More const-ref. #Patch Set 5 : Fixing a silly mistake in DumpLayout function. #Patch Set 6 : Fixing LayoutDumpFlags::dump_child_frames(). #Patch Set 7 : Initializing *all* fields of LayoutDumpFlags :-/. #Patch Set 8 : Rebasing... #
Total comments: 9
Patch Set 9 : Rebasing... #Patch Set 10 : Comment tweaks + moving forward declaration around. #Patch Set 11 : Rebasing... #Patch Set 12 : Added a constructor for LayoutDumpFlag that takes initial values of all fields. #Patch Set 13 : Despite LayoutDumpFlags constructor, we still need to set the flags in TestRunner::Reset. #Messages
Total messages: 30 (11 generated)
|