Ignore:
Timestamp:
Oct 5, 2013, 10:06:13 AM (12 years ago)
Author:
[email protected]
Message:

Add *CSS* prefix to FontValue to generate toCSSFontValue()
https://bugs.webkit.org/show_bug.cgi?id=122201

Reviewed by Darin Adler.

*CSS* prefix needs to be added to FontValue class in order to generate toCSSFontValue().
static_cast<FontValue*> is changed with toCSSFontValue() by 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/CSSFontValue.cpp: Renamed from Source/WebCore/css/FontValue.cpp.

(WebCore::CSSFontValue::customCSSText):
(WebCore::CSSFontValue::equals):

  • css/CSSFontValue.h: Renamed from Source/WebCore/css/FontValue.h.

(WebCore::CSSFontValue::create):
(WebCore::CSSFontValue::CSSFontValue):

  • css/CSSParser.cpp:
  • 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

    r156760 r156961  
    3737#include "CSSFilterImageValue.h"
    3838#include "CSSFontFaceSrcValue.h"
     39#include "CSSFontValue.h"
    3940#include "CSSFunctionValue.h"
    4041#include "CSSGradientValue.h"
     
    5051#include "CSSUnicodeRangeValue.h"
    5152#include "CSSValueList.h"
    52 #if ENABLE(CSS_VARIABLES)
    53 #include "CSSVariableValue.h"
    54 #endif
    55 #include "FontValue.h"
    5653#include "FontFeatureValue.h"
    5754#include "ShadowValue.h"
     
    6562#include "WebKitCSSTransformValue.h"
    6663
     64#if ENABLE(CSS_VARIABLES)
     65#include "CSSVariableValue.h"
     66#endif
     67
    6768#if ENABLE(SVG)
    6869#include "WebKitCSSSVGDocumentValue.h"
     
    179180#endif
    180181        case FontClass:
    181             return compareCSSValues<FontValue>(*this, other);
     182            return compareCSSValues<CSSFontValue>(*this, other);
    182183        case FontFaceSrcClass:
    183184            return compareCSSValues<CSSFontFaceSrcValue>(*this, other);
     
    281282#endif
    282283    case FontClass:
    283         return static_cast<const FontValue*>(this)->customCSSText();
     284        return static_cast<const CSSFontValue*>(this)->customCSSText();
    284285    case FontFaceSrcClass:
    285286        return static_cast<const CSSFontFaceSrcValue*>(this)->customCSSText();
     
    396397        return;
    397398    case FontClass:
    398         delete static_cast<FontValue*>(this);
     399        delete toCSSFontValue(this);
    399400        return;
    400401    case FontFaceSrcClass:
Note: See TracChangeset for help on using the changeset viewer.