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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 return this == documentInternal(); | 1592 return this == documentInternal(); |
1593 } | 1593 } |
1594 | 1594 |
1595 inline Node::Node(Document* document, ConstructionType type) | 1595 inline Node::Node(Document* document, ConstructionType type) |
1596 : m_nodeFlags(type) | 1596 : m_nodeFlags(type) |
1597 , m_parentOrShadowHostNode(0) | 1597 , m_parentOrShadowHostNode(0) |
1598 , m_treeScope(document) | 1598 , m_treeScope(document) |
1599 , m_previous(0) | 1599 , m_previous(0) |
1600 , m_next(0) | 1600 , m_next(0) |
1601 { | 1601 { |
| 1602 ScriptWrappable::init(this); |
1602 if (!m_treeScope) | 1603 if (!m_treeScope) |
1603 m_treeScope = TreeScope::noDocumentInstance(); | 1604 m_treeScope = TreeScope::noDocumentInstance(); |
1604 m_treeScope->guardRef(); | 1605 m_treeScope->guardRef(); |
1605 | 1606 |
1606 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 1607 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
1607 trackForDebugging(); | 1608 trackForDebugging(); |
1608 #endif | 1609 #endif |
1609 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 1610 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
1610 } | 1611 } |
1611 | 1612 |
1612 Node* eventTargetNodeForDocument(Document*); | 1613 Node* eventTargetNodeForDocument(Document*); |
1613 | 1614 |
1614 } // namespace WebCore | 1615 } // namespace WebCore |
1615 | 1616 |
1616 #endif // Document_h | 1617 #endif // Document_h |
OLD | NEW |