summaryrefslogtreecommitdiffstats
path: root/dom/base/nsContentUtils.h
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-02-03 16:59:23 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:28:14 +0200
commit0ebdc997574ba96199e68f0766e1f220bd00ab35 (patch)
tree393da535fa7287b5349b8fe92d08b8f6492cb59d /dom/base/nsContentUtils.h
parent68d3bc54fbc9b99310197c51dfd84b6f72b7fb01 (diff)
downloadUXP-0ebdc997574ba96199e68f0766e1f220bd00ab35.tar
UXP-0ebdc997574ba96199e68f0766e1f220bd00ab35.tar.gz
UXP-0ebdc997574ba96199e68f0766e1f220bd00ab35.tar.lz
UXP-0ebdc997574ba96199e68f0766e1f220bd00ab35.tar.xz
UXP-0ebdc997574ba96199e68f0766e1f220bd00ab35.zip
Issue #1384 - Match standard for colSpan/rowSpan
HTML standardizes proper behavior of colSpan and rowSpan: The main thing is that getting the .rowSpan and .colSpan IDL properties will now return the actual clamped value that we use.
Diffstat (limited to 'dom/base/nsContentUtils.h')
-rw-r--r--dom/base/nsContentUtils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/base/nsContentUtils.h b/dom/base/nsContentUtils.h
index 606d67de9..ffbd15e78 100644
--- a/dom/base/nsContentUtils.h
+++ b/dom/base/nsContentUtils.h
@@ -444,7 +444,9 @@ public:
// Set if one or more error flags were set.
eParseHTMLInteger_Error = 1 << 3,
eParseHTMLInteger_ErrorNoValue = 1 << 4,
- eParseHTMLInteger_ErrorOverflow = 1 << 5
+ eParseHTMLInteger_ErrorOverflow = 1 << 5,
+ // Use this flag to detect the difference between overflow and underflow
+ eParseHTMLInteger_Negative = 1 << 6,
};
static int32_t ParseHTMLInteger(const nsAString& aValue,
ParseHTMLIntegerResultFlags *aResult);