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