Ignore:
Timestamp:
Sep 29, 2013, 10:40:57 PM (12 years ago)
Author:
[email protected]
Message:

Generate toCSSFooValue() for CSSCanvasValue
https://bugs.webkit.org/show_bug.cgi?id=122058

Reviewed by Antti Koivisto.

Generate toCSSFooValue() for CSSCanvasValue, and use it.
This type cast function will help to detect bad-casts.
isCanvasValue() is added in order to generate toCSSCanvasValue.

No new tests, no behavior change.

  • css/CSSCanvasValue.h:
  • css/CSSImageGeneratorValue.cpp:

(WebCore::CSSImageGeneratorValue::image):
(WebCore::CSSImageGeneratorValue::fixedSize):
(WebCore::CSSImageGeneratorValue::loadSubimages):

  • css/CSSValue.cpp:

(WebCore::CSSValue::destroy):

  • css/CSSValue.h:

(WebCore::CSSValue::isCanvasValue):

File:
1 edited

Legend:

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

    r156630 r156633  
    7272    bool isAspectRatioValue() const { return m_classType == AspectRatioClass; }
    7373    bool isBorderImageSliceValue() const { return m_classType == BorderImageSliceClass; }
     74    bool isCanvasValue() const { return m_classType == CanvasClass; }
    7475    bool isCrossfadeValue() const { return m_classType == CrossfadeClass; }
    7576    bool isCursorImageValue() const { return m_classType == CursorImageClass; }
Note: See TracChangeset for help on using the changeset viewer.