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

Unified Diff: Source/core/dom/ContainerNode.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/ContainerNode.h
diff --git a/Source/core/dom/ContainerNode.h b/Source/core/dom/ContainerNode.h
index 55c3bf4f55456da9294cc103f6e702a8001ec93c..aeb73807cbfc70a2db35076bebac480f6a5a2ede 100644
--- a/Source/core/dom/ContainerNode.h
+++ b/Source/core/dom/ContainerNode.h
@@ -138,7 +138,7 @@ public:
virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
protected:
- ContainerNode(Document*, ConstructionType = CreateContainer);
+ ContainerNode(TreeScope*, ConstructionType = CreateContainer);
static void queuePostAttachCallback(NodeCallback, Node*);
static bool postAttachCallbacksAreSuspended();
@@ -184,8 +184,8 @@ inline const ContainerNode* toContainerNode(const Node* node)
// This will catch anyone doing an unnecessary cast.
void toContainerNode(const ContainerNode*);
-inline ContainerNode::ContainerNode(Document* document, ConstructionType type)
- : Node(document, type)
+inline ContainerNode::ContainerNode(TreeScope* treeScope, ConstructionType type)
+ : Node(treeScope, type)
, m_firstChild(0)
, m_lastChild(0)
{

Powered by Google App Engine
This is Rietveld 408576698