[webkit-reviews] review granted: [Bug 128934] Make TreeScope::rootNode return a reference : [Attachment 224428] patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 17 15:05:36 PST 2014
Andreas Kling <akling at apple.com> has granted Antti Koivisto <koivisto at iki.fi>'s
request for review:
Bug 128934: Make TreeScope::rootNode return a reference
https://bugs.webkit.org/show_bug.cgi?id=128934
Attachment 224428: patch
https://bugs.webkit.org/attachment.cgi?id=224428&action=review
------- Additional Comments from Andreas Kling <akling at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=224428&action=review
r=me assuming it builds.
> Source/WebCore/dom/Document.cpp:716
> + ContainerNode& rootNode = scope->rootNode();
> + for (auto& element : descendantsOfType<Element>(rootNode)) {
I don't think you need the 'rootNode' local.
> Source/WebCore/dom/ShadowRoot.h:98
> +inline bool isShadowRoot(const Node& node) { return node.isElementNode() &&
toElement(node).isShadowRoot(); }
Why do you need the isElementNode() check? Node has isShadowRoot().
> Source/WebCore/dom/ShadowRoot.h:100
> +NODE_TYPE_CASTS(ShadowRoot);
You don't need the semicolon here.
More information about the webkit-reviews
mailing list