summaryrefslogtreecommitdiffstats
path: root/layout/tables/nsTableCellFrame.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:18:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:18:07 +0000
commit328078c4d259e52db1a4848c00ee0b420775c91c (patch)
treeca9b0e61a1c03f0246b0371423bbbe570193e2f1 /layout/tables/nsTableCellFrame.cpp
parentAdding upstream version 115.8.0esr. (diff)
downloadfirefox-esr-upstream/115.9.0esr.tar.xz
firefox-esr-upstream/115.9.0esr.zip
Adding upstream version 115.9.0esr.upstream/115.9.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/tables/nsTableCellFrame.cpp')
-rw-r--r--layout/tables/nsTableCellFrame.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp
index 6ebe9c1daf..72d2b2943e 100644
--- a/layout/tables/nsTableCellFrame.cpp
+++ b/layout/tables/nsTableCellFrame.cpp
@@ -169,7 +169,11 @@ nsresult nsTableCellFrame::AttributeChanged(int32_t aNameSpaceID,
NS_FRAME_IS_DIRTY);
}
- if (aAttribute == nsGkAtoms::rowspan || aAttribute == nsGkAtoms::colspan) {
+ const nsAtom* colSpanAttribute =
+ MOZ_UNLIKELY(mContent->AsElement()->IsMathMLElement())
+ ? nsGkAtoms::columnspan_
+ : nsGkAtoms::colspan;
+ if (aAttribute == nsGkAtoms::rowspan || aAttribute == colSpanAttribute) {
nsLayoutUtils::PostRestyleEvent(mContent->AsElement(), RestyleHint{0},
nsChangeHint_UpdateTableCellSpans);
}