Changeset 47495 in webkit


Ignore:
Timestamp:
Aug 18, 2009 11:31:27 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-08-18 Mike Fenton <mike.fenton@torchmobile.com>

Reviewed by Eric Seidel.

Style fixes based on cpp_style.py and WebKit Style guide for
GraphicsContextSkia.cpp

https://bugs.webkit.org/show_bug.cgi?id=28268

  • platform/graphics/skia/GraphicsContextSkia.cpp: (WebCore::GraphicsContext::addInnerRoundedRectClip): (WebCore::GraphicsContext::drawFocusRing): (WebCore::GraphicsContext::roundToDevicePixels): (WebCore::GraphicsContext::setLineDash): (WebCore::GraphicsContext::setPlatformShadow):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r47494 r47495  
     12009-08-18  Mike Fenton  <mike.fenton@torchmobile.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Style fixes based on cpp_style.py and WebKit Style guide for
     6        GraphicsContextSkia.cpp
     7
     8        https://bugs.webkit.org/show_bug.cgi?id=28268
     9
     10        * platform/graphics/skia/GraphicsContextSkia.cpp:
     11        (WebCore::GraphicsContext::addInnerRoundedRectClip):
     12        (WebCore::GraphicsContext::drawFocusRing):
     13        (WebCore::GraphicsContext::roundToDevicePixels):
     14        (WebCore::GraphicsContext::setLineDash):
     15        (WebCore::GraphicsContext::setPlatformShadow):
     16
    1172009-08-18  Alexey Proskuryakov  <ap@webkit.org>
    218
  • trunk/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r46447 r47495  
    3232#include "GraphicsContext.h"
    3333
    34 #include "GraphicsContextPlatformPrivate.h"
    35 #include "GraphicsContextPrivate.h"
    3634#include "Color.h"
    3735#include "FloatRect.h"
    3836#include "Gradient.h"
     37#include "GraphicsContextPlatformPrivate.h"
     38#include "GraphicsContextPrivate.h"
    3939#include "ImageBuffer.h"
    4040#include "IntRect.h"
     
    4747#include "SkBlurDrawLooper.h"
    4848#include "SkCornerPathEffect.h"
     49#include "SkShader.h"
     50#include "SkiaUtils.h"
    4951#include "skia/ext/platform_canvas.h"
    50 #include "SkiaUtils.h"
    51 #include "SkShader.h"
    5252
    5353#include <math.h>
     
    294294    // only perform the inset if we won't invert r
    295295    if (2 * thickness < rect.width() && 2 * thickness < rect.height()) {
    296         r.inset(SkIntToScalar(thickness) ,SkIntToScalar(thickness));
     296        r.inset(SkIntToScalar(thickness), SkIntToScalar(thickness));
    297297        path.addOval(r, SkPath::kCCW_Direction);
    298298    }
     
    488488    const Vector<IntRect>& rects = focusRingRects();
    489489    unsigned rectCount = rects.size();
    490     if (0 == rectCount)
     490    if (!rectCount)
    491491        return;
    492492
     
    845845
    846846    // Don't let the height or width round to 0 unless either was originally 0
    847     if (deviceOrigin.y() == deviceLowerRight.y() && rect.height() != 0)
     847    if (deviceOrigin.y() == deviceLowerRight.y() && rect.height())
    848848        deviceLowerRight.move(0, 1);
    849     if (deviceOrigin.x() == deviceLowerRight.x() && rect.width() != 0)
     849    if (deviceOrigin.x() == deviceLowerRight.x() && rect.width())
    850850        deviceLowerRight.move(1, 0);
    851851
     
    920920    }
    921921
    922     size_t count = (dashLength % 2) == 0 ? dashLength : dashLength * 2;
     922    size_t count = !(dashLength % 2) ? dashLength : dashLength * 2;
    923923    SkScalar* intervals = new SkScalar[count];
    924924
     
    991991
    992992    // Detect when there's no effective shadow and clear the looper.
    993     if (size.width() == 0 && size.height() == 0 && blurInt == 0) {
    994         platformContext()->setDrawLooper(NULL);
     993    if (!size.width() && !size.height() && !blurInt) {
     994        platformContext()->setDrawLooper(0);
    995995        return;
    996996    }
Note: See TracChangeset for help on using the changeset viewer.