Commit a943167c authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Remove dead code in SVGResources::RemoveClientFromCache

This method is never called for a LayoutObject which has a "linked"
resource (<pattern>), so remove the handling of |linked_resource_|.

Change-Id: I8c57804ecb58f4b7e286e427f0b7de84909286b8
Reviewed-on: https://chromium-review.googlesource.com/1243807Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#594041}
parent dd7a3015
...@@ -291,15 +291,8 @@ InvalidationModeMask SVGResources::RemoveClientFromCache( ...@@ -291,15 +291,8 @@ InvalidationModeMask SVGResources::RemoveClientFromCache(
if (!HasResourceData()) if (!HasResourceData())
return 0; return 0;
if (linked_resource_) { // We never call this method for the elements where this would be non-null.
DCHECK(!clipper_filter_masker_data_); DCHECK(!linked_resource_);
DCHECK(!marker_data_);
DCHECK(!fill_stroke_data_);
linked_resource_->RemoveClientFromCache(client);
// The only linked resources are gradients and patterns, i.e
// always a paint server.
return SVGResourceClient::kPaintInvalidation;
}
InvalidationModeMask invalidation_flags = InvalidationModeMask invalidation_flags =
RemoveClientFromCacheAffectingObjectBounds(client); RemoveClientFromCacheAffectingObjectBounds(client);
......
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