Bug 1270664 - Use MOZ_ARRAY_LENGTH to avoid MSVC 2013 compiler error; r=dholbert
This is a graft of 082bd84583c3.
MozReview-Commit-ID: 7OFBaWJvGzQ
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -10807,17 +10807,17 @@ CSSParserImpl::ParseWebkitGradient(nsCSS
bool
CSSParserImpl::ParseWebkitTextStroke()
{
static const nsCSSProperty kWebkitTextStrokeIDs[] = {
eCSSProperty__webkit_text_stroke_width,
eCSSProperty__webkit_text_stroke_color
};
- const size_t numProps = ArrayLength(kWebkitTextStrokeIDs);
+ const size_t numProps = MOZ_ARRAY_LENGTH(kWebkitTextStrokeIDs);
nsCSSValue values[numProps];
int32_t found = ParseChoice(values, kWebkitTextStrokeIDs, numProps);
if (found < 1) {
return false;
}
if (!(found & 1)) { // Provide default -webkit-text-stroke-width