summaryrefslogtreecommitdiffstats
path: root/layout/tables/nsITableCellLayout.h
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-02-03 20:47:41 +0200
committerwin7-7 <win7-7@users.noreply.github.com>2020-02-03 20:47:41 +0200
commit597a6996f14429d09a7c89b1f774d2490cca3dd6 (patch)
tree3dbc37b8f412d636abcb5b167f58f3fbb1faa2a0 /layout/tables/nsITableCellLayout.h
parentc4e1022f578b264641f5e25fcef3069bdae7490e (diff)
downloadUXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar.gz
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar.lz
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar.xz
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.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/nsITableCellLayout.h')
-rw-r--r--layout/tables/nsITableCellLayout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/tables/nsITableCellLayout.h b/layout/tables/nsITableCellLayout.h
index e761d76be..a366b150e 100644
--- a/layout/tables/nsITableCellLayout.h
+++ b/layout/tables/nsITableCellLayout.h
@@ -7,6 +7,10 @@
#include "nsQueryFrame.h"
+#define MAX_ROWSPAN 65534 // the cellmap can not handle more.
+#define MAX_COLSPAN 1000 // limit as IE and opera do. If this ever changes,
+// change COL_SPAN_OFFSET/COL_SPAN_SHIFT accordingly.
+
/**
* nsITableCellLayout
* interface for layout objects that act like table cells.