Changeset 47495 in webkit
- Timestamp:
- Aug 18, 2009 11:31:27 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r47494 r47495 1 2009-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 1 17 2009-08-18 Alexey Proskuryakov <ap@webkit.org> 2 18 -
trunk/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
r46447 r47495 32 32 #include "GraphicsContext.h" 33 33 34 #include "GraphicsContextPlatformPrivate.h"35 #include "GraphicsContextPrivate.h"36 34 #include "Color.h" 37 35 #include "FloatRect.h" 38 36 #include "Gradient.h" 37 #include "GraphicsContextPlatformPrivate.h" 38 #include "GraphicsContextPrivate.h" 39 39 #include "ImageBuffer.h" 40 40 #include "IntRect.h" … … 47 47 #include "SkBlurDrawLooper.h" 48 48 #include "SkCornerPathEffect.h" 49 #include "SkShader.h" 50 #include "SkiaUtils.h" 49 51 #include "skia/ext/platform_canvas.h" 50 #include "SkiaUtils.h"51 #include "SkShader.h"52 52 53 53 #include <math.h> … … 294 294 // only perform the inset if we won't invert r 295 295 if (2 * thickness < rect.width() && 2 * thickness < rect.height()) { 296 r.inset(SkIntToScalar(thickness) ,SkIntToScalar(thickness));296 r.inset(SkIntToScalar(thickness), SkIntToScalar(thickness)); 297 297 path.addOval(r, SkPath::kCCW_Direction); 298 298 } … … 488 488 const Vector<IntRect>& rects = focusRingRects(); 489 489 unsigned rectCount = rects.size(); 490 if ( 0 ==rectCount)490 if (!rectCount) 491 491 return; 492 492 … … 845 845 846 846 // 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()) 848 848 deviceLowerRight.move(0, 1); 849 if (deviceOrigin.x() == deviceLowerRight.x() && rect.width() != 0)849 if (deviceOrigin.x() == deviceLowerRight.x() && rect.width()) 850 850 deviceLowerRight.move(1, 0); 851 851 … … 920 920 } 921 921 922 size_t count = (dashLength % 2) == 0? dashLength : dashLength * 2;922 size_t count = !(dashLength % 2) ? dashLength : dashLength * 2; 923 923 SkScalar* intervals = new SkScalar[count]; 924 924 … … 991 991 992 992 // 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); 995 995 return; 996 996 }
Note: See TracChangeset
for help on using the changeset viewer.