Ignore:
Timestamp:
Oct 6, 2013, 12:33:19 AM (12 years ago)
Author:
[email protected]
Message:

Add *CSS* prefix to FontFeatureValue to generate toCSSFontFeatureValue(), and use it
https://bugs.webkit.org/show_bug.cgi?id=122204

Reviewed by Darin Adler.

*CSS* prefix needs to be added to FontFeatureValue class in order to generate toCSSFontFeatureValue().
static_cast<FontFeatureValue*> is changed with toCSSFontFeatureValue() by using this change.

No new tests, no behavior changes.

  • CMakeLists.txt:
  • GNUmakefile.list.am:
  • Target.pri:
  • WebCore.vcxproj/WebCore.vcxproj:
  • WebCore.vcxproj/WebCore.vcxproj.filters:
  • WebCore.xcodeproj/project.pbxproj:
  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::propertyValue):

  • css/CSSFontFeatureValue.cpp: Renamed from Source/WebCore/css/FontFeatureValue.cpp.

(WebCore::CSSFontFeatureValue::CSSFontFeatureValue):
(WebCore::CSSFontFeatureValue::customCSSText):
(WebCore::CSSFontFeatureValue::equals):

  • css/CSSFontFeatureValue.h: Renamed from Source/WebCore/css/FontFeatureValue.h.

(WebCore::CSSFontFeatureValue::create):
(WebCore::CSSFontFeatureValue::tag):
(WebCore::CSSFontFeatureValue::value):

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseFontFeatureTag):

  • css/CSSValue.cpp:

(WebCore::CSSValue::equals):
(WebCore::CSSValue::cssText):
(WebCore::CSSValue::destroy):

  • css/StyleResolver.cpp:

(WebCore::StyleResolver::applyProperty):

File:
1 edited

Legend:

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

    r156961 r156985  
    3737#include "CSSFilterImageValue.h"
    3838#include "CSSFontFaceSrcValue.h"
     39#include "CSSFontFeatureValue.h"
    3940#include "CSSFontValue.h"
    4041#include "CSSFunctionValue.h"
     
    5152#include "CSSUnicodeRangeValue.h"
    5253#include "CSSValueList.h"
    53 #include "FontFeatureValue.h"
    5454#include "ShadowValue.h"
    5555#include "SVGColor.h"
     
    184184            return compareCSSValues<CSSFontFaceSrcValue>(*this, other);
    185185        case FontFeatureClass:
    186             return compareCSSValues<FontFeatureValue>(*this, other);
     186            return compareCSSValues<CSSFontFeatureValue>(*this, other);
    187187        case FunctionClass:
    188188            return compareCSSValues<CSSFunctionValue>(*this, other);
     
    286286        return static_cast<const CSSFontFaceSrcValue*>(this)->customCSSText();
    287287    case FontFeatureClass:
    288         return static_cast<const FontFeatureValue*>(this)->customCSSText();
     288        return static_cast<const CSSFontFeatureValue*>(this)->customCSSText();
    289289    case FunctionClass:
    290290        return static_cast<const CSSFunctionValue*>(this)->customCSSText();
     
    403403        return;
    404404    case FontFeatureClass:
    405         delete static_cast<FontFeatureValue*>(this);
     405        delete toCSSFontFeatureValue(this);
    406406        return;
    407407    case FunctionClass:
Note: See TracChangeset for help on using the changeset viewer.