Index: third_party/WebKit/Source/core/paint/GridPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/GridPainter.cpp b/third_party/WebKit/Source/core/paint/GridPainter.cpp |
index 4860e06f4ea8e6a3ccf0e3faf5847d6cc8eed111..c029941c40bb600a8afc5a8d9f1c71ea113e1a18 100644 |
--- a/third_party/WebKit/Source/core/paint/GridPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/GridPainter.cpp |
@@ -24,7 +24,8 @@ static GridSpan dirtiedGridAreas(const Vector<LayoutUnit>& coordinates, LayoutUn |
if (endGridAreaIndex > 0) |
--endGridAreaIndex; |
- return GridSpan(startGridAreaIndex, endGridAreaIndex); |
+ // GridSpan stores lines' indexes (not tracks' indexes). |
+ return GridSpan(startGridAreaIndex, endGridAreaIndex + 1); |
} |
class GridItemsSorter { |