Changeset 208678 in webkit


Ignore:
Timestamp:
Nov 14, 2016 5:48:41 AM (8 years ago)
Author:
Csaba Osztrogonác
Message:

Fix the !ENABLE(CSS_GRID_LAYOUT) build
https://bugs.webkit.org/show_bug.cgi?id=164477

Reviewed by Darin Adler.

  • css/parser/CSSParserFastPaths.cpp:

(WebCore::isSimpleLengthPropertyID):

  • css/parser/CSSPropertyParser.cpp:

(WebCore::CSSPropertyParser::parseSingleValue):
(WebCore::CSSPropertyParser::parseShorthand):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r208677 r208678  
     12016-11-14  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        Fix the !ENABLE(CSS_GRID_LAYOUT) build
     4        https://bugs.webkit.org/show_bug.cgi?id=164477
     5
     6        Reviewed by Darin Adler.
     7
     8        * css/parser/CSSParserFastPaths.cpp:
     9        (WebCore::isSimpleLengthPropertyID):
     10        * css/parser/CSSPropertyParser.cpp:
     11        (WebCore::CSSPropertyParser::parseSingleValue):
     12        (WebCore::CSSPropertyParser::parseShorthand):
     13
    1142016-11-14  Csaba Osztrogonác  <ossy@webkit.org>
    215
  • trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp

    r208636 r208678  
    5050    switch (propertyId) {
    5151    case CSSPropertyFontSize:
     52#if ENABLE(CSS_GRID_LAYOUT)
    5253    case CSSPropertyGridColumnGap:
    5354    case CSSPropertyGridRowGap:
     55#endif
    5456    case CSSPropertyHeight:
    5557    case CSSPropertyWidth:
  • trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp

    r208620 r208678  
    26842684}
    26852685
     2686#if ENABLE(CSS_GRID_LAYOUT)
    26862687static RefPtr<CSSValueList> consumeGridAutoFlow(CSSParserTokenRange& range)
    26872688{
     
    27002701    return parsedValues;
    27012702}
     2703#endif
    27022704
    27032705static RefPtr<CSSValue> consumeBackgroundComponent(CSSPropertyID property, CSSParserTokenRange& range, const CSSParserContext& context)
     
    35603562    case CSSPropertyTransitionTimingFunction:
    35613563        return consumeAnimationPropertyList(property, m_range, m_context);
     3564#if ENABLE(CSS_GRID_LAYOUT)
    35623565    case CSSPropertyGridColumnGap:
    35633566    case CSSPropertyGridRowGap:
    35643567        return consumeLength(m_range, m_context.mode, ValueRangeNonNegative);
     3568#endif
    35653569    case CSSPropertyShapeMargin:
    35663570        return consumeLengthOrPercent(m_range, m_context.mode, ValueRangeNonNegative);
     
    47104714}
    47114715
     4716#if ENABLE(CSS_GRID_LAYOUT)
    47124717bool CSSPropertyParser::consumeGridItemPositionShorthand(CSSPropertyID shorthandId, bool important)
    47134718{
     
    49684973    return true;
    49694974}
     4975#endif
    49704976
    49714977bool CSSPropertyParser::parseShorthand(CSSPropertyID property, bool important)
     
    51205126    case CSSPropertyPerspectiveOrigin:
    51215127        return consumePerspectiveOrigin(important);
     5128#if ENABLE(CSS_GRID_LAYOUT)
    51225129    case CSSPropertyGridGap: {
    51235130        RefPtr<CSSValue> rowGap = consumeLength(m_range, m_context.mode, ValueRangeNonNegative);
     
    51405147    case CSSPropertyGrid:
    51415148        return consumeGridShorthand(important);
     5149#endif
    51425150    case CSSPropertyWebkitMarquee:
    51435151        return consumeShorthandGreedily(webkitMarqueeShorthand(), important);
Note: See TracChangeset for help on using the changeset viewer.