diff options
author | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 00:37:03 +0000 |
---|---|---|
committer | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 00:37:03 +0000 |
commit | 90c8ee331f42ce56e50a1e22af18de4882231a15 (patch) | |
tree | f1166d2dbb7143bc616faeb85f672d55064c7a34 | |
parent | c1d4a1d6fad0b27b9df5490f8f496019d074c7ee (diff) | |
download | chromium_src-90c8ee331f42ce56e50a1e22af18de4882231a15.zip chromium_src-90c8ee331f42ce56e50a1e22af18de4882231a15.tar.gz chromium_src-90c8ee331f42ce56e50a1e22af18de4882231a15.tar.bz2 |
Remove CRLFs I accidentally committed.
TEST=no CRLFs
BUG=none
TBR=jam
Review URL: http://codereview.chromium.org/407009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32450 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/tools/test_shell/test_shell.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index c67be152..d6052ae 100644 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -247,23 +247,23 @@ void TestShell::Dump(TestShell* shell) { dumped_anything = true; WebViewHost* view_host = shell->webViewHost(); view_host->webview()->layout(); - if (shell->layout_test_controller()->test_repaint()) {
- WebSize view_size = view_host->webview()->size();
- int width = view_size.width;
- int height = view_size.height;
- if (shell->layout_test_controller()->sweep_horizontally()) {
- for (gfx::Rect column(0, 0, 1, height); column.x() < width;
- column.Offset(1, 0)) {
- view_host->PaintRect(column);
- }
- } else {
- for (gfx::Rect line(0, 0, width, 1); line.y() < height;
- line.Offset(0, 1)) {
- view_host->PaintRect(line);
- }
- }
- } else {
- view_host->Paint();
+ if (shell->layout_test_controller()->test_repaint()) { + WebSize view_size = view_host->webview()->size(); + int width = view_size.width; + int height = view_size.height; + if (shell->layout_test_controller()->sweep_horizontally()) { + for (gfx::Rect column(0, 0, 1, height); column.x() < width; + column.Offset(1, 0)) { + view_host->PaintRect(column); + } + } else { + for (gfx::Rect line(0, 0, width, 1); line.y() < height; + line.Offset(0, 1)) { + view_host->PaintRect(line); + } + } + } else { + view_host->Paint(); } std::string md5sum = DumpImage(view_host->canvas(), params->pixel_file_name, params->pixel_hash); |