summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/layout_test_controller.cc
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 16:04:39 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 16:04:39 +0000
commita5bef47b2b65c303525214629fc45e5c07276ac4 (patch)
tree9361721e60227af7600621edd82a1258adcaeb0f /webkit/tools/test_shell/layout_test_controller.cc
parentcb9e41971c4e36d25a70f898ae9f412698f656e0 (diff)
downloadchromium_src-a5bef47b2b65c303525214629fc45e5c07276ac4.zip
chromium_src-a5bef47b2b65c303525214629fc45e5c07276ac4.tar.gz
chromium_src-a5bef47b2b65c303525214629fc45e5c07276ac4.tar.bz2
DevTools: Fix and enable timeline-paint.html test.
original review: http://codereview.chromium.org/505036 TBR=yurys Review URL: http://codereview.chromium.org/508023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35150 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.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc
index 9ca297e..9e36ada 100644
--- a/webkit/tools/test_shell/layout_test_controller.cc
+++ b/webkit/tools/test_shell/layout_test_controller.cc
@@ -19,6 +19,7 @@
#include "third_party/WebKit/WebKit/chromium/public/WebKit.h"
#include "third_party/WebKit/WebKit/chromium/public/WebScriptSource.h"
#include "third_party/WebKit/WebKit/chromium/public/WebSecurityPolicy.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebSize.h"
#include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
#include "third_party/WebKit/WebKit/chromium/public/WebView.h"
#include "webkit/glue/dom_operations.h"
@@ -777,6 +778,9 @@ void LayoutTestController::dumpSelectionRect(
void LayoutTestController::display(
const CppArgumentList& args, CppVariant* result) {
WebViewHost* view_host = shell_->webViewHost();
+ const WebKit::WebSize& size = view_host->webview()->size();
+ gfx::Rect rect(size.width, size.height);
+ view_host->UpdatePaintRect(rect);
view_host->Paint();
view_host->DisplayRepaintMask();
result->SetNull();