Addressing post-review comment after r178292
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jan 2015 21:12:17 +0000 (21:12 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jan 2015 21:12:17 +0000 (21:12 +0000)
https://bugs.webkit.org/show_bug.cgi?id=136769

Unreviewed.

* loader/cache/CachedFont.cpp:
(WebCore::CachedFont::ensureCustomFontData):

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

Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedFont.cpp

index 648704fa5e768c29cbfdea468059156b22eacc5c..1fe1e3cfbb0c5f195658e60518613beee47128b0 100644 (file)
@@ -1,3 +1,13 @@
+2015-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        Addressing post-review comment after r178292
+        https://bugs.webkit.org/show_bug.cgi?id=136769
+
+        Unreviewed.
+
+        * loader/cache/CachedFont.cpp:
+        (WebCore::CachedFont::ensureCustomFontData):
+
 2015-01-12  Myles C. Maxfield  <mmaxfield@apple.com>
 
         Allow targetting the SVG->OTF font converter with ENABLE(SVG_OTF_CONVERTER)
index 4ec3e11b36be78c4e89c6c46102a2b7b886a97d9..2c6716245f4027ae40de4446b0ec6b25725d12dc 100644 (file)
@@ -94,7 +94,7 @@ void CachedFont::beginLoadIfNeeded(CachedResourceLoader* dl)
 
 bool CachedFont::ensureCustomFontData(bool, const AtomicString&)
 {
-    return ensureCustomFontData(RefPtr<SharedBuffer>(m_data));
+    return ensureCustomFontData(m_data.copyRef());
 }
 
 bool CachedFont::ensureCustomFontData(RefPtr<SharedBuffer>&& data)