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 332849 457c492187c7efca1a56cc5daee4834567116c06
parent 332848 805051b9a46259319d5c56424cb5249efc811363
child 332850 c75f82688e73ebf73a7157a9b6b765daaae50d1c
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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