Changeset 139734 in webkit


Ignore:
Timestamp:
Jan 15, 2013 5:31:49 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[CSS] Rename the enum, from "ETextAlignLast" to "TextAlignLast"
https://bugs.webkit.org/show_bug.cgi?id=106887

Patch by Dongwoo Joshua Im <dw.im@samsung.com> on 2013-01-15
Reviewed by Alexis Menard.

No new tests are added since there is no behavior changes.

  • css/CSSPrimitiveValueMappings.h:

(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator TextAlignLast):

  • css/StyleBuilder.cpp:

(WebCore::StyleBuilder::StyleBuilder):

  • rendering/style/RenderStyle.h:
  • rendering/style/RenderStyleConstants.h:
  • rendering/style/StyleRareInheritedData.h:

(StyleRareInheritedData):

Location:
trunk/Source/WebCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139732 r139734  
     12013-01-15  Dongwoo Joshua Im  <dw.im@samsung.com>
     2
     3        [CSS] Rename the enum, from "ETextAlignLast" to "TextAlignLast"
     4        https://bugs.webkit.org/show_bug.cgi?id=106887
     5
     6        Reviewed by Alexis Menard.
     7
     8        No new tests are added since there is no behavior changes.
     9
     10        * css/CSSPrimitiveValueMappings.h:
     11        (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
     12        (WebCore::CSSPrimitiveValue::operator TextAlignLast):
     13        * css/StyleBuilder.cpp:
     14        (WebCore::StyleBuilder::StyleBuilder):
     15        * rendering/style/RenderStyle.h:
     16        * rendering/style/RenderStyleConstants.h:
     17        * rendering/style/StyleRareInheritedData.h:
     18        (StyleRareInheritedData):
     19
    1202013-01-15  Tommy Widenflycht  <tommyw@google.com>
    221
  • trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h

    r137754 r139734  
    22392239
    22402240#if ENABLE(CSS3_TEXT)
    2241 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ETextAlignLast e)
     2241template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TextAlignLast e)
    22422242    : CSSValue(PrimitiveClass)
    22432243{
     
    22682268}
    22692269
    2270 template<> inline CSSPrimitiveValue::operator ETextAlignLast() const
     2270template<> inline CSSPrimitiveValue::operator TextAlignLast() const
    22712271{
    22722272    switch (m_value.ident) {
  • trunk/Source/WebCore/css/StyleBuilder.cpp

    r138821 r139734  
    19231923    setPropertyHandler(CSSPropertyWebkitTextDecorationLine, ApplyPropertyTextDecoration::createHandler());
    19241924    setPropertyHandler(CSSPropertyWebkitTextDecorationStyle, ApplyPropertyDefault<TextDecorationStyle, &RenderStyle::textDecorationStyle, TextDecorationStyle, &RenderStyle::setTextDecorationStyle, TextDecorationStyle, &RenderStyle::initialTextDecorationStyle>::createHandler());
    1925     setPropertyHandler(CSSPropertyWebkitTextAlignLast, ApplyPropertyDefault<ETextAlignLast, &RenderStyle::textAlignLast, ETextAlignLast, &RenderStyle::setTextAlignLast, ETextAlignLast, &RenderStyle::initialTextAlignLast>::createHandler());
     1925    setPropertyHandler(CSSPropertyWebkitTextAlignLast, ApplyPropertyDefault<TextAlignLast, &RenderStyle::textAlignLast, TextAlignLast, &RenderStyle::setTextAlignLast, TextAlignLast, &RenderStyle::initialTextAlignLast>::createHandler());
    19261926#endif // CSS3_TEXT
    19271927    setPropertyHandler(CSSPropertyTextIndent, ApplyPropertyLength<&RenderStyle::textIndent, &RenderStyle::setTextIndent, &RenderStyle::initialTextIndent>::createHandler());
  • trunk/Source/WebCore/rendering/style/RenderStyle.h

    r139659 r139734  
    564564#if ENABLE(CSS3_TEXT)
    565565    TextDecorationStyle textDecorationStyle() const { return static_cast<TextDecorationStyle>(rareNonInheritedData->m_textDecorationStyle); }
    566     ETextAlignLast textAlignLast() const { return static_cast<ETextAlignLast>(rareInheritedData->m_textAlignLast); }
     566    TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rareInheritedData->m_textAlignLast); }
    567567#else
    568568    TextDecorationStyle textDecorationStyle() const { return TextDecorationStyleSolid; }
     
    11031103#if ENABLE(CSS3_TEXT)
    11041104    void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInheritedData, m_textDecorationStyle, v); }
    1105     void setTextAlignLast(ETextAlignLast v) { SET_VAR(rareInheritedData, m_textAlignLast, v); }
     1105    void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAlignLast, v); }
    11061106#endif // CSS3_TEXT
    11071107    void setDirection(TextDirection v) { inherited_flags._direction = v; }
     
    15611561#if ENABLE(CSS3_TEXT)
    15621562    static TextDecorationStyle initialTextDecorationStyle() { return TextDecorationStyleSolid; }
    1563     static ETextAlignLast initialTextAlignLast() { return TextAlignLastAuto; }
     1563    static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; }
    15641564#endif // CSS3_TEXT
    15651565    static float initialZoom() { return 1.0f; }
  • trunk/Source/WebCore/rendering/style/RenderStyleConstants.h

    r138821 r139734  
    356356
    357357#if ENABLE(CSS3_TEXT)
    358 enum ETextAlignLast {
     358enum TextAlignLast {
    359359    TextAlignLastAuto, TextAlignLastStart, TextAlignLastEnd, TextAlignLastLeft, TextAlignLastRight, TextAlignLastCenter, TextAlignLastJustify
    360360};
  • trunk/Source/WebCore/rendering/style/StyleRareInheritedData.h

    r137359 r139734  
    118118#endif
    119119#if ENABLE(CSS3_TEXT)
    120     unsigned m_textAlignLast : 3; // ETextAlignLast
     120    unsigned m_textAlignLast : 3; // TextAlignLast
    121121#endif // CSS3_TEXT
    122122    unsigned m_rubyPosition : 1; // RubyPosition
Note: See TracChangeset for help on using the changeset viewer.