| Index: Source/core/rendering/RenderObject.cpp
|
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
|
| index e1a532645b925f38639bfac65df091fb64780c91..34916a1141730d40bcc8ae02e6bb3e9409fd0f60 100644
|
| --- a/Source/core/rendering/RenderObject.cpp
|
| +++ b/Source/core/rendering/RenderObject.cpp
|
| @@ -1009,16 +1009,6 @@ void RenderObject::addChildFocusRingRects(Vector<LayoutRect>& rects, const Layou
|
| }
|
| }
|
|
|
| -LayoutPoint RenderObject::positionFromPaintInvalidationContainer(const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationState) const
|
| -{
|
| - ASSERT(containerForPaintInvalidation() == paintInvalidationContainer);
|
| -
|
| - if (paintInvalidationContainer == this)
|
| - return LayoutPoint();
|
| -
|
| - return LayoutPoint(localToContainerPoint(LayoutPoint(), paintInvalidationContainer, 0, 0, paintInvalidationState));
|
| -}
|
| -
|
| IntRect RenderObject::absoluteBoundingBoxRect() const
|
| {
|
| Vector<FloatQuad> quads;
|
| @@ -2107,6 +2097,25 @@ FloatPoint RenderObject::localToContainerPoint(const FloatPoint& localPoint, con
|
| return transformState.lastPlanarPoint();
|
| }
|
|
|
| +FloatPoint RenderObject::localToInvalidationBackingPoint(const LayoutPoint& localPoint, RenderLayer** backingLayer)
|
| +{
|
| + const RenderLayerModelObject* paintInvalidationContainer = containerForPaintInvalidation();
|
| + ASSERT(paintInvalidationContainer);
|
| + RenderLayer* layer = paintInvalidationContainer->layer();
|
| + ASSERT(layer);
|
| +
|
| + if (backingLayer)
|
| + *backingLayer = layer;
|
| + FloatPoint containerPoint = localToContainerPoint(localPoint, paintInvalidationContainer, TraverseDocumentBoundaries);
|
| +
|
| + if (layer->compositingState() == NotComposited) // This can happen for RenderFlowThread.
|
| + return containerPoint;
|
| +
|
| + RenderLayer::mapPointToPaintBackingCoordinates(paintInvalidationContainer, containerPoint);
|
| + return containerPoint;
|
| +}
|
| +
|
| +
|
| LayoutSize RenderObject::offsetFromContainer(const RenderObject* o, const LayoutPoint& point, bool* offsetDependsOnPoint) const
|
| {
|
| ASSERT(o == container());
|
|
|