Ignore:
Timestamp:
Sep 30, 2013, 12:35:29 AM (12 years ago)
Author:
[email protected]
Message:

Generate toCSSFooValue for CSSGradientValue, CSSLinearGradientValue and CSSRadialGradient
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):

File:
1 edited

Legend:

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

    r156633 r156636  
    8686    bool isInheritedValue() const { return m_classType == InheritedClass; }
    8787    bool isInitialValue() const { return m_classType == InitialClass; }
     88    bool isLinearGradientValue() const { return m_classType == LinearGradientClass; }
     89    bool isRadialGradientValue() const { return m_classType == RadialGradientClass; }
    8890    bool isReflectValue() const { return m_classType == ReflectClass; }
    8991    bool isShadowValue() const { return m_classType == ShadowClass; }
Note: See TracChangeset for help on using the changeset viewer.