Ignore:
Timestamp:
Sep 30, 2013, 3:39:08 AM (12 years ago)
Author:
[email protected]
Message:

Generate toCSSCalcValue instead of using manual cast function
https://bugs.webkit.org/show_bug.cgi?id=122055

Reviewed by Antti Koivisto.

Generated type cast function supports more plenty functions rather than manual functions.
To use CSS_VALUE_TYPE_CAST, isCalculationValue() needs to be changed with isCalcValue().

No new tests, no behavior changes.

  • css/CSSCalculationValue.h:
  • css/CSSValue.cpp:

(WebCore::CSSValue::destroy):

  • css/CSSValue.h:

(WebCore::CSSValue::isCalcValue):

  • css/StyleResolver.cpp:

(WebCore::hasVariableReference):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSValue.cpp

    r156636 r156642  
    453453        return;
    454454    case CalculationClass:
    455         delete static_cast<CSSCalcValue*>(this);
     455        delete toCSSCalcValue(this);
    456456        return;
    457457#if ENABLE(CSS_IMAGE_SET)
Note: See TracChangeset for help on using the changeset viewer.