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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user