Bug 1265154 - Fix compile error in MSVC 2013 caused by ArrayLength; r=heycam

MozReview-Commit-ID: DvyCNwTRiI7
This commit is contained in:
CJKu 2016-04-18 11:31:24 +08:00
parent 05276091f4
commit 1f80f6d497

View File

@ -910,8 +910,8 @@ KTableEntry nsCSSProps::kBackgroundClipKTable[] = {
{ 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");