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

Unified Diff: Source/web/linux/WebFontRendering.cpp

Issue 570243002: Allow default font size changing on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | public/web/linux/WebFontRendering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/linux/WebFontRendering.cpp
diff --git a/Source/web/linux/WebFontRendering.cpp b/Source/web/linux/WebFontRendering.cpp
index 86107b974c28c3546cd0926f628cede8ded97945..11f455bb8a0a7f621f941addaef96df6d548e16f 100644
--- a/Source/web/linux/WebFontRendering.cpp
+++ b/Source/web/linux/WebFontRendering.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "public/web/linux/WebFontRendering.h"
+#include "core/rendering/RenderThemeChromiumFontProvider.h"
#include "platform/fonts/FontDescription.h"
#include "platform/fonts/FontPlatformData.h"
@@ -87,4 +88,10 @@ void WebFontRendering::setLCDOrientation(SkFontHost::LCDOrientation orientation)
SkFontHost::SetSubpixelOrientation(orientation);
}
+// static
+void WebFontRendering::setDefaultFontSize(int size)
+{
+ RenderThemeChromiumFontProvider::setDefaultFontSize(size);
+}
+
} // namespace blink
« no previous file with comments | « no previous file | public/web/linux/WebFontRendering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698