Bug 1265154 - Fix compile error in MSVC 2013 caused by ArrayLength;
MozReview-Commit-ID: DvyCNwTRiI7
--- a/layout/style/nsCSSProps.cpp
+++ b/layout/style/nsCSSProps.cpp
@@ -905,18 +905,18 @@ KTableEntry nsCSSProps::kBackgroundClipK
{ eCSSKeyword_padding_box, NS_STYLE_IMAGELAYER_CLIP_PADDING },
{ eCSSKeyword_content_box, NS_STYLE_IMAGELAYER_CLIP_CONTENT },
// The next entry is controlled by the layout.css.background-clip-text.enabled
// pref.
{ eCSSKeyword_text, NS_STYLE_IMAGELAYER_CLIP_TEXT },
{ eCSSKeyword_UNKNOWN, -1 }
};
-static_assert(ArrayLength(nsCSSProps::kImageLayerOriginKTable) ==
- ArrayLength(nsCSSProps::kBackgroundClipKTable) - 1,
+static_assert(MOZ_ARRAY_LENGTH(nsCSSProps::kImageLayerOriginKTable) ==
+ MOZ_ARRAY_LENGTH(nsCSSProps::kBackgroundClipKTable) - 1,
"background-clip has one extra value, which is text, compared"
"to {background,mask}-origin");
// Note: Don't change this table unless you update
// ParseImageLayerPosition!
const KTableEntry nsCSSProps::kImageLayerPositionKTable[] = {
{ eCSSKeyword_center, NS_STYLE_IMAGELAYER_POSITION_CENTER },