Skip to content
  • gyuyoung.kim@samsung.com's avatar
    Generate toCSSFooValue for CSSGradientValue, CSSLinearGradientValue and CSSRadialGradient · 0fbbc403
    gyuyoung.kim@samsung.com authored
    https://bugs.webkit.org/show_bug.cgi?id=122060
    
    Reviewed by Antti Koivisto.
    
    As a step to generate toCSSFooValue, toCSSGradientValuem toCSSLinearGradientValue and
    toCSSRadialGradient are generated. isLinearGradient() and isRadialGradient() are moved
    from each class to CSSValue in order to generate toCSSFooValue.
    
    No new tests, no behavior change.
    
    * css/CSSGradientValue.cpp:
    (WebCore::CSSGradientValue::image):
    (WebCore::CSSGradientValue::gradientWithStylesResolved):
    * css/CSSGradientValue.h:
    * css/CSSImageGeneratorValue.cpp:
    (WebCore::CSSImageGeneratorValue::image):
    (WebCore::CSSImageGeneratorValue::fixedSize):
    (WebCore::CSSImageGeneratorValue::loadSubimages):
    * css/CSSParser.cpp:
    (WebCore::CSSParser::parseDeprecatedGradient):
    * css/CSSValue.cpp:
    (WebCore::CSSValue::destroy):
    * css/CSSValue.h:
    (WebCore::CSSValue::isLinearGradient):
    (WebCore::CSSValue::isRadialGradient):
    * css/StyleResolver.cpp:
    (WebCore::StyleResolver::applyProperty):
    (WebCore::StyleResolver::styleImage):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0fbbc403