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/rendering/style/StyleGridItemData.cpp

    r144762 r153746  
    3636
    3737StyleGridItemData::StyleGridItemData()
    38     : m_gridStart(RenderStyle::initialGridPosition())
    39     , m_gridEnd(RenderStyle::initialGridPosition())
    40     , m_gridBefore(RenderStyle::initialGridPosition())
    41     , m_gridAfter(RenderStyle::initialGridPosition())
     38    : m_gridColumnStart(RenderStyle::initialGridPosition())
     39    , m_gridColumnEnd(RenderStyle::initialGridPosition())
     40    , m_gridRowStart(RenderStyle::initialGridPosition())
     41    , m_gridRowEnd(RenderStyle::initialGridPosition())
    4242{
    4343}
     
    4545StyleGridItemData::StyleGridItemData(const StyleGridItemData& o)
    4646    : RefCounted<StyleGridItemData>()
    47     , m_gridStart(o.m_gridStart)
    48     , m_gridEnd(o.m_gridEnd)
    49     , m_gridBefore(o.m_gridBefore)
    50     , m_gridAfter(o.m_gridAfter)
     47    , m_gridColumnStart(o.m_gridColumnStart)
     48    , m_gridColumnEnd(o.m_gridColumnEnd)
     49    , m_gridRowStart(o.m_gridRowStart)
     50    , m_gridRowEnd(o.m_gridRowEnd)
    5151{
    5252}
Note: See TracChangeset for help on using the changeset viewer.