From 5bce9d2d662d026fe8cfc8cc6fa28ea52635ceee Mon Sep 17 00:00:00 2001 From: "dglazkov@chromium.org" Date: Wed, 18 Nov 2009 21:27:21 +0000 Subject: Implement testRepaint and sweepHorizontally methods on layoutTestController. This involves implementing row-at-a-time and line-at-a-time repainting of the backing store. R=darin BUG=21510 TEST=LayoutTests/fast/repaint/shadow-multiple* Review URL: http://codereview.chromium.org/397027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32401 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/tools/test_shell/layout_test_controller.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'webkit/tools/test_shell/layout_test_controller.cc') diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index 86d4137..ecd92bb 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -53,6 +53,8 @@ bool LayoutTestController::accepts_editing_ = true; bool LayoutTestController::wait_until_done_ = false; bool LayoutTestController::can_open_windows_ = false; bool LayoutTestController::close_remaining_windows_ = true; +bool LayoutTestController::test_repaint_ = false; +bool LayoutTestController::sweep_horizontally_ = false; bool LayoutTestController::should_add_file_to_pasteboard_ = false; bool LayoutTestController::stop_provisional_frame_loads_ = false; LayoutTestController::WorkQueue LayoutTestController::work_queue_; @@ -438,6 +440,8 @@ void LayoutTestController::Reset() { accepts_editing_ = true; wait_until_done_ = false; can_open_windows_ = false; + test_repaint_ = false; + sweep_horizontally_ = false; should_add_file_to_pasteboard_ = false; stop_provisional_frame_loads_ = false; globalFlag_.Set(false); @@ -777,11 +781,13 @@ void LayoutTestController::display( void LayoutTestController::testRepaint( const CppArgumentList& args, CppVariant* result) { + test_repaint_ = true; result->SetNull(); } void LayoutTestController::repaintSweepHorizontally( const CppArgumentList& args, CppVariant* result) { + sweep_horizontally_ = true; result->SetNull(); } -- cgit v1.1