summaryrefslogtreecommitdiffstats
path: root/WebKit/android/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/plugins')
-rw-r--r--WebKit/android/plugins/ANPTypefaceInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/plugins/ANPTypefaceInterface.cpp b/WebKit/android/plugins/ANPTypefaceInterface.cpp
index 5878f3f..17b3067 100644
--- a/WebKit/android/plugins/ANPTypefaceInterface.cpp
+++ b/WebKit/android/plugins/ANPTypefaceInterface.cpp
@@ -28,7 +28,7 @@
#include "SkANP.h"
static ANPTypeface* anp_createFromName(const char name[], ANPTypefaceStyle s) {
- SkTypeface* tf = SkTypeface::Create(name,
+ SkTypeface* tf = SkTypeface::CreateFromName(name,
static_cast<SkTypeface::Style>(s));
return reinterpret_cast<ANPTypeface*>(tf);
}
@@ -53,7 +53,7 @@ static void anp_unref(ANPTypeface* tf) {
}
static ANPTypefaceStyle anp_getStyle(const ANPTypeface* tf) {
- SkTypeface::Style s = tf ? tf->getStyle() : SkTypeface::kNormal;
+ SkTypeface::Style s = tf ? tf->style() : SkTypeface::kNormal;
return static_cast<ANPTypefaceStyle>(s);
}