Bug 969867 - Treat U+2063 and U+2064 as invisible operators. r=karlt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user