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

[CI] Remove useless SPv2 check in CompositingInputsUpdater

The code is not reachable in SPv2 mode. This check is a leftover
from an earlier iteration of the SPv2 implementation.

Change-Id: I3cbeb1f7e085bfab493130c1f2fe3aa1486a33e6
Reviewed-on: https://chromium-review.googlesource.com/c/1351807Reviewed-by: default avatarvmpstr <vmpstr@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611864}
parent f81b6329
...@@ -292,7 +292,6 @@ void CompositingInputsUpdater::UpdateAncestorDependentCompositingInputs( ...@@ -292,7 +292,6 @@ void CompositingInputsUpdater::UpdateAncestorDependentCompositingInputs(
PaintLayer::AncestorDependentCompositingInputs properties; PaintLayer::AncestorDependentCompositingInputs properties;
LayoutBoxModelObject& layout_object = layer->GetLayoutObject(); LayoutBoxModelObject& layout_object = layer->GetLayoutObject();
if (!RuntimeEnabledFeatures::SlimmingPaintV2Enabled()) {
// The final value for |unclipped_absolute_bounding_box| needs to be // The final value for |unclipped_absolute_bounding_box| needs to be
// in absolute, unscrolled space, without any scroll applied. // in absolute, unscrolled space, without any scroll applied.
properties.unclipped_absolute_bounding_box = properties.unclipped_absolute_bounding_box =
...@@ -330,7 +329,6 @@ void CompositingInputsUpdater::UpdateAncestorDependentCompositingInputs( ...@@ -330,7 +329,6 @@ void CompositingInputsUpdater::UpdateAncestorDependentCompositingInputs(
properties.clipped_absolute_bounding_box = properties.clipped_absolute_bounding_box =
properties.unclipped_absolute_bounding_box; properties.unclipped_absolute_bounding_box;
properties.clipped_absolute_bounding_box.Intersect(snapped_clip_rect); properties.clipped_absolute_bounding_box.Intersect(snapped_clip_rect);
}
const PaintLayer* parent = layer->Parent(); const PaintLayer* parent = layer->Parent();
properties.opacity_ancestor = properties.opacity_ancestor =
......
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