Bug 969867 - Treat U+2063 and U+2064 as invisible operators. r=karlt

This commit is contained in:
Mohit Sinha
2014-02-10 08:58:33 -05:00
parent e3661991d6
commit 5522cdd6db
4 changed files with 34 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ nsMathMLmoFrame::~nsMathMLmoFrame()
static const char16_t kInvisibleComma = char16_t(0x200B); // a.k.a. ZERO WIDTH SPACE
static const char16_t kApplyFunction = char16_t(0x2061);
static const char16_t kInvisibleTimes = char16_t(0x2062);
static const char16_t kInvisibleSeparator = char16_t(0x2063);
static const char16_t kInvisiblePlus = char16_t(0x2064);
eMathMLFrameType
nsMathMLmoFrame::GetMathMLFrameType()
@@ -123,6 +125,8 @@ nsMathMLmoFrame::ProcessTextData()
if ((length == 1) &&
(ch == kInvisibleComma ||
ch == kApplyFunction ||
ch == kInvisibleSeparator ||
ch == kInvisiblePlus ||
ch == kInvisibleTimes)) {
mFlags |= NS_MATHML_OPERATOR_INVISIBLE;
}