mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
aad7a3f94c
commit
eda421bf9b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user