mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 22:05:40 +00:00
Fix incorrectly-written assertion. b=345620 r+sr=bzbarsky
This commit is contained in:
parent
bf613adffe
commit
e15a4df54d
@ -5939,8 +5939,10 @@ PRBool CSSParserImpl::ParseTextShadow(nsresult& aErrorCode)
|
||||
val->Item(IndexX) = cur->mValue;
|
||||
} else {
|
||||
// Must be a color (as string or color value)
|
||||
NS_ASSERTION(unit == eCSSUnit_String || unit == eCSSUnit_Color,
|
||||
"Must be a color value");
|
||||
NS_ASSERTION(unit == eCSSUnit_String || unit == eCSSUnit_Color ||
|
||||
unit == eCSSUnit_Integer,
|
||||
"Must be a color value (named color, numeric color, "
|
||||
"or system color)");
|
||||
haveColor = PR_TRUE;
|
||||
val->Item(IndexColor) = cur->mValue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user