summaryrefslogtreecommitdiffstats
path: root/layout/tables/celldata.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/celldata.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/celldata.h')
-rw-r--r--layout/tables/celldata.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/layout/tables/celldata.h b/layout/tables/celldata.h
index b744b5175..ac7be58d7 100644
--- a/layout/tables/celldata.h
+++ b/layout/tables/celldata.h
@@ -6,6 +6,7 @@
#define CellData_h__
#include "nsISupports.h"
+#include "nsITableCellLayout.h" // for MAX_COLSPAN / MAX_ROWSPAN
#include "nsCoord.h"
#include "mozilla/gfx/Types.h"
#include "mozilla/WritingModes.h"
@@ -15,11 +16,6 @@ class nsTableCellFrame;
class nsCellMap;
class BCCellData;
-
-#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.
-
/**
* Data stored by nsCellMap to rationalize rowspan and colspan cells.
*/