Title: [174727] trunk/Source/WebCore
Revision
174727
Author
[email protected]
Date
2014-10-15 09:53:38 -0700 (Wed, 15 Oct 2014)

Log Message

[Mac] Use CFDictionaryContainsKey() in ImageSource::isSizeAvailable()
https://bugs.webkit.org/show_bug.cgi?id=137723

Reviewed by Simon Fraser.

Use CFDictionaryContainsKey() in ImageSource::isSizeAvailable() instead
of CFDictionaryGetValue() as we are not actually interested in the
value.

No new tests, no behavior change.

* platform/graphics/cg/ImageSourceCG.cpp:
(WebCore::ImageSource::isSizeAvailable):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (174726 => 174727)


--- trunk/Source/WebCore/ChangeLog	2014-10-15 13:37:16 UTC (rev 174726)
+++ trunk/Source/WebCore/ChangeLog	2014-10-15 16:53:38 UTC (rev 174727)
@@ -1,3 +1,19 @@
+2014-10-15  Chris Dumez  <[email protected]>
+
+        [Mac] Use CFDictionaryContainsKey() in ImageSource::isSizeAvailable()
+        https://bugs.webkit.org/show_bug.cgi?id=137723
+
+        Reviewed by Simon Fraser.
+
+        Use CFDictionaryContainsKey() in ImageSource::isSizeAvailable() instead
+        of CFDictionaryGetValue() as we are not actually interested in the
+        value.
+
+        No new tests, no behavior change.
+
+        * platform/graphics/cg/ImageSourceCG.cpp:
+        (WebCore::ImageSource::isSizeAvailable):
+
 2014-10-15  Mihnea Ovidenie  <[email protected]>
 
         Use modern loops in subtrees selection code

Modified: trunk/Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp (174726 => 174727)


--- trunk/Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp	2014-10-15 13:37:16 UTC (rev 174726)
+++ trunk/Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp	2014-10-15 16:53:38 UTC (rev 174727)
@@ -189,8 +189,8 @@
     if (!image0Properties)
         return false;
 
-    return CFDictionaryGetValue(image0Properties.get(), kCGImagePropertyPixelWidth)
-        && CFDictionaryGetValue(image0Properties.get(), kCGImagePropertyPixelHeight);
+    return CFDictionaryContainsKey(image0Properties.get(), kCGImagePropertyPixelWidth)
+        && CFDictionaryContainsKey(image0Properties.get(), kCGImagePropertyPixelHeight);
 }
 
 static ImageOrientation orientationFromProperties(CFDictionaryRef imageProperties)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to