Index: Source/core/rendering/RenderThemeChromiumMac.mm |
diff --git a/Source/core/rendering/RenderThemeChromiumMac.mm b/Source/core/rendering/RenderThemeChromiumMac.mm |
index 920251ec9e6af5d2ce52c90ff1ae2412eebe7dd5..423927c8a66d16d29a1e5e9335d7eb7d7da4f787 100644 |
--- a/Source/core/rendering/RenderThemeChromiumMac.mm |
+++ b/Source/core/rendering/RenderThemeChromiumMac.mm |
@@ -23,7 +23,6 @@ |
#import "core/CSSValueKeywords.h" |
#import "core/HTMLNames.h" |
-#import "core/UserAgentStyleSheets.h" |
#import "core/css/CSSValueList.h" |
#import "core/dom/Document.h" |
#import "core/dom/Element.h" |
@@ -55,6 +54,8 @@ |
#import "platform/mac/WebCoreNSCellExtras.h" |
#import "platform/text/PlatformLocale.h" |
#import "platform/text/StringTruncator.h" |
+#import "public/platform/Platform.h" |
+#import "public/platform/WebData.h" |
#import <AvailabilityMacros.h> |
#import <Carbon/Carbon.h> |
@@ -1807,10 +1808,19 @@ String RenderThemeChromiumMac::extraFullScreenStyleSheet() |
String RenderThemeChromiumMac::extraDefaultStyleSheet() |
{ |
- return RenderTheme::extraDefaultStyleSheet() + |
- String(themeChromiumCss, sizeof(themeChromiumCss)) + |
- String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss)) + |
- String(themeMacCss, sizeof(themeMacCss)); |
+ const WebData& themeChromiumCssResource = Platform::current()->loadResource("themeChromium.css"); |
+ String themeChromiumRules = themeChromiumCssResource.toASCIIString(); |
+ ASSERT(!themeChromiumRules.isEmpty()); |
+ |
+ const WebData& themeInputMultipleFieldsCssResource = Platform::current()->loadResource("themeInputMultipleFields.css"); |
+ String themeInputMultipleFieldsRules = themeInputMultipleFieldsCssResource.toASCIIString(); |
+ ASSERT(!themeInputMultipleFieldsRules.isEmpty()); |
+ |
+ const WebData& themeMacCssResource = Platform::current()->loadResource("themeMac.css"); |
+ String themeMacRules = themeMacCssResource.toASCIIString(); |
+ ASSERT(!themeMacRules.isEmpty()); |
+ |
+ return RenderTheme::extraDefaultStyleSheet() + themeChromiumRules + themeInputMultipleFieldsRules + themeMacRules; |
} |
bool RenderThemeChromiumMac::paintMediaVolumeSliderContainer(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect) |