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

Side by Side Diff: sky/engine/core/dom/Node.cpp

Issue 706123005: Remove nop ScriptWrappable::init calls (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/MutationRecord.h ('k') | sky/engine/core/dom/NodeList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 Node::Node(TreeScope* treeScope, ConstructionType type) 218 Node::Node(TreeScope* treeScope, ConstructionType type)
219 : m_nodeFlags(type) 219 : m_nodeFlags(type)
220 , m_parentOrShadowHostNode(nullptr) 220 , m_parentOrShadowHostNode(nullptr)
221 , m_treeScope(treeScope) 221 , m_treeScope(treeScope)
222 , m_previous(nullptr) 222 , m_previous(nullptr)
223 , m_next(nullptr) 223 , m_next(nullptr)
224 { 224 {
225 ASSERT(m_treeScope || type == CreateDocument || type == CreateShadowRoot); 225 ASSERT(m_treeScope || type == CreateDocument || type == CreateShadowRoot);
226 ScriptWrappable::init(this);
227 #if !ENABLE(OILPAN) 226 #if !ENABLE(OILPAN)
228 if (m_treeScope) 227 if (m_treeScope)
229 m_treeScope->guardRef(); 228 m_treeScope->guardRef();
230 #endif 229 #endif
231 230
232 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) 231 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS)
233 trackForDebugging(); 232 trackForDebugging();
234 #endif 233 #endif
235 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); 234 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter);
236 } 235 }
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 node->showTreeForThis(); 1875 node->showTreeForThis();
1877 } 1876 }
1878 1877
1879 void showNodePath(const blink::Node* node) 1878 void showNodePath(const blink::Node* node)
1880 { 1879 {
1881 if (node) 1880 if (node)
1882 node->showNodePathForThis(); 1881 node->showNodePathForThis();
1883 } 1882 }
1884 1883
1885 #endif 1884 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/MutationRecord.h ('k') | sky/engine/core/dom/NodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698