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

Drop the LayoutObject type tag for LayoutSVGResourceFilter

We already have a "type tag" as part of the LayoutSVGResourceContainer
handling, and can use that instead.

Change-Id: I668a95abf214c744fe76a9377ab6db5ed71f249b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095068
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748373}
parent bc85cdfc
......@@ -835,9 +835,6 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
bool IsSVGResourceContainer() const {
return IsOfType(kLayoutObjectSVGResourceContainer);
}
bool IsSVGResourceFilter() const {
return IsOfType(kLayoutObjectSVGResourceFilter);
}
bool IsSVGResourceFilterPrimitive() const {
return IsOfType(kLayoutObjectSVGResourceFilterPrimitive);
}
......@@ -2602,7 +2599,6 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
kLayoutObjectSVGImage,
kLayoutObjectSVGForeignObject,
kLayoutObjectSVGResourceContainer,
kLayoutObjectSVGResourceFilter,
kLayoutObjectSVGResourceFilterPrimitive,
};
virtual bool IsOfType(LayoutObjectType type) const { return false; }
......
......@@ -70,10 +70,6 @@ class LayoutSVGResourceFilter final : public LayoutSVGResourceContainer {
bool IsChildAllowed(LayoutObject*, const ComputedStyle&) const override;
const char* GetName() const override { return "LayoutSVGResourceFilter"; }
bool IsOfType(LayoutObjectType type) const override {
return type == kLayoutObjectSVGResourceFilter ||
LayoutSVGResourceContainer::IsOfType(type);
}
void RemoveAllClientsFromCache() override;
......@@ -90,7 +86,8 @@ class LayoutSVGResourceFilter final : public LayoutSVGResourceContainer {
// is a single url(...) reference.
LayoutSVGResourceFilter* GetFilterResourceForSVG(const ComputedStyle&);
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceFilter, IsSVGResourceFilter());
DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceFilter,
kFilterResourceType);
} // namespace blink
......
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