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

Unified Diff: Source/core/dom/Document.h

Issue 16379002: inline WebCore::Node::Node constructor more safely (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style fixes Created 7 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
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 0c183b7a0d52a23896ec5b0f2d1221111b5d4a8b..fc75a19b7ad2b6313cb90d53b917dc5320fae585 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -1489,24 +1489,6 @@ inline bool Node::isDocumentNode() const
return this == documentInternal();
}
-inline Node::Node(Document* document, ConstructionType type)
- : m_nodeFlags(type)
- , m_parentOrShadowHostNode(0)
- , m_treeScope(document)
- , m_previous(0)
- , m_next(0)
-{
- ScriptWrappable::init(this);
- if (!m_treeScope)
- m_treeScope = TreeScope::noDocumentInstance();
- m_treeScope->guardRef();
-
-#if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS)
- trackForDebugging();
-#endif
- InspectorCounters::incrementCounter(InspectorCounters::NodeCounter);
-}
-
Node* eventTargetNodeForDocument(Document*);
} // namespace WebCore
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | Source/core/dom/Node.h » ('j') | Source/core/dom/Text.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698