| Index: Source/core/css/CSSComputedStyleDeclaration.cpp
|
| diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| index b7c91f43563f23b746da26e9963946c2511a5de2..25043b7aac7d4125b4d1e94349b1cd5b8dfd209d 100644
|
| --- a/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| +++ b/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| @@ -601,16 +601,11 @@ static PassRefPtr<CSSValue> valueForReflection(const StyleReflection* reflection
|
|
|
| static PassRefPtr<CSSValueList> createPositionListForLayer(CSSPropertyID propertyID, const FillLayer* layer, const RenderStyle* style)
|
| {
|
| + ASSERT_UNUSED(propertyID, propertyID == CSSPropertyBackgroundPosition || propertyID == CSSPropertyWebkitMaskPosition);
|
| RefPtr<CSSValueList> positionList = CSSValueList::createSpaceSeparated();
|
| - if (layer->isBackgroundXOriginSet()) {
|
| - ASSERT_UNUSED(propertyID, propertyID == CSSPropertyBackgroundPosition || propertyID == CSSPropertyWebkitMaskPosition);
|
| - positionList->append(cssValuePool().createValue(layer->backgroundXOrigin()));
|
| - }
|
| + positionList->append(cssValuePool().createValue(layer->backgroundXOrigin()));
|
| positionList->append(zoomAdjustedPixelValueForLength(layer->xPosition(), style));
|
| - if (layer->isBackgroundYOriginSet()) {
|
| - ASSERT(propertyID == CSSPropertyBackgroundPosition || propertyID == CSSPropertyWebkitMaskPosition);
|
| - positionList->append(cssValuePool().createValue(layer->backgroundYOrigin()));
|
| - }
|
| + positionList->append(cssValuePool().createValue(layer->backgroundYOrigin()));
|
| positionList->append(zoomAdjustedPixelValueForLength(layer->yPosition(), style));
|
| return positionList.release();
|
| }
|
|
|