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

Unified Diff: Source/core/dom/RenderTreeBuilder.cpp

Issue 343443003: Remove SVGElement::rendererIsNeeded (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove accidently squashed patch Created 6 years, 6 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 | Source/core/svg/SVGElement.cpp » ('j') | Source/core/svg/SVGElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/RenderTreeBuilder.cpp
diff --git a/Source/core/dom/RenderTreeBuilder.cpp b/Source/core/dom/RenderTreeBuilder.cpp
index 2454d57bb746e5defc65823c1392b4859944209b..7c6416e952e05c96f6f51ef81251256a69df2004 100644
--- a/Source/core/dom/RenderTreeBuilder.cpp
+++ b/Source/core/dom/RenderTreeBuilder.cpp
@@ -27,7 +27,6 @@
#include "core/dom/RenderTreeBuilder.h"
#include "core/HTMLNames.h"
-#include "core/SVGNames.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/FullscreenElementStack.h"
#include "core/dom/Node.h"
@@ -36,7 +35,6 @@
#include "core/rendering/RenderObject.h"
#include "core/rendering/RenderText.h"
#include "core/rendering/RenderView.h"
-#include "core/svg/SVGElement.h"
#include "platform/RuntimeEnabledFeatures.h"
namespace WebCore {
@@ -78,13 +76,6 @@ bool RenderTreeBuilder::shouldCreateRenderer() const
{
if (!m_renderingParent)
return false;
- if (m_node->isSVGElement()) {
- // SVG elements only render when inside <svg>, or if the element is an <svg> itself.
- if (!isSVGSVGElement(*m_node) && !m_renderingParent->isSVGElement())
- return false;
- if (!toSVGElement(m_node)->isValid())
- return false;
- }
RenderObject* parentRenderer = this->parentRenderer();
if (!parentRenderer)
return false;
« no previous file with comments | « no previous file | Source/core/svg/SVGElement.cpp » ('j') | Source/core/svg/SVGElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698