Ignore:
Timestamp:
Aug 6, 2013, 3:33:32 AM (12 years ago)
Author:
sergio@webkit.org
Message:

[CSS Grid Layout] Rename grid placement properties
https://bugs.webkit.org/show_bug.cgi?id=117878

Reviewed by Andreas Kling.

Renamed the grid placement properties to match the latest version
of the spec. The new names are -webkit-grid-column-{start|end} and
-webkit-grid-row-{start|end}.

Source/WebCore:

No new tests needed as we're just renaming some properties,
functionality already covered by existing tests in
fast/css-grid-layout.

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::propertyValue):

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseValue):

  • css/CSSProperty.cpp:

(WebCore::CSSProperty::isInheritedProperty):

  • css/CSSPropertyNames.in:
  • css/StylePropertyShorthand.cpp:

(WebCore::webkitGridColumnShorthand):
(WebCore::webkitGridRowShorthand):

  • css/StyleResolver.cpp:

(WebCore::StyleResolver::applyProperty):

  • rendering/RenderGrid.cpp:

(WebCore::RenderGrid::maximumIndexInDirection):
(WebCore::RenderGrid::resolveGridPositionsFromStyle):
(WebCore::RenderGrid::resolveGridPositionFromStyle):

  • rendering/RenderGrid.h:
  • rendering/style/RenderStyle.h:
  • rendering/style/StyleGridItemData.cpp:

(WebCore::StyleGridItemData::StyleGridItemData):

  • rendering/style/StyleGridItemData.h:

(WebCore::StyleGridItemData::operator==):

LayoutTests:

  • fast/css-grid-layout/grid-item-column-row-get-set-expected.txt:
  • fast/css-grid-layout/grid-item-column-row-get-set.html:
  • fast/css-grid-layout/grid-item-end-after-get-set-expected.txt:
  • fast/css-grid-layout/grid-item-end-after-get-set.html:
  • fast/css-grid-layout/grid-item-start-before-get-set-expected.txt:
  • fast/css-grid-layout/grid-item-start-before-get-set.html:
File:
1 edited

Legend:

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

    r153581 r153746  
    292292    CSSPropertyWebkitGridAutoFlow,
    293293    CSSPropertyWebkitGridAutoRows,
     294    CSSPropertyWebkitGridColumnEnd,
     295    CSSPropertyWebkitGridColumnStart,
    294296    CSSPropertyWebkitGridDefinitionColumns,
    295297    CSSPropertyWebkitGridDefinitionRows,
    296     CSSPropertyWebkitGridStart,
    297     CSSPropertyWebkitGridEnd,
    298     CSSPropertyWebkitGridBefore,
    299     CSSPropertyWebkitGridAfter,
     298    CSSPropertyWebkitGridRowEnd,
     299    CSSPropertyWebkitGridRowStart,
    300300    CSSPropertyWebkitHighlight,
    301301    CSSPropertyWebkitHyphenateCharacter,
     
    20422042            return valueForGridTrackList(style->gridRows(), style.get(), m_node->document()->renderView());
    20432043
    2044         case CSSPropertyWebkitGridStart:
    2045             return valueForGridPosition(style->gridItemStart());
    2046         case CSSPropertyWebkitGridEnd:
    2047             return valueForGridPosition(style->gridItemEnd());
    2048         case CSSPropertyWebkitGridBefore:
    2049             return valueForGridPosition(style->gridItemBefore());
    2050         case CSSPropertyWebkitGridAfter:
    2051             return valueForGridPosition(style->gridItemAfter());
     2044        case CSSPropertyWebkitGridColumnStart:
     2045            return valueForGridPosition(style->gridItemColumnStart());
     2046        case CSSPropertyWebkitGridColumnEnd:
     2047            return valueForGridPosition(style->gridItemColumnEnd());
     2048        case CSSPropertyWebkitGridRowStart:
     2049            return valueForGridPosition(style->gridItemRowStart());
     2050        case CSSPropertyWebkitGridRowEnd:
     2051            return valueForGridPosition(style->gridItemRowEnd());
    20522052        case CSSPropertyWebkitGridColumn:
    20532053            return getCSSPropertyValuesForGridShorthand(webkitGridColumnShorthand());
Note: See TracChangeset for help on using the changeset viewer.