Bug 1289007 - part0: remove redundant codes in ParsePropertyByFunction. r=heycam

CSS align and CSS justify share same parsing function under some conditions.
Let's make these switch branches stick together, so we can remove a bit redundant
codes.

MozReview-Commit-ID: 49IKvqhLSt4

--HG--
extra : rebase_source : 5d8a6aca331a7b3067aeeb865ce624da7cc4dd4a
This commit is contained in:
Jeremy Chen 2016-07-28 15:23:36 +08:00
parent aad7a3f94c
commit eda421bf9b

View File

@ -11563,17 +11563,15 @@ CSSParserImpl::ParsePropertyByFunction(nsCSSProperty aPropID)
case eCSSProperty_image_region:
return ParseRect(eCSSProperty_image_region);
case eCSSProperty_align_content:
case eCSSProperty_justify_content:
return ParseAlignJustifyContent(aPropID);
case eCSSProperty_align_items:
return ParseAlignItems();
case eCSSProperty_align_self:
return ParseAlignJustifySelf(aPropID);
case eCSSProperty_justify_content:
return ParseAlignJustifyContent(aPropID);
case eCSSProperty_justify_items:
return ParseJustifyItems();
case eCSSProperty_justify_self:
return ParseAlignJustifySelf(aPropID);
case eCSSProperty_justify_items:
return ParseJustifyItems();
case eCSSProperty_list_style:
return ParseListStyle();
case eCSSProperty_margin: