[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

bfulgham at webkit.org bfulgham at webkit.org
Wed Apr 7 23:46:02 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit 93f6abcd61a6d26bebc8d06c970caa5a8bc632b8
Author: bfulgham at webkit.org <bfulgham at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Nov 18 01:08:50 2009 +0000

    Rubber-stamped by Alexey Proskuryakov.
    
    Final clean-ups for minor coding standard violations.
    https://bugs.webkit.org/show_bug.cgi?id=26102.
    
    * platform/graphics/cairo/GraphicsContextCairo.cpp:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51098 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 0ccb730..066e372 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,12 @@
+2009-11-17  Brent Fulgham  <bfulgham at webkit.org>
+
+        Rubber-stamped by Alexey Proskuryakov.
+
+        Final clean-ups for minor coding standard violations.
+        https://bugs.webkit.org/show_bug.cgi?id=26102.
+
+        * platform/graphics/cairo/GraphicsContextCairo.cpp:
+
 2009-11-17  Johnny Ding  <jnd at chromium.org>
 
         Reviewed by Darin Adler.
diff --git a/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp b/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
index a4dd450..cd7dc52 100644
--- a/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
+++ b/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
@@ -176,7 +176,7 @@ static inline void drawPathShadow(GraphicsContext* context, GraphicsContextPriva
     if (!context->getShadow(shadowSize, shadowBlur, shadowColor))
         return;
     
-    //calculate filter values
+    // Calculate filter values to create appropriate shadow.
     cairo_t* cr = context->platformContext();
     cairo_path_t* path = cairo_copy_path(cr);
     double x0, x1, y0, y1;
@@ -188,13 +188,13 @@ static inline void drawPathShadow(GraphicsContext* context, GraphicsContextPriva
 
     IntSize shadowBufferSize;
     FloatRect shadowRect;
-    float kernelSize (0.0);
+    float kernelSize = 0;
     GraphicsContext::calculateShadowBufferDimensions(shadowBufferSize, shadowRect, kernelSize, rect, shadowSize, shadowBlur);
 
-    // create suitably-sized ImageBuffer to hold the shadow
+    // Create suitably-sized ImageBuffer to hold the shadow.
     OwnPtr<ImageBuffer> shadowBuffer = ImageBuffer::create(shadowBufferSize);
 
-    //draw shadow into a new ImageBuffer
+    // Draw shadow into a new ImageBuffer.
     cairo_t* shadowContext = shadowBuffer->context()->platformContext();
     copyContextProperties(cr, shadowContext);
     cairo_translate(shadowContext, -rect.x() + kernelSize, -rect.y() + kernelSize);
@@ -575,13 +575,12 @@ static void drawBorderlessRectShadow(GraphicsContext* context, const FloatRect&
     if (!context->getShadow(shadowSize, shadowBlur, shadowColor))
         return;
 
-    //calculate filter values
     IntSize shadowBufferSize;
     FloatRect shadowRect;
-    float kernelSize = 0.0;
+    float kernelSize = 0;
     GraphicsContext::calculateShadowBufferDimensions(shadowBufferSize, shadowRect, kernelSize, rect, shadowSize, shadowBlur);
 
-    //draw shadow into a new ImageBuffer
+    // Draw shadow into a new ImageBuffer
     OwnPtr<ImageBuffer> shadowBuffer = ImageBuffer::create(shadowBufferSize);
     GraphicsContext* shadowContext = shadowBuffer->context();
     shadowContext->fillRect(FloatRect(FloatPoint(kernelSize, kernelSize), rect.size()), rectColor, DeviceColorSpace);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list