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

Unified Diff: Source/core/platform/graphics/SegmentedFontData.h

Issue 23446007: Use unicode-range to prevent unnecessary @font-face donwnloads (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase and add toSegmentedFontData() 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/platform/graphics/GlyphPageTreeNode.cpp ('k') | Source/core/platform/graphics/SimpleFontData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/SegmentedFontData.h
diff --git a/Source/core/platform/graphics/SegmentedFontData.h b/Source/core/platform/graphics/SegmentedFontData.h
index c57fca9a36accbc149b61d62d376471345d2a0b2..dda296079a7b1c1fc80fd4665dd019fb7a43c82d 100644
--- a/Source/core/platform/graphics/SegmentedFontData.h
+++ b/Source/core/platform/graphics/SegmentedFontData.h
@@ -80,6 +80,12 @@ private:
Vector<FontDataRange, 1> m_ranges;
};
+inline SegmentedFontData* toSegmentedFontData(FontData* fontData)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(!fontData || fontData->isSegmented());
+ return static_cast<SegmentedFontData*>(fontData);
+}
+
} // namespace WebCore
#endif // SegmentedFontData_h
« no previous file with comments | « Source/core/platform/graphics/GlyphPageTreeNode.cpp ('k') | Source/core/platform/graphics/SimpleFontData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698