https://bugs.webkit.org/show_bug.cgi?id=76627
Patch by Shinya Kawanaka <shinyak@google.com> on 2012-01-19
Reviewed by Darin Adler.
Since Node::canHaveLightChildRendererWithShadow is not overriden anywhere, and it returns always false.
We can remove it.
No new tests, because no change in behavior.
* dom/Node.h:
* dom/NodeRenderingContext.cpp:
(WebCore::NodeRenderingContext::shouldCreateRenderer):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105484
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-19 Shinya Kawanaka <shinyak@google.com>
+
+ Node::canHaveLightChildRendererWithShadow is not used anywhere.
+ https://bugs.webkit.org/show_bug.cgi?id=76627
+
+ Reviewed by Darin Adler.
+
+ Since Node::canHaveLightChildRendererWithShadow is not overriden anywhere, and it returns always false.
+ We can remove it.
+
+ No new tests, because no change in behavior.
+
+ * dom/Node.h:
+ * dom/NodeRenderingContext.cpp:
+ (WebCore::NodeRenderingContext::shouldCreateRenderer):
+
2012-01-19 Kinuko Yasuda <kinuko@chromium.org>
Cleanup: make constant variable names in fileapi/ conform to WebKit's coding guideline
bool isDocumentNode() const;
bool isShadowRoot() const { return getFlag(IsShadowRootOrSVGShadowRootFlag) && !isSVGElement(); }
virtual bool isContentElement() const { return false; }
- virtual bool canHaveLightChildRendererWithShadow() const { return false; }
Node* shadowAncestorNode() const;
// Returns 0, a ShadowRoot, or a legacy shadow root.
// See https://bugs.webkit.org/show_bug.cgi?id=52423
if (!parentRenderer->canHaveChildren())
return false;
-
- if (m_visualParentShadowRoot && !m_parentNodeForRenderingAndStyle->canHaveLightChildRendererWithShadow())
+
+ if (m_visualParentShadowRoot)
return false;
}