Bug 1342801 - Store the 'writing-mode' used value on nsIFrame and make GetWritingMode non-virtual. r=jfkthame

MozReview-Commit-ID: HPhuxjDbOdh
This commit is contained in:
Mats Palmgren
2017-02-28 18:58:30 +01:00
parent 6fda8ba201
commit 2911a72040
20 changed files with 126 additions and 105 deletions

View File

@@ -92,6 +92,13 @@ nsTableCellFrame::Init(nsIContent* aContent,
int32_t colIndex;
cellFrame->GetColIndex(colIndex);
SetColIndex(colIndex);
} else {
// Although the spec doesn't say that writing-mode is not applied to
// table-cells, we still override style value here because we want to
// make effective writing mode of table structure frames consistent
// within a table. The content inside table cells is reflowed by an
// anonymous block, hence their writing mode is not affected.
mWritingMode = GetTableFrame()->GetWritingMode();
}
}