Changeset 109340 in webkit
- Timestamp:
- Mar 1, 2012 5:44:44 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109336 r109340 1 2012-03-01 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Unreviewed, rolling out r109255. 4 http://trac.webkit.org/changeset/109255 5 https://bugs.webkit.org/show_bug.cgi?id=79932 6 7 Breaks rounded rects with dashed strokes in SVG 8 9 * WebCore.exp.in: 10 * platform/graphics/Path.cpp: 11 (WebCore::Path::addRoundedRect): 12 * platform/graphics/Path.h: 13 (Path): 14 * platform/graphics/cg/PathCG.cpp: 15 * platform/mac/WebCoreSystemInterface.h: 16 * platform/mac/WebCoreSystemInterface.mm: 17 1 18 2012-03-01 Adam Barth <abarth@webkit.org> 2 19 -
trunk/Source/WebCore/WebCore.exp.in
r109319 r109340 1518 1518 _wkCGContextGetShouldSmoothFonts 1519 1519 _wkCGContextResetClip 1520 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)1521 _wkCGPathAddRoundedRect1522 #endif1523 1520 _wkCGPatternCreateWithImageAndTransform 1524 1521 _wkCopyCFLocalizationPreferredName -
trunk/Source/WebCore/platform/graphics/Path.cpp
r109255 r109340 116 116 radius.setHeight(halfSize.height()); 117 117 118 add PathForRoundedRect(rect, radius, radius, radius, radius);118 addBeziersForRoundedRect(rect, radius, radius, radius, radius); 119 119 } 120 120 … … 133 133 } 134 134 135 addPathForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius);136 }137 138 #if !USE(CG)139 void Path::addPathForRoundedRect(const FloatRect& rect, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius)140 {141 135 addBeziersForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius); 142 136 } 143 #endif144 137 145 138 // Approximation of control point positions on a bezier to simulate a quarter of a circle. -
trunk/Source/WebCore/platform/graphics/Path.h
r109255 r109340 147 147 void transform(const AffineTransform&); 148 148 149 void addPathForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius);150 149 void addBeziersForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius); 151 150 -
trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp
r109255 r109340 40 40 #include <wtf/RetainPtr.h> 41 41 42 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)43 #include "WebCoreSystemInterface.h"44 #endif45 46 #if PLATFORM(WIN)47 #include <WebKitSystemInterface/WebKitSystemInterface.h>48 #endif49 50 42 namespace WebCore { 51 43 … … 233 225 { 234 226 CGPathAddArcToPoint(m_path, 0, p1.x(), p1.y(), p2.x(), p2.y(), radius); 235 }236 237 void Path::addPathForRoundedRect(const FloatRect& rect, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius)238 {239 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)240 bool equalWidths = (topLeftRadius.width() == topRightRadius.width() && topRightRadius.width() == bottomLeftRadius.width() && bottomLeftRadius.width() == bottomRightRadius.width());241 bool equalHeights = (topLeftRadius.height() == bottomLeftRadius.height() && bottomLeftRadius.height() == topRightRadius.height() && topRightRadius.height() == bottomRightRadius.height());242 243 if (equalWidths && equalHeights) {244 wkCGPathAddRoundedRect(m_path, 0, rect, topLeftRadius.width(), topLeftRadius.height());245 return;246 }247 #endif248 249 addBeziersForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius);250 227 } 251 228 -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r109255 r109340 42 42 typedef struct CGColorSpace *CGColorSpaceRef; 43 43 typedef struct CGPattern *CGPatternRef; 44 typedef struct CGPath *CGMutablePathRef;45 44 typedef unsigned short CGGlyph; 46 45 typedef struct __CFReadStream * CFReadStreamRef; … … 307 306 #endif 308 307 309 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)310 extern void (*wkCGPathAddRoundedRect)(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);311 #endif312 313 308 } 314 309 -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r109255 r109340 186 186 bool (*wkExecutableWasLinkedOnOrBeforeLion)(void); 187 187 #endif 188 189 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)190 void (*wkCGPathAddRoundedRect)(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);191 #endif -
trunk/Source/WebKit/mac/ChangeLog
r109319 r109340 1 2012-03-01 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Unreviewed, rolling out r109255. 4 http://trac.webkit.org/changeset/109255 5 https://bugs.webkit.org/show_bug.cgi?id=79932 6 7 Breaks rounded rects with dashed strokes in SVG 8 9 * WebCoreSupport/WebSystemInterface.mm: 10 (InitWebCoreSystemInterface): 11 1 12 2012-02-29 Adam Barth <abarth@webkit.org> 2 13 -
trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r109255 r109340 179 179 #endif 180 180 181 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)182 INIT(CGPathAddRoundedRect);183 #endif184 185 181 didInit = true; 186 182 } -
trunk/Source/WebKit2/ChangeLog
r109338 r109340 1 2012-03-01 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Unreviewed, rolling out r109255. 4 http://trac.webkit.org/changeset/109255 5 https://bugs.webkit.org/show_bug.cgi?id=79932 6 7 Breaks rounded rects with dashed strokes in SVG 8 9 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: 10 (InitWebCoreSystemInterface): 11 1 12 2012-03-01 Sergio Villar Senin <svillar@igalia.com> 2 13 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r109255 r109340 164 164 #endif 165 165 166 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)167 INIT(CGPathAddRoundedRect);168 #endif169 170 166 }); 171 167 } -
trunk/WebKitLibraries/ChangeLog
r109255 r109340 1 2012-03-01 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Unreviewed, rolling out r109255. 4 http://trac.webkit.org/changeset/109255 5 https://bugs.webkit.org/show_bug.cgi?id=79932 6 7 Breaks rounded rects with dashed strokes in SVG 8 9 * WebKitSystemInterface.h: 10 * libWebKitSystemInterfaceLeopard.a: 11 * libWebKitSystemInterfaceLion.a: 12 * libWebKitSystemInterfaceSnowLeopard.a: 13 1 14 2012-02-29 Tim Horton <timothy_horton@apple.com> 2 15 -
trunk/WebKitLibraries/WebKitSystemInterface.h
r109255 r109340 472 472 #endif 473 473 474 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070475 void WKCGPathAddRoundedRect(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);476 #endif477 478 474 #ifdef __cplusplus 479 475 }
Note: See TracChangeset
for help on using the changeset viewer.