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

Unified Diff: Source/core/css/CSSSegmentedFontFace.cpp

Issue 23717059: [Font Load Events] Implement FontFaceSet methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « Source/core/css/CSSSegmentedFontFace.h ('k') | Source/core/css/FontFaceSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSSegmentedFontFace.cpp
diff --git a/Source/core/css/CSSSegmentedFontFace.cpp b/Source/core/css/CSSSegmentedFontFace.cpp
index 82cfdfceb043efe0fa6c3decbafb550ec537ceef..60bc3c5a1288e80f1919a90dccab244300a7d10a 100644
--- a/Source/core/css/CSSSegmentedFontFace.cpp
+++ b/Source/core/css/CSSSegmentedFontFace.cpp
@@ -194,4 +194,16 @@ void CSSSegmentedFontFace::loadFont(const FontDescription& fontDescription, Pass
}
}
+Vector<RefPtr<FontFace> > CSSSegmentedFontFace::fontFaces() const
+{
+ Vector<RefPtr<FontFace> > fontFaces;
+ unsigned size = m_fontFaces.size();
+ for (unsigned i = 0; i < size; i++) {
+ RefPtr<FontFace> face = m_fontFaces[i]->fontFace();
+ if (face)
+ fontFaces.append(face);
+ }
+ return fontFaces;
+}
+
}
« no previous file with comments | « Source/core/css/CSSSegmentedFontFace.h ('k') | Source/core/css/FontFaceSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698