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

Unified Diff: webkit/plugins/ppapi/ppb_font_impl.cc

Issue 7053022: Use the WebKit default fonts when specifying generic font families. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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: webkit/plugins/ppapi/ppb_font_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_font_impl.cc (revision 86427)
+++ webkit/plugins/ppapi/ppb_font_impl.cc (working copy)
@@ -5,6 +5,7 @@
#include "webkit/plugins/ppapi/ppb_font_impl.h"
#include "ppapi/c/dev/ppb_font_dev.h"
+#include "ppapi/shared_impl/ppapi_preferences.h"
#include "ppapi/thunk/thunk.h"
#include "webkit/plugins/ppapi/common.h"
#include "webkit/plugins/ppapi/plugin_module.h"
@@ -43,7 +44,8 @@
WebKitForwarding::Font* result = NULL;
instance->module()->GetWebKitForwarding()->CreateFontForwarding(
- NULL, desc, face_name ? face_name->value() : std::string(), &result);
+ NULL, desc, face_name ? face_name->value() : std::string(),
+ instance->delegate()->GetPreferences(), &result);
font_forwarding_.reset(result);
}

Powered by Google App Engine
This is Rietveld 408576698