Changeset 109340 in webkit


Ignore:
Timestamp:
Mar 1, 2012 5:44:44 AM (12 years ago)
Author:
Nikolas Zimmermann
Message:

Unreviewed, rolling out r109255.
http://trac.webkit.org/changeset/109255
https://bugs.webkit.org/show_bug.cgi?id=79932

Breaks rounded rects with dashed strokes in SVG

Source/WebCore:

  • WebCore.exp.in:
  • platform/graphics/Path.cpp:

(WebCore::Path::addRoundedRect):

  • platform/graphics/Path.h:

(Path):

  • platform/graphics/cg/PathCG.cpp:
  • platform/mac/WebCoreSystemInterface.h:
  • platform/mac/WebCoreSystemInterface.mm:

Source/WebKit/mac:

  • WebCoreSupport/WebSystemInterface.mm:

(InitWebCoreSystemInterface):

Source/WebKit2:

  • WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:

(InitWebCoreSystemInterface):

WebKitLibraries:

  • WebKitSystemInterface.h:
  • libWebKitSystemInterfaceLeopard.a:
  • libWebKitSystemInterfaceLion.a:
  • libWebKitSystemInterfaceSnowLeopard.a:
Location:
trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109336 r109340  
     12012-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
    1182012-03-01  Adam Barth  <abarth@webkit.org>
    219
  • trunk/Source/WebCore/WebCore.exp.in

    r109319 r109340  
    15181518_wkCGContextGetShouldSmoothFonts
    15191519_wkCGContextResetClip
    1520 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
    1521 _wkCGPathAddRoundedRect
    1522 #endif
    15231520_wkCGPatternCreateWithImageAndTransform
    15241521_wkCopyCFLocalizationPreferredName
  • trunk/Source/WebCore/platform/graphics/Path.cpp

    r109255 r109340  
    116116        radius.setHeight(halfSize.height());
    117117
    118     addPathForRoundedRect(rect, radius, radius, radius, radius);
     118    addBeziersForRoundedRect(rect, radius, radius, radius, radius);
    119119}
    120120
     
    133133    }
    134134
    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 {
    141135    addBeziersForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius);
    142136}
    143 #endif
    144137
    145138// Approximation of control point positions on a bezier to simulate a quarter of a circle.
  • trunk/Source/WebCore/platform/graphics/Path.h

    r109255 r109340  
    147147        void transform(const AffineTransform&);
    148148
    149         void addPathForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius);
    150149        void addBeziersForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius);
    151150
  • trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp

    r109255 r109340  
    4040#include <wtf/RetainPtr.h>
    4141
    42 #if PLATFORM(MAC) || PLATFORM(CHROMIUM)
    43 #include "WebCoreSystemInterface.h"
    44 #endif
    45 
    46 #if PLATFORM(WIN)
    47 #include <WebKitSystemInterface/WebKitSystemInterface.h>
    48 #endif
    49 
    5042namespace WebCore {
    5143
     
    233225{
    234226    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 #endif
    248 
    249     addBeziersForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius);
    250227}
    251228
  • trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h

    r109255 r109340  
    4242typedef struct CGColorSpace *CGColorSpaceRef;
    4343typedef struct CGPattern *CGPatternRef;
    44 typedef struct CGPath *CGMutablePathRef;
    4544typedef unsigned short CGGlyph;
    4645typedef struct __CFReadStream * CFReadStreamRef;
     
    307306#endif
    308307
    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 #endif
    312 
    313308}
    314309
  • trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm

    r109255 r109340  
    186186bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
    187187#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  
     12012-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
    1122012-02-29  Adam Barth  <abarth@webkit.org>
    213
  • trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm

    r109255 r109340  
    179179#endif
    180180
    181 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
    182     INIT(CGPathAddRoundedRect);
    183 #endif
    184 
    185181    didInit = true;
    186182}
  • trunk/Source/WebKit2/ChangeLog

    r109338 r109340  
     12012-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
    1122012-03-01  Sergio Villar Senin  <svillar@igalia.com>
    213
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm

    r109255 r109340  
    164164#endif
    165165
    166 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
    167         INIT(CGPathAddRoundedRect);
    168 #endif
    169 
    170166    });
    171167}
  • trunk/WebKitLibraries/ChangeLog

    r109255 r109340  
     12012-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
    1142012-02-29  Tim Horton  <timothy_horton@apple.com>
    215
  • trunk/WebKitLibraries/WebKitSystemInterface.h

    r109255 r109340  
    472472#endif
    473473
    474 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
    475 void WKCGPathAddRoundedRect(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);
    476 #endif
    477 
    478474#ifdef __cplusplus
    479475}
Note: See TracChangeset for help on using the changeset viewer.