Commit bd3cdf1b authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

Remove ScrollAdjustmentForPaintInvalidation

When working on another patch I noticed it is deadcode.

Change-Id: I248b12e2f3a5e26af91d2cab89b5b8fd3ace8dd1
Reviewed-on: https://chromium-review.googlesource.com/1239539
Commit-Queue: Philip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593400}
parent b522cfef
......@@ -1532,21 +1532,6 @@ bool LayoutObject::CompositedScrollsWithRespectTo(
this != &paint_invalidation_container;
}
IntSize LayoutObject::ScrollAdjustmentForPaintInvalidation(
const LayoutBoxModelObject& paint_invalidation_container) const {
// Non-composited scrolling should be included in the bounds of scrolled
// items. Since mapToVisualRectInAncestorSpace does not include scrolling of
// the ancestor, we need to add it back in after.
if (paint_invalidation_container.IsBox() &&
!paint_invalidation_container.UsesCompositedScrolling() &&
this != &paint_invalidation_container) {
const LayoutBox* box = ToLayoutBox(&paint_invalidation_container);
if (box->HasOverflowClip())
return -box->ScrolledContentOffset();
}
return IntSize();
}
void LayoutObject::InvalidatePaintRectangle(const LayoutRect& dirty_rect) {
DCHECK_NE(GetDocument().Lifecycle().GetState(), DocumentLifecycle::kInPaint);
......
......@@ -2047,8 +2047,6 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
bool CompositedScrollsWithRespectTo(
const LayoutBoxModelObject& paint_invalidation_container) const;
IntSize ScrollAdjustmentForPaintInvalidation(
const LayoutBoxModelObject& paint_invalidation_container) const;
bool PreviousBackgroundObscured() const {
return bitfields_.PreviousBackgroundObscured();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment