Commit 8a5e8c50 authored by rob.buis@samsung.com's avatar rob.buis@samsung.com

Remove !typeFace early return in fontFamilyName

This early return was protecting against SVG Font usage, however SVG
Fonts were removed in https://codereview.chromium.org/656913006, so
convert into an ASSERT instead and remove the outdated comment.

Review URL: https://codereview.chromium.org/684463004

git-svn-id: svn://svn.chromium.org/blink/trunk@184804 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 2483711d
......@@ -315,9 +315,7 @@ SkFontID FontPlatformData::uniqueID() const
String FontPlatformData::fontFamilyName() const
{
// FIXME(crbug.com/326582): come up with a proper way of handling SVG.
if (!this->typeface())
return "";
ASSERT(this->typeface());
SkTypeface::LocalizedStrings* fontFamilyIterator = this->typeface()->createFamilyNameIterator();
SkTypeface::LocalizedString localizedString;
while (fontFamilyIterator->next(&localizedString) && !localizedString.fString.size()) { }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment