Bug 1303623 - Part3. Parser changes. r=heycam

MozReview-Commit-ID: AQz596lVFnd

--HG--
extra : rebase_source : 05763779146dbd91586317345b742a043730fb5c
This commit is contained in:
Ethan Lin 2016-10-19 15:49:10 +08:00
Родитель f1d376b659
Коммит 118c327468
2 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -416,7 +416,13 @@ Declaration::GetImageLayerValue(
NS_STYLE_IMAGELAYER_CLIP_PADDING ==
NS_STYLE_IMAGELAYER_ORIGIN_PADDING &&
NS_STYLE_IMAGELAYER_CLIP_CONTENT ==
NS_STYLE_IMAGELAYER_ORIGIN_CONTENT,
NS_STYLE_IMAGELAYER_ORIGIN_CONTENT &&
NS_STYLE_IMAGELAYER_CLIP_FILL ==
NS_STYLE_IMAGELAYER_ORIGIN_FILL &&
NS_STYLE_IMAGELAYER_CLIP_STROKE ==
NS_STYLE_IMAGELAYER_ORIGIN_STROKE &&
NS_STYLE_IMAGELAYER_CLIP_VIEW ==
NS_STYLE_IMAGELAYER_ORIGIN_VIEW,
"mask-clip and mask-origin style constants must agree");
aValue.Append(char16_t(' '));
origin->mValue.AppendToString(aTable[nsStyleImageLayers::origin], aValue,

Просмотреть файл

@ -12539,7 +12539,13 @@ CSSParserImpl::ParseImageLayersItem(
NS_STYLE_IMAGELAYER_CLIP_PADDING ==
NS_STYLE_IMAGELAYER_ORIGIN_PADDING &&
NS_STYLE_IMAGELAYER_CLIP_CONTENT ==
NS_STYLE_IMAGELAYER_ORIGIN_CONTENT,
NS_STYLE_IMAGELAYER_ORIGIN_CONTENT &&
NS_STYLE_IMAGELAYER_CLIP_FILL ==
NS_STYLE_IMAGELAYER_ORIGIN_FILL &&
NS_STYLE_IMAGELAYER_CLIP_STROKE ==
NS_STYLE_IMAGELAYER_ORIGIN_STROKE &&
NS_STYLE_IMAGELAYER_CLIP_VIEW ==
NS_STYLE_IMAGELAYER_ORIGIN_VIEW,
"bg-clip and bg-origin style constants must agree");
CSSParseResult result =