Title: [89340] trunk/Source/WebCore
Revision
89340
Author
y...@google.com
Date
2011-06-20 23:56:56 -0700 (Mon, 20 Jun 2011)

Log Message

2011-06-20  Yuzo Fujishima  <y...@google.com>

        Reviewed by Kent Tamura.

        Fix for Bug 62975 - Refactor local variable usage in CSSFontFaceSource::getFontData
        https://bugs.webkit.org/show_bug.cgi?id=62975

        No new tests because no behavioral changes.

        * css/CSSFontFaceSource.cpp:
        (WebCore::CSSFontFaceSource::getFontData): Remove one of fontData variable.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (89339 => 89340)


--- trunk/Source/WebCore/ChangeLog	2011-06-21 06:16:48 UTC (rev 89339)
+++ trunk/Source/WebCore/ChangeLog	2011-06-21 06:56:56 UTC (rev 89340)
@@ -1,3 +1,15 @@
+2011-06-20  Yuzo Fujishima  <y...@google.com>
+
+        Reviewed by Kent Tamura.
+
+        Fix for Bug 62975 - Refactor local variable usage in CSSFontFaceSource::getFontData
+        https://bugs.webkit.org/show_bug.cgi?id=62975
+
+        No new tests because no behavioral changes.
+
+        * css/CSSFontFaceSource.cpp:
+        (WebCore::CSSFontFaceSource::getFontData): Remove one of fontData variable.
+
 2011-06-20  Andy Estes  <aes...@apple.com>
 
         Reviewed by Darin Adler.

Modified: trunk/Source/WebCore/css/CSSFontFaceSource.cpp (89339 => 89340)


--- trunk/Source/WebCore/css/CSSFontFaceSource.cpp	2011-06-21 06:16:48 UTC (rev 89339)
+++ trunk/Source/WebCore/css/CSSFontFaceSource.cpp	2011-06-21 06:56:56 UTC (rev 89340)
@@ -108,10 +108,8 @@
 #else
     if (!m_font) {
 #endif
-        SimpleFontData* fontData = fontCache()->getCachedFontData(fontDescription, m_string);
-
         // We're local. Just return a SimpleFontData from the normal cache.
-        return fontData;
+        return fontCache()->getCachedFontData(fontDescription, m_string);
     }
 
     // See if we have a mapping in our FontData cache.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to