Bug 1270664 - Use MOZ_ARRAY_LENGTH to avoid MSVC 2013 compiler error; r=dholbert a=lizzard
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 05 May 2016 19:18:44 -0700
changeset 371631 457c492187c7efca1a56cc5daee4834567116c06
parent 371630 805051b9a46259319d5c56424cb5249efc811363
child 371632 c75f82688e73ebf73a7157a9b6b765daaae50d1c
push id19358
push usercliu@mozilla.com
push dateThu, 26 May 2016 21:42:05 +0000
reviewersdholbert, lizzard
bugs1270664
milestone48.0a2
Bug 1270664 - Use MOZ_ARRAY_LENGTH to avoid MSVC 2013 compiler error; r=dholbert a=lizzard This is a graft of 082bd84583c3. MozReview-Commit-ID: 7OFBaWJvGzQ
layout/style/nsCSSParser.cpp
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -10802,17 +10802,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