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(
void PaintLayer::UpdateFilterReferenceBox() {
if (!HasFilterThatMovesPixels())
return;
FloatRect reference_box =
FloatRect(PhysicalBoundingBoxIncludingStackingChildren(
PhysicalOffset(),
PaintLayer::kIncludeTransformsAndCompositedChildLayers));
PhysicalRect result = LocalBoundingBox();
ExpandRectForStackingChildren(
*this, result, PaintLayer::kIncludeTransformsAndCompositedChildLayers);
FloatRect reference_box = FloatRect(result);
float zoom = GetLayoutObject().StyleRef().EffectiveZoom();
if (zoom != 1)
reference_box.Scale(1 / zoom);
......@@ -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 {
return BoundingBoxForCompositingInternal(
*this, nullptr, kMaybeIncludeTransformForAncestorLayer);
......
......@@ -462,7 +462,6 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
// paintsWithTransform() is true.
enum CalculateBoundsOptions {
kMaybeIncludeTransformForAncestorLayer,
kNeverIncludeTransformForAncestorLayer,
kIncludeTransformsAndCompositedChildLayers,
};
......@@ -470,9 +469,6 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
PhysicalRect PhysicalBoundingBox(
const PhysicalOffset& offset_from_root) 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 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