summaryrefslogtreecommitdiffstats
path: root/webkit/port/platform/chromium
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 23:41:57 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 23:41:57 +0000
commitce5447d65e419d0d34b7d6ba0c40f9df5cf80c0d (patch)
treed92c2d47ac26de0bf27ca68990b1a15f5745b32d /webkit/port/platform/chromium
parent43424eac16f7525153786b3e8372974e3b87e00d (diff)
downloadchromium_src-ce5447d65e419d0d34b7d6ba0c40f9df5cf80c0d.zip
chromium_src-ce5447d65e419d0d34b7d6ba0c40f9df5cf80c0d.tar.gz
chromium_src-ce5447d65e419d0d34b7d6ba0c40f9df5cf80c0d.tar.bz2
Fix linux broken layout tests. They want the windows UA sheet.
Review URL: http://codereview.chromium.org/13193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/platform/chromium')
-rw-r--r--webkit/port/platform/chromium/RenderThemeGtk.cpp12
-rw-r--r--webkit/port/platform/chromium/RenderThemeGtk.h3
2 files changed, 15 insertions, 0 deletions
diff --git a/webkit/port/platform/chromium/RenderThemeGtk.cpp b/webkit/port/platform/chromium/RenderThemeGtk.cpp
index 1b3f106..17f0734 100644
--- a/webkit/port/platform/chromium/RenderThemeGtk.cpp
+++ b/webkit/port/platform/chromium/RenderThemeGtk.cpp
@@ -33,6 +33,7 @@
#include "ScrollbarTheme.h"
#include "gtkdrawing.h"
#include "GdkSkia.h"
+#include "UserAgentStyleSheets.h"
#include <gdk/gdk.h>
@@ -220,6 +221,17 @@ RenderThemeGtk::RenderThemeGtk()
{
}
+// Use the Windows style sheets to match their metrics.
+String RenderThemeGtk::extraDefaultStyleSheet()
+{
+ return String(themeWinUserAgentStyleSheet, sizeof(themeWinUserAgentStyleSheet));
+}
+
+String RenderThemeGtk::extraQuirksStyleSheet()
+{
+ return String(themeWinQuirksUserAgentStyleSheet, sizeof(themeWinQuirksUserAgentStyleSheet));
+}
+
bool RenderThemeGtk::supportsFocusRing(const RenderStyle* style) const
{
return supportsFocus(style->appearance());
diff --git a/webkit/port/platform/chromium/RenderThemeGtk.h b/webkit/port/platform/chromium/RenderThemeGtk.h
index a2b5d53..c4bfd32 100644
--- a/webkit/port/platform/chromium/RenderThemeGtk.h
+++ b/webkit/port/platform/chromium/RenderThemeGtk.h
@@ -39,6 +39,9 @@ public:
RenderThemeGtk();
~RenderThemeGtk() { }
+ virtual String extraDefaultStyleSheet();
+ virtual String extraQuirksStyleSheet();
+
// A method asking if the theme's controls actually care about redrawing when hovered.
virtual bool supportsHover(const RenderStyle*) const { return true; }