Unreviewed build fix.
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Apr 2015 22:32:46 +0000 (22:32 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Apr 2015 22:32:46 +0000 (22:32 +0000)
* platform/graphics/mac/FontCacheMac.mm:
(WebCore::fontWithFamily):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183582 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/mac/FontCacheMac.mm

index 3e0e3de..a53c62b 100644 (file)
@@ -1,3 +1,10 @@
+2015-04-29  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        Unreviewed build fix.
+
+        * platform/graphics/mac/FontCacheMac.mm:
+        (WebCore::fontWithFamily):
+
 2015-04-29  Eric Carlson  <eric.carlson@apple.com>
 
         Some media tests assert after r183096
index 3ed05b2..74c2970 100644 (file)
@@ -230,7 +230,7 @@ static NSFont *fontWithFamily(const AtomicString& family, NSFontTraitMask desire
 
 #if ENABLE(PLATFORM_FONT_LOOKUP)
 
-    if (family.length() > 0 && family[0] == '.')
+    if (family.length() > 0 && family.string().at(0) == '.')
         return [NSFont fontWithName:desiredFamily size:size];
     const auto& whitelist = fontWhitelist();
     if (whitelist.size() && !whitelist.contains(family.lower()))