| Index: Source/core/css/StyleResolver.cpp
|
| diff --git a/Source/core/css/StyleResolver.cpp b/Source/core/css/StyleResolver.cpp
|
| index 7164b6f73afa211d00c9bbf669f00e4307ec28bf..45414963a33c397a709fd621d3c7cd05d9eadf64 100644
|
| --- a/Source/core/css/StyleResolver.cpp
|
| +++ b/Source/core/css/StyleResolver.cpp
|
| @@ -1768,14 +1768,14 @@ void StyleResolver::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty
|
| void StyleResolver::adjustGridItemPosition(RenderStyle* style) const
|
| {
|
| // If opposing grid-placement properties both specify a grid span, they both compute to ‘auto’.
|
| - if (style->gridItemStart().isSpan() && style->gridItemEnd().isSpan()) {
|
| - style->setGridItemStart(GridPosition());
|
| - style->setGridItemEnd(GridPosition());
|
| + if (style->gridStart().isSpan() && style->gridEnd().isSpan()) {
|
| + style->setGridStart(GridPosition());
|
| + style->setGridEnd(GridPosition());
|
| }
|
|
|
| - if (style->gridItemBefore().isSpan() && style->gridItemAfter().isSpan()) {
|
| - style->setGridItemBefore(GridPosition());
|
| - style->setGridItemAfter(GridPosition());
|
| + if (style->gridBefore().isSpan() && style->gridAfter().isSpan()) {
|
| + style->setGridBefore(GridPosition());
|
| + style->setGridAfter(GridPosition());
|
| }
|
| }
|
|
|
| @@ -2997,32 +2997,36 @@ void StyleResolver::applyProperty(CSSPropertyID id, CSSValue* value)
|
| }
|
|
|
| case CSSPropertyWebkitGridStart: {
|
| + HANDLE_INHERIT_AND_INITIAL(gridStart, GridStart);
|
| GridPosition startPosition;
|
| if (!createGridPosition(value, startPosition))
|
| return;
|
| - state.style()->setGridItemStart(startPosition);
|
| + state.style()->setGridStart(startPosition);
|
| return;
|
| }
|
| case CSSPropertyWebkitGridEnd: {
|
| + HANDLE_INHERIT_AND_INITIAL(gridEnd, GridEnd);
|
| GridPosition endPosition;
|
| if (!createGridPosition(value, endPosition))
|
| return;
|
| - state.style()->setGridItemEnd(endPosition);
|
| + state.style()->setGridEnd(endPosition);
|
| return;
|
| }
|
|
|
| case CSSPropertyWebkitGridBefore: {
|
| + HANDLE_INHERIT_AND_INITIAL(gridBefore, GridBefore);
|
| GridPosition beforePosition;
|
| if (!createGridPosition(value, beforePosition))
|
| return;
|
| - state.style()->setGridItemBefore(beforePosition);
|
| + state.style()->setGridBefore(beforePosition);
|
| return;
|
| }
|
| case CSSPropertyWebkitGridAfter: {
|
| + HANDLE_INHERIT_AND_INITIAL(gridAfter, GridAfter);
|
| GridPosition afterPosition;
|
| if (!createGridPosition(value, afterPosition))
|
| return;
|
| - state.style()->setGridItemAfter(afterPosition);
|
| + state.style()->setGridAfter(afterPosition);
|
| return;
|
| }
|
|
|
|
|