summaryrefslogtreecommitdiffstats
path: root/layout/tables/nsTableCellFrame.h
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-02-03 20:47:41 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:36:12 +0200
commitbe372691233b6e8d359cb31df337f3ee3f6cb68d (patch)
tree36ae65e74c2fbaf762533383b155554158130b08 /layout/tables/nsTableCellFrame.h
parent8acff5cdbeb2f92be5e9e926b72ba4a1f19d425d (diff)
downloadUXP-be372691233b6e8d359cb31df337f3ee3f6cb68d.tar
UXP-be372691233b6e8d359cb31df337f3ee3f6cb68d.tar.gz
UXP-be372691233b6e8d359cb31df337f3ee3f6cb68d.tar.lz
UXP-be372691233b6e8d359cb31df337f3ee3f6cb68d.tar.xz
UXP-be372691233b6e8d359cb31df337f3ee3f6cb68d.zip
Issue #1386 - Devirtualize GetRowSpan/GetColSpan
It's at ~1.5% on the perf log for the Netflix use case, which seems a bit too much.
Diffstat (limited to 'layout/tables/nsTableCellFrame.h')
-rw-r--r--layout/tables/nsTableCellFrame.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/layout/tables/nsTableCellFrame.h b/layout/tables/nsTableCellFrame.h
index e8dad5c20..ea527b3c5 100644
--- a/layout/tables/nsTableCellFrame.h
+++ b/layout/tables/nsTableCellFrame.h
@@ -165,11 +165,11 @@ public:
/**
* return the cell's specified row span. this is what was specified in the
- * content model or in the style info, and is always >= 1.
+ * content model or in the style info, and is always >= 0.
* to get the effective row span (the actual value that applies), use GetEffectiveRowSpan()
* @see nsTableFrame::GetEffectiveRowSpan()
*/
- virtual int32_t GetRowSpan();
+ int32_t GetRowSpan();
// there is no set row index because row index depends on the cell's parent row only
@@ -191,7 +191,7 @@ public:
* to get the effective col span (the actual value that applies), use GetEffectiveColSpan()
* @see nsTableFrame::GetEffectiveColSpan()
*/
- virtual int32_t GetColSpan();
+ int32_t GetColSpan();
/** return the cell's column index (starting at 0 for the first column) */
virtual nsresult GetColIndex(int32_t &aColIndex) const override;