Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
index 59481168c6b51d0c2b527e6ed4771f5c0aa0e833..ec8668171161e9023f9dc69953e6a66d98609936 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -178,10 +178,13 @@ LayoutObject* LayoutObject::createObject(Element* element, |
switch (style.display()) { |
case EDisplay::None: |
- case EDisplay::Contents: |
return nullptr; |
case EDisplay::Inline: |
return new LayoutInline(element); |
+ case EDisplay::Contents: |
+ if (LIKELY(!element->isSVGElement())) |
rune
2017/02/08 22:28:18
Shouldn't this be testing isSVGSVGElement? Also, i
|
+ return nullptr; |
+ // else fallthrough |
rune
2017/02/08 22:28:18
Just "// fallthrough".
|
case EDisplay::Block: |
case EDisplay::FlowRoot: |
case EDisplay::InlineBlock: |