Index: third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp |
index 77046c3b2ad24a774e8c5737e3b599527bf9ec82..8bc3bdc8608255a72cc05e0d33e17b4f0937dd6c 100644 |
--- a/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp |
+++ b/third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp |
@@ -89,18 +89,6 @@ bool LayoutTreeBuilderForElement::shouldCreateLayoutObject() const { |
if (!m_layoutObjectParent) |
return false; |
- // FIXME: Should the following be in SVGElement::layoutObjectIsNeeded()? |
- if (m_node->isSVGElement()) { |
- // SVG elements only render when inside <svg>, or if the element is an <svg> |
- // itself. |
- if (!isSVGSVGElement(*m_node) && |
- (!m_layoutObjectParent->node() || |
- !m_layoutObjectParent->node()->isSVGElement())) |
- return false; |
- if (!toSVGElement(m_node)->isValid()) |
- return false; |
- } |
- |
LayoutObject* parentLayoutObject = this->parentLayoutObject(); |
if (!parentLayoutObject) |
return false; |