| Index: third_party/WebKit/Source/core/layout/LayoutObject.h
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
|
| index b05e5a6c709c96c38e40bf50cc26d365df6c44cc..22c926166460f9383384d4ca0d023e59e285b789 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.h
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
|
| @@ -1016,11 +1016,14 @@ public:
|
| // Actually do the paint invalidate of rect r for this object which has been computed in the coordinate space
|
| // of the GraphicsLayer backing of |paintInvalidationContainer|. Note that this coordinaten space is not the same
|
| // as the local coordinate space of |paintInvalidationContainer| in the presence of layer squashing.
|
| - void invalidatePaintUsingContainer(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, PaintInvalidationReason) const;
|
| + // In synchronized painting mode, this method appends the rect into paintInvalidationRects without sending the rect
|
| + // to the GraphicsLayer backing.
|
| + void invalidatePaintUsingContainer(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, PaintInvalidationReason, Vector<LayoutRect>& paintInvalidationRects) const;
|
|
|
| - // Invalidate the paint of a specific subrectangle within a given object. The rect |r| is in the object's coordinate space.
|
| - void invalidatePaintRectangle(const LayoutRect&) const;
|
| - void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutRect&) const;
|
| + // Invalidate the paint of a specific subrectangle within a given object. The rect is in this object's coordinate space.
|
| + void invalidatePaintRectangle(const LayoutRect& r) const { invalidatePaintRectangleForDisplayItemClient(*this, r); }
|
| +
|
| + void invalidatePaintRectangleForDisplayItemClient(const DisplayItemClientWrapper&, const LayoutRect&) const;
|
|
|
| // Walk the tree after layout issuing paint invalidations for layoutObjects that have changed or moved, updating bounds that have changed, and clearing paint invalidation state.
|
| virtual void invalidateTreeIfNeeded(PaintInvalidationState&);
|
| @@ -1398,7 +1401,7 @@ protected:
|
| virtual PaintInvalidationReason paintInvalidationReason(const LayoutBoxModelObject& paintInvalidationContainer,
|
| const LayoutRect& oldPaintInvalidationRect, const LayoutPoint& oldPositionFromPaintInvalidationBacking,
|
| const LayoutRect& newPaintInvalidationRect, const LayoutPoint& newPositionFromPaintInvalidationBacking) const;
|
| - virtual void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const LayoutPoint& positionFromPaintInvalidationBacking);
|
| + virtual void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const LayoutPoint& positionFromPaintInvalidationBacking, Vector<LayoutRect>& paintInvalidationRects);
|
|
|
| virtual bool hasNonCompositedScrollbars() const { return false; }
|
|
|
| @@ -1417,7 +1420,7 @@ protected:
|
| // owned by this object, including the object itself, LayoutText/LayoutInline line boxes, etc.,
|
| // not including children which will be invalidated normally during invalidateTreeIfNeeded() and
|
| // parts which are invalidated separately (e.g. scrollbars).
|
| - virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidationContainer, PaintInvalidationReason, const LayoutRect& previousPaintInvalidationRect, const LayoutRect& newPaintInvalidationRect) const;
|
| + virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidationContainer, PaintInvalidationReason, const Vector<LayoutRect>& paintInvalidationRects) const;
|
|
|
| void setIsBackgroundAttachmentFixedObject(bool);
|
|
|
| @@ -1435,7 +1438,7 @@ protected:
|
| const LayoutRect& previousPaintInvalidationRect() const { return m_previousPaintInvalidationRect; }
|
|
|
| private:
|
| - void fullyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationContainer, PaintInvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBounds);
|
| + void fullyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationContainer, PaintInvalidationReason, const LayoutRect& oldBounds, const LayoutRect& newBounds, Vector<LayoutRect>& paintInvalidationRects);
|
|
|
| // Adjusts a paint invalidation rect in the space of |m_previousPaintInvalidationRect| and |m_previousPositionFromPaintInvalidationBacking|
|
| // to be in the space of the |paintInvalidationContainer|,
|
| @@ -1492,9 +1495,6 @@ private:
|
|
|
| static bool isAllowedToModifyLayoutTreeStructure(Document&);
|
|
|
| - // The passed rect is mutated into the coordinate space of the paint invalidation container.
|
| - const LayoutBoxModelObject* invalidatePaintRectangleInternal(LayoutRect&) const;
|
| -
|
| static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUnit::max(), LayoutUnit::max()); }
|
|
|
| RefPtr<ComputedStyle> m_style;
|
|
|