diff options
author | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 21:27:21 +0000 |
---|---|---|
committer | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-18 21:27:21 +0000 |
commit | 5bce9d2d662d026fe8cfc8cc6fa28ea52635ceee (patch) | |
tree | 3bf4921266baa4f0e804d0167b3d833db2645b17 /webkit/tools/test_shell/layout_test_controller.cc | |
parent | 1997e46947f75f6aeb713bb82adddc556b7ce71d (diff) | |
download | chromium_src-5bce9d2d662d026fe8cfc8cc6fa28ea52635ceee.zip chromium_src-5bce9d2d662d026fe8cfc8cc6fa28ea52635ceee.tar.gz chromium_src-5bce9d2d662d026fe8cfc8cc6fa28ea52635ceee.tar.bz2 |
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
Diffstat (limited to 'webkit/tools/test_shell/layout_test_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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(); } |