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

Unified Diff: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp

Issue 1943993003: Cache hb_font_t and the user data container instead of hb_face_t (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reset paint flags properly Created 4 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: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
index ad979fc07c5dd12332126ac332fb93e459d4eff5..de00748ea59c8a4a3d943d536de3e1d297ea96f4 100644
--- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
+++ b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp
@@ -16,8 +16,7 @@ bool OpenTypeCapsSupport::supportsOpenTypeFeature(
hb_script_t script,
uint32_t tag) const
{
-
- hb_face_t* face = m_harfBuzzFace->face();
+ hb_face_t* face = hb_font_get_face(m_harfBuzzFace->getScaledFont());
ASSERT(face);
ASSERT((tag == HB_TAG('s', 'm', 'c', 'p')

Powered by Google App Engine
This is Rietveld 408576698