Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp

Issue 2685113002: Cleanup SVGElement::layoutObjectIsNeeded. (Closed)
Patch Set: Preserving behavior Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698