Changeset 67695 in webkit


Ignore:
Timestamp:
Sep 16, 2010 11:20:48 PM (14 years ago)
Author:
tkent@chromium.org
Message:

2010-09-16 takano takumi <takano1@asia.apple.com>

Reviewed by Kent Tamura.

https://bugs.webkit.org/show_bug.cgi?id=45020
Support "block-flow" and "writing-mode": interpret properties into RenderStyle

Fixed a regression in SVG test introduced by my previous change.

  • css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::operator EWritingMode):
  • css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r67690 r67695  
     12010-09-16  takano takumi  <takano1@asia.apple.com>
     2
     3        Reviewed by Kent Tamura.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=45020
     6        Support "block-flow" and "writing-mode": interpret properties into RenderStyle
     7
     8        Fixed a regression in SVG test introduced by my previous change.
     9
     10        * css/CSSPrimitiveValueMappings.h:
     11        (WebCore::CSSPrimitiveValue::operator EWritingMode):
     12        * css/SVGCSSParser.cpp:
     13        (WebCore::CSSParser::parseSVGValue):
     14
    1152010-09-16  Kenneth Russell  <kbr@google.com>
    216
  • trunk/WebCore/css/CSSPrimitiveValueMappings.h

    r67667 r67695  
    26852685template<> inline CSSPrimitiveValue::operator EWritingMode() const
    26862686{
    2687     return static_cast<EWritingMode>(m_value.ident - CSSValueLrTb);
     2687    switch (m_value.ident) {
     2688    case CSSValueLrTb:
     2689        return WM_LRTB;
     2690    case CSSValueLr:
     2691        return WM_LR;
     2692    case CSSValueRlTb:
     2693        return WM_RLTB;
     2694    case CSSValueRl:
     2695        return WM_RL;
     2696    case CSSValueTbRl:
     2697        return WM_TBRL;
     2698    case CSSValueTb:
     2699        return WM_TB;
     2700    default:
     2701        ASSERT_NOT_REACHED();
     2702        return WM_LRTB;
     2703    }
    26882704}
    26892705
  • trunk/WebCore/css/SVGCSSParser.cpp

    r61837 r67695  
    233233    case CSSPropertyWritingMode:
    234234    // lr-tb | rl_tb | tb-rl | lr | rl | tb | inherit
    235         if (id >= CSSValueLrTb && id <= CSSValueTb)
     235        if (id == CSSValueLrTb || id == CSSValueRlTb || id == CSSValueTbRl || id == CSSValueLr || id == CSSValueRl || id == CSSValueTb)
    236236            valid_primitive = true;
    237237        break;
Note: See TracChangeset for help on using the changeset viewer.