From 410072b2b22dbb1b080f2ca527ff59020ad6f4fd Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Thu, 20 Jun 2013 18:31:27 -0700 Subject: [PATCH] Bug 807184 patch 2: Remove support for prefixed -moz-initial (in favor of unprefixed initial). r=dholbert --- layout/style/nsCSSKeywordList.h | 1 - layout/style/nsCSSParser.cpp | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/layout/style/nsCSSKeywordList.h b/layout/style/nsCSSKeywordList.h index d0db0ead3b3b..9e07d01d9d15 100644 --- a/layout/style/nsCSSKeywordList.h +++ b/layout/style/nsCSSKeywordList.h @@ -90,7 +90,6 @@ CSS_KEY(-moz-html-cellhighlight, _moz_html_cellhighlight) CSS_KEY(-moz-html-cellhighlighttext, _moz_html_cellhighlighttext) CSS_KEY(-moz-image-rect, _moz_image_rect) CSS_KEY(-moz-info, _moz_info) -CSS_KEY(-moz-initial, _moz_initial) CSS_KEY(-moz-inline-box, _moz_inline_box) CSS_KEY(-moz-inline-grid, _moz_inline_grid) CSS_KEY(-moz-inline-stack, _moz_inline_stack) diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index 2c5c518a3182..04ee43ffde4d 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -5169,8 +5169,7 @@ CSSParserImpl::ParseVariant(nsCSSValue& aValue, aValue.SetInheritValue(); return true; } - else if (eCSSKeyword__moz_initial == keyword || - eCSSKeyword_initial == keyword) { // anything that can inherit can also take an initial val. + else if (eCSSKeyword_initial == keyword) { // anything that can inherit can also take an initial val. aValue.SetInitialValue(); return true; } @@ -6956,7 +6955,6 @@ CSSParserImpl::ParseBackgroundItem(CSSParserImpl::BackgroundParseState& aState) nsCSSKeyword keyword = nsCSSKeywords::LookupKeyword(mToken.mIdent); int32_t dummy; if (keyword == eCSSKeyword_inherit || - keyword == eCSSKeyword__moz_initial || keyword == eCSSKeyword_initial) { return false; } else if (keyword == eCSSKeyword_none) { @@ -8353,7 +8351,6 @@ CSSParserImpl::ParseRect(nsCSSProperty aPropID) val.SetInheritValue(); break; case eCSSKeyword_initial: - case eCSSKeyword__moz_initial: if (!ExpectEndProperty()) { return false; } @@ -9064,7 +9061,7 @@ CSSParserImpl::ParseFamily(nsCSSValue& aValue) if (keyword == eCSSKeyword_default) { return false; } - if (keyword == eCSSKeyword__moz_initial || keyword == eCSSKeyword_initial) { + if (keyword == eCSSKeyword_initial) { aValue.SetInitialValue(); return true; } @@ -9093,7 +9090,6 @@ CSSParserImpl::ParseFamily(nsCSSValue& aValue) case eCSSKeyword_inherit: case eCSSKeyword_initial: case eCSSKeyword_default: - case eCSSKeyword__moz_initial: case eCSSKeyword__moz_use_system_font: return false; default: