| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 7fafa29ea302ac3326f9d2db3e4c2a0254b92f57..2a75ede12f628c4c36e8346f1ed3a1f6c7a8b6cb 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -40,6 +40,7 @@
|
| #include "core/page/AutoscrollController.h"
|
| #include "core/page/EventHandler.h"
|
| #include "core/page/Page.h"
|
| +#include "core/paint/BackgroundImageGeometry.h"
|
| #include "core/paint/BoxPainter.h"
|
| #include "core/rendering/HitTestResult.h"
|
| #include "core/rendering/PaintInfo.h"
|
| @@ -1087,7 +1088,7 @@ void RenderBox::paintBoxDecorationBackground(PaintInfo& paintInfo, const LayoutP
|
| }
|
|
|
|
|
| -bool RenderBox::getBackgroundPaintedExtent(LayoutRect& paintedExtent) const
|
| +bool RenderBox::getBackgroundPaintedExtent(LayoutRect& paintedExtent)
|
| {
|
| ASSERT(hasBackground());
|
| LayoutRect backgroundRect = pixelSnappedIntRect(borderBoxRect());
|
| @@ -1104,7 +1105,7 @@ bool RenderBox::getBackgroundPaintedExtent(LayoutRect& paintedExtent) const
|
| }
|
|
|
| BackgroundImageGeometry geometry;
|
| - calculateBackgroundImageGeometry(0, style()->backgroundLayers(), backgroundRect, geometry);
|
| + BoxPainter::calculateBackgroundImageGeometry(*this, 0, style()->backgroundLayers(), backgroundRect, geometry);
|
| if (geometry.hasNonLocalGeometry())
|
| return false;
|
| paintedExtent = geometry.destRect();
|
|
|