Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1303)

Unified Diff: Source/core/rendering/RenderThemeChromiumDefault.cpp

Issue 438843004: Move the user agent styles sheets to blink_resources.grd (Part 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderThemeChromiumDefault.cpp
diff --git a/Source/core/rendering/RenderThemeChromiumDefault.cpp b/Source/core/rendering/RenderThemeChromiumDefault.cpp
index 4c60c7e24355f2e9960226707124cc234e13194b..54eb6f7fce81d46c62702a8cb3c04ae42aa638dc 100644
--- a/Source/core/rendering/RenderThemeChromiumDefault.cpp
+++ b/Source/core/rendering/RenderThemeChromiumDefault.cpp
@@ -26,11 +26,11 @@
#include "core/rendering/RenderThemeChromiumDefault.h"
#include "core/CSSValueKeywords.h"
-#include "core/UserAgentStyleSheets.h"
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RenderObject.h"
#include "core/rendering/RenderProgress.h"
#include "platform/LayoutTestSupport.h"
+#include "platform/PlatformResourceLoader.h"
#include "platform/graphics/Color.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/GraphicsContextStateSaver.h"
@@ -133,12 +133,12 @@ String RenderThemeChromiumDefault::extraDefaultStyleSheet()
#if !OS(WIN)
return RenderThemeChromiumSkia::extraDefaultStyleSheet() +
#if !OS(ANDROID)
- String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss)) +
+ loadResourceAsASCIIString("themeInputMultipleFields.css") +
#endif
- String(themeChromiumLinuxCss, sizeof(themeChromiumLinuxCss));
+ loadResourceAsASCIIString("themeChromiumLinux.css");
#else
return RenderThemeChromiumSkia::extraDefaultStyleSheet() +
- String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss));
+ loadResourceAsASCIIString("themeInputMultipleFields.css");
#endif
}
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumAndroid.cpp ('k') | Source/core/rendering/RenderThemeChromiumMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698