Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Node.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp |
| index da9b660fe040cfcefff918acd9093e59c4e0e16d..9a040e14fcf6e91b80c0cdcb6aaf51de0e161dcd 100644 |
| --- a/third_party/WebKit/Source/core/dom/Node.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp |
| @@ -783,6 +783,11 @@ unsigned Node::nodeIndex() const |
| return count; |
| } |
| +bool Node::isConnected() const |
|
hayato
2016/04/04 05:32:52
I think we can use Node::inDocument() for Node.isC
yuzuchan
2016/04/04 07:09:30
Acknowledged.
I will start another CL to rename in
|
| +{ |
| + return isInShadowTree() ? shadowHost()->treeRoot().isSameNode(ownerDocument()) : treeRoot().isSameNode(ownerDocument()); |
| +} |
| + |
| NodeListsNodeData* Node::nodeLists() |
| { |
| return hasRareData() ? rareData()->nodeLists() : nullptr; |