| OLD | NEW |
| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 } | 263 } |
| 264 | 264 |
| 265 Node::Node(TreeScope* treeScope, ConstructionType type) | 265 Node::Node(TreeScope* treeScope, ConstructionType type) |
| 266 : m_nodeFlags(type) | 266 : m_nodeFlags(type) |
| 267 , m_parentOrShadowHostNode(nullptr) | 267 , m_parentOrShadowHostNode(nullptr) |
| 268 , m_treeScope(treeScope) | 268 , m_treeScope(treeScope) |
| 269 , m_previous(nullptr) | 269 , m_previous(nullptr) |
| 270 , m_next(nullptr) | 270 , m_next(nullptr) |
| 271 { | 271 { |
| 272 ASSERT(m_treeScope || type == CreateDocument || type == CreateShadowRoot); | 272 ASSERT(m_treeScope || type == CreateDocument || type == CreateShadowRoot); |
| 273 ScriptWrappable::init(this); | |
| 274 #if !ENABLE(OILPAN) | 273 #if !ENABLE(OILPAN) |
| 275 if (m_treeScope) | 274 if (m_treeScope) |
| 276 m_treeScope->guardRef(); | 275 m_treeScope->guardRef(); |
| 277 #endif | 276 #endif |
| 278 | 277 |
| 279 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 278 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
| 280 trackForDebugging(); | 279 trackForDebugging(); |
| 281 #endif | 280 #endif |
| 282 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 281 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
| 283 } | 282 } |
| (...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2501 node->showTreeForThis(); | 2500 node->showTreeForThis(); |
| 2502 } | 2501 } |
| 2503 | 2502 |
| 2504 void showNodePath(const blink::Node* node) | 2503 void showNodePath(const blink::Node* node) |
| 2505 { | 2504 { |
| 2506 if (node) | 2505 if (node) |
| 2507 node->showNodePathForThis(); | 2506 node->showNodePathForThis(); |
| 2508 } | 2507 } |
| 2509 | 2508 |
| 2510 #endif | 2509 #endif |
| OLD | NEW |