| Index: third_party/WebKit/Source/core/svg/SVGElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
|
| index 88b13cabd79b091f5a2cf4d69f8c1e4987973a16..05a1963d10b0d5313846d7f116e3aeadd9791ce9 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
|
| @@ -1026,6 +1026,14 @@ PassRefPtr<ComputedStyle> SVGElement::customStyleForLayoutObject() {
|
| correspondingElement(), style, DisallowStyleSharing);
|
| }
|
|
|
| +bool SVGElement::layoutObjectIsNeeded(const ComputedStyle& style) {
|
| + // Display: contents on SVG isn't really specified, see:
|
| + // https://www.w3.org/TR/SVG/painting.html#DisplayProperty
|
| + if (style.display() == EDisplay::Contents)
|
| + return true;
|
| + return Element::layoutObjectIsNeeded(style);
|
| +}
|
| +
|
| MutableStylePropertySet* SVGElement::animatedSMILStyleProperties() const {
|
| if (hasSVGRareData())
|
| return svgRareData()->animatedSMILStyleProperties();
|
|
|