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

Side by Side Diff: Source/core/dom/NamedNodeMap.cpp

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + final adjustments Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/NamedNodeMap.h ('k') | Source/core/dom/NamedNodeMap.idl » ('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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
7 * (C) 2007 Eric Seidel (eric@webkit.org) 7 * (C) 2007 Eric Seidel (eric@webkit.org)
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 17 matching lines...) Expand all
28 #include "bindings/v8/ExceptionState.h" 28 #include "bindings/v8/ExceptionState.h"
29 #include "core/dom/Attr.h" 29 #include "core/dom/Attr.h"
30 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
31 #include "core/dom/Element.h" 31 #include "core/dom/Element.h"
32 #include "core/dom/ExceptionCode.h" 32 #include "core/dom/ExceptionCode.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 using namespace HTMLNames; 36 using namespace HTMLNames;
37 37
38 #if !ENABLE(OILPAN)
38 void NamedNodeMap::ref() 39 void NamedNodeMap::ref()
39 { 40 {
40 m_element->ref(); 41 m_element->ref();
41 } 42 }
42 43
43 void NamedNodeMap::deref() 44 void NamedNodeMap::deref()
44 { 45 {
45 m_element->deref(); 46 m_element->deref();
46 } 47 }
48 #endif
47 49
48 PassRefPtr<Node> NamedNodeMap::getNamedItem(const AtomicString& name) const 50 PassRefPtr<Node> NamedNodeMap::getNamedItem(const AtomicString& name) const
49 { 51 {
50 return m_element->getAttributeNode(name); 52 return m_element->getAttributeNode(name);
51 } 53 }
52 54
53 PassRefPtr<Node> NamedNodeMap::getNamedItemNS(const AtomicString& namespaceURI, const AtomicString& localName) const 55 PassRefPtr<Node> NamedNodeMap::getNamedItemNS(const AtomicString& namespaceURI, const AtomicString& localName) const
54 { 56 {
55 return m_element->getAttributeNodeNS(namespaceURI, localName); 57 return m_element->getAttributeNodeNS(namespaceURI, localName);
56 } 58 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 return m_element->ensureAttr(m_element->attributeItem(index).name()); 105 return m_element->ensureAttr(m_element->attributeItem(index).name());
104 } 106 }
105 107
106 size_t NamedNodeMap::length() const 108 size_t NamedNodeMap::length() const
107 { 109 {
108 if (!m_element->hasAttributes()) 110 if (!m_element->hasAttributes())
109 return 0; 111 return 0;
110 return m_element->attributeCount(); 112 return m_element->attributeCount();
111 } 113 }
112 114
115 void NamedNodeMap::trace(Visitor* visitor)
116 {
117 visitor->trace(m_element);
118 }
119
113 } // namespace WebCore 120 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/NamedNodeMap.h ('k') | Source/core/dom/NamedNodeMap.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698