| Index: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| index c9696bbf685f2afeac617853ba89e96cfacc7576..0e578afd20edf32e024446b429f914f9553a074f 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| @@ -2891,18 +2891,18 @@ bool CSSPropertyParser::parseGridTemplateAreasRow(NamedGridAreaMap& gridAreaMap,
|
|
|
| // The following checks test that the grid area is a single filled-in rectangle.
|
| // 1. The new row is adjacent to the previously parsed row.
|
| - if (rowCount != gridCoordinate.rows.resolvedFinalPosition().toInt())
|
| + if (rowCount != gridCoordinate.rows.resolvedFinalPosition())
|
| return false;
|
|
|
| // 2. The new area starts at the same position as the previously parsed area.
|
| - if (currentCol != gridCoordinate.columns.resolvedInitialPosition().toInt())
|
| + if (currentCol != gridCoordinate.columns.resolvedInitialPosition())
|
| return false;
|
|
|
| // 3. The new area ends at the same position as the previously parsed area.
|
| - if (lookAheadCol != gridCoordinate.columns.resolvedFinalPosition().toInt())
|
| + if (lookAheadCol != gridCoordinate.columns.resolvedFinalPosition())
|
| return false;
|
|
|
| - gridCoordinate.rows = GridSpan::definiteGridSpan(gridCoordinate.rows.resolvedInitialPosition(), gridCoordinate.rows.resolvedFinalPosition().next());
|
| + gridCoordinate.rows = GridSpan::definiteGridSpan(gridCoordinate.rows.resolvedInitialPosition(), gridCoordinate.rows.resolvedFinalPosition() + 1);
|
| }
|
| currentCol = lookAheadCol - 1;
|
| }
|
|
|