Bug 1375615 - Don't render the grid areas overlay for implicit named grid areas. r=pbro

This commit is contained in:
Gabriel Luong 2017-06-26 12:12:34 -07:00
Родитель a29c316c12
Коммит 24ccb0a1bb
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1161,7 +1161,11 @@ CssGridHighlighter.prototype = extend(AutoRefreshHighlighter.prototype, {
let fragment = this.gridData[i];
for (let area of fragment.areas) {
let { rowStart, rowEnd, columnStart, columnEnd } = area;
let { rowStart, rowEnd, columnStart, columnEnd, type } = area;
if (type === "implicit") {
continue;
}
// Draw the line edges for the grid area
const areaColStart = fragment.cols.lines[columnStart - 1];