summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host.h
diff options
context:
space:
mode:
authordglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 15:26:55 +0000
committerdglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 15:26:55 +0000
commit6cea7c48bac15dff8ea8d9b4862b75f5deb59109 (patch)
tree98ea1b71d6150ccad9ce8ee204985dfc34b24f58 /webkit/tools/test_shell/webwidget_host.h
parent4fad45a6ce06e3c599280920780a496a69d82c3a (diff)
downloadchromium_src-6cea7c48bac15dff8ea8d9b4862b75f5deb59109.zip
chromium_src-6cea7c48bac15dff8ea8d9b4862b75f5deb59109.tar.gz
chromium_src-6cea7c48bac15dff8ea8d9b4862b75f5deb59109.tar.bz2
Implement layoutTestController.display() method.
BUG=8630 TEST=LayoutTests/fast/repaint/layer-visibility.html should pass. R=darin Review URL: http://codereview.chromium.org/180033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host.h')
-rw-r--r--webkit/tools/test_shell/webwidget_host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/webwidget_host.h b/webkit/tools/test_shell/webwidget_host.h
index 2fc2a10..49c0ba7 100644
--- a/webkit/tools/test_shell/webwidget_host.h
+++ b/webkit/tools/test_shell/webwidget_host.h
@@ -61,6 +61,12 @@ class WebWidgetHost {
WebKit::WebScreenInfo GetScreenInfo();
+ // Paints the entire canvas a semi-transparent black (grayish). This is used
+ // by the layout tests in fast/repaint. The alpha value matches upstream.
+ void DisplayRepaintMask() {
+ canvas()->drawARGB(167, 0, 0, 0);
+ }
+
protected:
WebWidgetHost();
~WebWidgetHost();