Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert

MozReview-Commit-ID: 1n3TC3CVY7U
This commit is contained in:
Xidorn Quan
2016-12-30 02:03:29 +11:00
parent 278745dc6a
commit 8de7838e67
17 changed files with 74 additions and 49 deletions

View File

@@ -1075,7 +1075,7 @@ HTMLTableAccessible::IsProbablyLayoutTable()
if (child->Role() == roles::ROW) {
prevRowColor = rowColor;
nsIFrame* rowFrame = child->GetFrame();
rowColor = rowFrame->StyleBackground()->mBackgroundColor;
rowColor = rowFrame->StyleBackground()->BackgroundColor(rowFrame);
if (childIdx > 0 && prevRowColor != rowColor)
RETURN_LAYOUT_ANSWER(false, "2 styles of row background color, non-bordered");