summaryrefslogtreecommitdiffstats
path: root/webkit/port/rendering
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 21:29:08 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 21:29:08 +0000
commitb13253836c8c98d13a8c44d6b23bdad477fb2179 (patch)
treede8a40d4ede83a4c8341cd09dd79e7d99c72b264 /webkit/port/rendering
parentfaf4d4d4a80456caf39fbc547763f80bee50acee (diff)
downloadchromium_src-b13253836c8c98d13a8c44d6b23bdad477fb2179.zip
chromium_src-b13253836c8c98d13a8c44d6b23bdad477fb2179.tar.gz
chromium_src-b13253836c8c98d13a8c44d6b23bdad477fb2179.tar.bz2
Un-revert 6386 (my CSS change). Layout tests pass for me. I think the
builders just need a clobber when this is checked in. I also fixed the SConscript and deleted the old CSS files. Review URL: http://codereview.chromium.org/13146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6452 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/rendering')
-rw-r--r--webkit/port/rendering/RenderThemeWin.cpp12
-rw-r--r--webkit/port/rendering/RenderThemeWin.h3
2 files changed, 15 insertions, 0 deletions
diff --git a/webkit/port/rendering/RenderThemeWin.cpp b/webkit/port/rendering/RenderThemeWin.cpp
index a4614c1..d57524f 100644
--- a/webkit/port/rendering/RenderThemeWin.cpp
+++ b/webkit/port/rendering/RenderThemeWin.cpp
@@ -28,6 +28,7 @@
#include <vssym32.h>
#include "ChromiumBridge.h"
+#include "CSSStyleSheet.h"
#include "CSSValueKeywords.h"
#include "Document.h"
#include "FontSelector.h"
@@ -36,6 +37,7 @@
#include "ScrollbarTheme.h"
#include "SkiaUtils.h"
#include "ThemeHelperWin.h"
+#include "UserAgentStyleSheets.h"
// TODO(brettw) all of these dependencies should eventually be removed.
#include "base/gfx/native_theme.h"
@@ -199,6 +201,16 @@ RenderTheme* theme()
return &winTheme;
}
+String RenderThemeWin::extraDefaultStyleSheet()
+{
+ return String(themeWinUserAgentStyleSheet, sizeof(themeWinUserAgentStyleSheet));
+}
+
+String RenderThemeWin::extraQuirksStyleSheet()
+{
+ return String(themeWinQuirksUserAgentStyleSheet, sizeof(themeWinQuirksUserAgentStyleSheet));
+}
+
bool RenderThemeWin::supportsFocusRing(const RenderStyle* style) const
{
// Let webkit draw one of its halo rings around any focused element,
diff --git a/webkit/port/rendering/RenderThemeWin.h b/webkit/port/rendering/RenderThemeWin.h
index 5c16330..cd9cb4c 100644
--- a/webkit/port/rendering/RenderThemeWin.h
+++ b/webkit/port/rendering/RenderThemeWin.h
@@ -46,6 +46,9 @@ public:
RenderThemeWin() { }
~RenderThemeWin() { }
+ 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; }