Title: [110412] trunk/Source/WebKit2
Revision
110412
Author
[email protected]
Date
2012-03-12 00:14:20 -0700 (Mon, 12 Mar 2012)

Log Message

Remove unnecessary call to NSSizeToCGSize().
https://bugs.webkit.org/show_bug.cgi?id=80817

Reviewed by Dan Bernstein.

There is no need to call NSSizeToCGSize() to convert an IntSize to a
CGSize. IntSize defines a conversion function to CGSize that will do
this for us implicitly.

* UIProcess/mac/BackingStoreMac.mm:
(WebKit::BackingStore::backingStoreContext): Do not call NSSizeToCGSize().

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (110411 => 110412)


--- trunk/Source/WebKit2/ChangeLog	2012-03-12 06:07:11 UTC (rev 110411)
+++ trunk/Source/WebKit2/ChangeLog	2012-03-12 07:14:20 UTC (rev 110412)
@@ -1,3 +1,17 @@
+2012-03-11  Andy Estes  <[email protected]>
+
+        Remove unnecessary call to NSSizeToCGSize().
+        https://bugs.webkit.org/show_bug.cgi?id=80817
+
+        Reviewed by Dan Bernstein.
+
+        There is no need to call NSSizeToCGSize() to convert an IntSize to a
+        CGSize. IntSize defines a conversion function to CGSize that will do
+        this for us implicitly.
+
+        * UIProcess/mac/BackingStoreMac.mm:
+        (WebKit::BackingStore::backingStoreContext): Do not call NSSizeToCGSize().
+
 2012-03-11  Dan Bernstein  <[email protected]>
 
         WebKit2 lacks API for obtaining a representation of the RenderLayer tree of a page, like WebRenderLayer

Modified: trunk/Source/WebKit2/UIProcess/mac/BackingStoreMac.mm (110411 => 110412)


--- trunk/Source/WebKit2/UIProcess/mac/BackingStoreMac.mm	2012-03-12 06:07:11 UTC (rev 110411)
+++ trunk/Source/WebKit2/UIProcess/mac/BackingStoreMac.mm	2012-03-12 07:14:20 UTC (rev 110412)
@@ -143,7 +143,7 @@
 
     // Try to create a layer.
     if (CGContextRef containingWindowContext = m_webPageProxy->containingWindowGraphicsContext()) {
-        m_cgLayer.adoptCF(CGLayerCreateWithContext(containingWindowContext, NSSizeToCGSize(m_size), 0));
+        m_cgLayer.adoptCF(CGLayerCreateWithContext(containingWindowContext, m_size, 0));
         CGContextRef layerContext = CGLayerGetContext(m_cgLayer.get());
         
         CGContextSetBlendMode(layerContext, kCGBlendModeCopy);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to