| Index: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
|
| index 2dbc197fab637af8805eb632f6852f038be19c9b..033c781a6abea914097771e609d1b98d14ec9bec 100644
|
| --- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
|
| @@ -63,12 +63,12 @@ LayoutSize calculateFillTileSize(const LayoutBoxModelObject& obj, const FillLaye
|
|
|
| if (layerWidth.isFixed())
|
| tileSize.setWidth(LayoutUnit(layerWidth.value()));
|
| - else if (layerWidth.hasPercent())
|
| + else if (layerWidth.isPercentOrCalc())
|
| tileSize.setWidth(valueForLength(layerWidth, positioningAreaSize.width()));
|
|
|
| if (layerHeight.isFixed())
|
| tileSize.setHeight(LayoutUnit(layerHeight.value()));
|
| - else if (layerHeight.hasPercent())
|
| + else if (layerHeight.isPercentOrCalc())
|
| tileSize.setHeight(valueForLength(layerHeight, positioningAreaSize.height()));
|
|
|
| // If one of the values is auto we have to use the appropriate
|
|
|