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

Unified Diff: components/test_runner/layout_dump_flags.cc

Issue 1715573002: Replicating LayoutDumpFlags across OOPIFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicating-pixel-dump-flag
Patch Set: Rebasing... Created 4 years, 9 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
Index: components/test_runner/layout_dump_flags.cc
diff --git a/components/test_runner/layout_dump_flags.cc b/components/test_runner/layout_dump_flags.cc
new file mode 100644
index 0000000000000000000000000000000000000000..67f1f45b17578e582adf142afdf5f7a8bd2a3de9
--- /dev/null
+++ b/components/test_runner/layout_dump_flags.cc
@@ -0,0 +1,32 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/test_runner/layout_dump_flags.h"
+
+namespace test_runner {
+
+LayoutDumpFlags::LayoutDumpFlags() {
+ Reset();
+}
+
+void LayoutDumpFlags::Reset() {
+ set_generate_pixel_results(true);
+
+ set_dump_as_text(false);
+ set_dump_child_frames_as_text(false);
+
+ set_dump_as_markup(false);
+ set_dump_child_frames_as_markup(false);
+
+ set_dump_child_frame_scroll_positions(false);
+
+ set_is_printing(false);
+
+ set_wait_until_done(false);
+
+ // No need to report the initial state - only the future delta is important.
+ tracked_dictionary().ResetChangeTracking();
+}
+
+} // namespace test_runner

Powered by Google App Engine
This is Rietveld 408576698