Changeset 173177 in webkit


Ignore:
Timestamp:
Sep 2, 2014 9:47:11 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r173175.
https://bugs.webkit.org/show_bug.cgi?id=136454

it broke debug builds (Requested by jessieberlin on #webkit).

Reverted changeset:

"Introduce CSS_BASIC_TYPE_CASTS, and use it"
https://bugs.webkit.org/show_bug.cgi?id=136403
http://trac.webkit.org/changeset/173175

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r173176 r173177  
     12014-09-02  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r173175.
     4        https://bugs.webkit.org/show_bug.cgi?id=136454
     5
     6        it broke debug builds (Requested by jessieberlin on #webkit).
     7
     8        Reverted changeset:
     9
     10        "Introduce CSS_BASIC_TYPE_CASTS, and use it"
     11        https://bugs.webkit.org/show_bug.cgi?id=136403
     12        http://trac.webkit.org/changeset/173175
     13
    1142014-09-02  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebCore/css/BasicShapeFunctions.cpp

    r173175 r173177  
    206206    switch (basicShapeValue->type()) {
    207207    case CSSBasicShape::CSSBasicShapeCircleType: {
    208         const CSSBasicShapeCircle* circleValue = toCSSBasicShapeCircle(basicShapeValue);
     208        const CSSBasicShapeCircle* circleValue = static_cast<const CSSBasicShapeCircle *>(basicShapeValue);
    209209        RefPtr<BasicShapeCircle> circle = BasicShapeCircle::create();
    210210
     
    217217    }
    218218    case CSSBasicShape::CSSBasicShapeEllipseType: {
    219         const CSSBasicShapeEllipse* ellipseValue = toCSSBasicShapeEllipse(basicShapeValue);
     219        const CSSBasicShapeEllipse* ellipseValue = static_cast<const CSSBasicShapeEllipse *>(basicShapeValue);
    220220        RefPtr<BasicShapeEllipse> ellipse = BasicShapeEllipse::create();
    221221
     
    230230    }
    231231    case CSSBasicShape::CSSBasicShapePolygonType: {
    232         const CSSBasicShapePolygon* polygonValue = toCSSBasicShapePolygon(basicShapeValue);
     232        const CSSBasicShapePolygon* polygonValue = static_cast<const CSSBasicShapePolygon *>(basicShapeValue);
    233233        RefPtr<BasicShapePolygon> polygon = BasicShapePolygon::create();
    234234
     
    242242    }
    243243    case CSSBasicShape::CSSBasicShapeInsetType: {
    244         const CSSBasicShapeInset* rectValue = toCSSBasicShapeInset(basicShapeValue);
     244        const CSSBasicShapeInset* rectValue = static_cast<const CSSBasicShapeInset* >(basicShapeValue);
    245245        RefPtr<BasicShapeInset> rect = BasicShapeInset::create();
    246246
  • trunk/Source/WebCore/css/CSSBasicShapes.cpp

    r173175 r173177  
    129129        return false;
    130130
    131     const CSSBasicShapeCircle& other = toCSSBasicShapeCircle(shape);
     131    const CSSBasicShapeCircle& other = static_cast<const CSSBasicShapeCircle&>(shape);
    132132    return compareCSSValuePtr(m_centerX, other.m_centerX)
    133133        && compareCSSValuePtr(m_centerY, other.m_centerY)
     
    202202        return false;
    203203
    204     const CSSBasicShapeEllipse& other = toCSSBasicShapeEllipse(shape);
     204    const CSSBasicShapeEllipse& other = static_cast<const CSSBasicShapeEllipse&>(shape);
    205205    return compareCSSValuePtr(m_centerX, other.m_centerX)
    206206        && compareCSSValuePtr(m_centerY, other.m_centerY)
     
    273273        return false;
    274274
    275     const CSSBasicShapePolygon& rhs = toCSSBasicShapePolygon(shape);
     275    const CSSBasicShapePolygon& rhs = static_cast<const CSSBasicShapePolygon&>(shape);
    276276    return compareCSSValuePtr(m_referenceBox, rhs.m_referenceBox)
    277277        && compareCSSValueVector<CSSPrimitiveValue>(m_values, rhs.m_values);
     
    408408        return false;
    409409
    410     const CSSBasicShapeInset& other = toCSSBasicShapeInset(shape);
     410    const CSSBasicShapeInset& other = static_cast<const CSSBasicShapeInset&>(shape);
    411411    return compareCSSValuePtr(m_top, other.m_top)
    412412        && compareCSSValuePtr(m_right, other.m_right)
  • trunk/Source/WebCore/css/CSSBasicShapes.h

    r173175 r173177  
    6363};
    6464
    65 #define CSS_BASIC_TYPE_CASTS(ToValueTypeName, predicate) \
    66     TYPE_CASTS_BASE(ToValueTypeName, CSSBasicShape, basicShape, basicShape->type() == predicate, basicShape.type() == predicate)
    67 
    6865class CSSBasicShapeInset : public CSSBasicShape {
    6966public:
     
    131128};
    132129
    133 CSS_BASIC_TYPE_CASTS(CSSBasicShapeInset, CSSBasicShapeInsetType)
    134 
    135130class CSSBasicShapeCircle : public CSSBasicShape {
    136131public:
     
    156151    RefPtr<CSSPrimitiveValue> m_radius;
    157152};
    158 
    159 CSS_BASIC_TYPE_CASTS(CSSBasicShapeCircle, CSSBasicShapeCircleType)
    160153
    161154class CSSBasicShapeEllipse : public CSSBasicShape {
     
    186179};
    187180
    188 CSS_BASIC_TYPE_CASTS(CSSBasicShapeEllipse, CSSBasicShapeEllipseType)
    189 
    190181class CSSBasicShapePolygon : public CSSBasicShape {
    191182public:
     
    219210};
    220211
    221 CSS_BASIC_TYPE_CASTS(CSSBasicShapePolygon, CSSBasicShapePolygonType)
    222 
    223212} // namespace WebCore
    224213
Note: See TracChangeset for help on using the changeset viewer.