Commit d76a653a authored by Chris Harrelson's avatar Chris Harrelson Committed by Commit Bot

Remove dead code after previous CL

Change-Id: Ib5a7acb234270440bea4c35ceda74b952665192a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2344811
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Auto-Submit: Chris Harrelson <chrishtr@chromium.org>
Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796620}
parent 028082e3
...@@ -2460,10 +2460,11 @@ PaintLayer* PaintLayer::HitTestChildren( ...@@ -2460,10 +2460,11 @@ PaintLayer* PaintLayer::HitTestChildren(
void PaintLayer::UpdateFilterReferenceBox() { void PaintLayer::UpdateFilterReferenceBox() {
if (!HasFilterThatMovesPixels()) if (!HasFilterThatMovesPixels())
return; return;
FloatRect reference_box = PhysicalRect result = LocalBoundingBox();
FloatRect(PhysicalBoundingBoxIncludingStackingChildren( ExpandRectForStackingChildren(
PhysicalOffset(), *this, result, PaintLayer::kIncludeTransformsAndCompositedChildLayers);
PaintLayer::kIncludeTransformsAndCompositedChildLayers)); FloatRect reference_box = FloatRect(result);
float zoom = GetLayoutObject().StyleRef().EffectiveZoom(); float zoom = GetLayoutObject().StyleRef().EffectiveZoom();
if (zoom != 1) if (zoom != 1)
reference_box.Scale(1 / zoom); reference_box.Scale(1 / zoom);
...@@ -2677,16 +2678,6 @@ void PaintLayer::ExpandRectForStackingChildren( ...@@ -2677,16 +2678,6 @@ void PaintLayer::ExpandRectForStackingChildren(
} }
} }
PhysicalRect PaintLayer::PhysicalBoundingBoxIncludingStackingChildren(
const PhysicalOffset& offset_from_root,
CalculateBoundsOptions options) const {
PhysicalRect result = LocalBoundingBox();
ExpandRectForStackingChildren(*this, result, options);
result.Move(offset_from_root);
return result;
}
PhysicalRect PaintLayer::BoundingBoxForCompositing() const { PhysicalRect PaintLayer::BoundingBoxForCompositing() const {
return BoundingBoxForCompositingInternal( return BoundingBoxForCompositingInternal(
*this, nullptr, kMaybeIncludeTransformForAncestorLayer); *this, nullptr, kMaybeIncludeTransformForAncestorLayer);
......
...@@ -462,7 +462,6 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient { ...@@ -462,7 +462,6 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
// paintsWithTransform() is true. // paintsWithTransform() is true.
enum CalculateBoundsOptions { enum CalculateBoundsOptions {
kMaybeIncludeTransformForAncestorLayer, kMaybeIncludeTransformForAncestorLayer,
kNeverIncludeTransformForAncestorLayer,
kIncludeTransformsAndCompositedChildLayers, kIncludeTransformsAndCompositedChildLayers,
}; };
...@@ -470,9 +469,6 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient { ...@@ -470,9 +469,6 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
PhysicalRect PhysicalBoundingBox( PhysicalRect PhysicalBoundingBox(
const PhysicalOffset& offset_from_root) const; const PhysicalOffset& offset_from_root) const;
PhysicalRect PhysicalBoundingBox(const PaintLayer* ancestor_layer) const; PhysicalRect PhysicalBoundingBox(const PaintLayer* ancestor_layer) const;
PhysicalRect PhysicalBoundingBoxIncludingStackingChildren(
const PhysicalOffset& offset_from_root,
CalculateBoundsOptions = kMaybeIncludeTransformForAncestorLayer) const;
PhysicalRect FragmentsBoundingBox(const PaintLayer* ancestor_layer) const; PhysicalRect FragmentsBoundingBox(const PaintLayer* ancestor_layer) const;
PhysicalRect BoundingBoxForCompositingOverlapTest() const; PhysicalRect BoundingBoxForCompositingOverlapTest() const;
......
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