Bug 1389029 - Create custom change hint and post restyle event for rowspan, colspan attribute changes. r=dbaron

MozReview-Commit-ID: IwUlgDa3DAj
This commit is contained in:
Neerja Pancholi
2017-09-05 13:30:40 -07:00
parent 0d32baa271
commit bb48ee0cd8
7 changed files with 61 additions and 33 deletions

View File

@@ -9958,6 +9958,21 @@ nsCSSFrameConstructor::MaybeRecreateContainerForFrameRemoval(
return true;
}
void
nsCSSFrameConstructor::UpdateTableCellSpans(nsIContent* aContent)
{
nsTableCellFrame* cellFrame = do_QueryFrame(aContent->GetPrimaryFrame());
// It's possible that this warning could fire if some other style change
// simultaneously changes the 'display' of the element and makes it no
// longer be a table cell.
NS_WARNING_ASSERTION(cellFrame, "Hint should only be posted on table cells!");
if (cellFrame) {
cellFrame->GetTableFrame()->RowOrColSpanChanged(cellFrame);
}
}
void
nsCSSFrameConstructor::RecreateFramesForContent(nsIContent* aContent,
InsertionKind aInsertionKind,