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

Remove dead code in SVGUseElement::CreateLayoutObject

Since we return false for 'display: contents' in the relevant
LayoutObjectIsNeeded() override, we shouldn't need to check for it again
here.

Bug: 997176
Change-Id: I589ea2291aa2ef31a6ea68d5e8a882251f587ec4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768459Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#690311}
parent 004b5082
......@@ -486,8 +486,6 @@ void SVGUseElement::DetachShadowTree() {
LayoutObject* SVGUseElement::CreateLayoutObject(const ComputedStyle& style,
LegacyLayout) {
if (style.Display() == EDisplay::kContents)
return nullptr;
return new LayoutSVGTransformableContainer(this);
}
......
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