| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index 4ef201d6046e7e15002b0d2bbab97b7bf23fa602..a271cdc5a84f06eecfd1fbe26a39437d8a30078d 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"
|
| @@ -1088,7 +1089,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());
|
| @@ -1105,7 +1106,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();
|
|
|