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

Side by Side Diff: third_party/WebKit/Source/core/dom/NamedNodeMap.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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) 2003, 2004, 2005, 2006, 2008, 2010, 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2013 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 18 matching lines...) Expand all
29 #include "core/dom/Element.h" 29 #include "core/dom/Element.h"
30 #include "wtf/PassOwnPtr.h" 30 #include "wtf/PassOwnPtr.h"
31 #include "wtf/PassRefPtr.h" 31 #include "wtf/PassRefPtr.h"
32 #include "wtf/text/AtomicString.h" 32 #include "wtf/text/AtomicString.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class Attr; 36 class Attr;
37 class ExceptionState; 37 class ExceptionState;
38 38
39 class NamedNodeMap final : public NoBaseWillBeGarbageCollected<NamedNodeMap>, pu blic ScriptWrappable { 39 class NamedNodeMap final : public GarbageCollected<NamedNodeMap>, public ScriptW rappable {
40 DEFINE_WRAPPERTYPEINFO(); 40 DEFINE_WRAPPERTYPEINFO();
41 USING_FAST_MALLOC_WILL_BE_REMOVED(NamedNodeMap);
42 friend class Element; 41 friend class Element;
43 public: 42 public:
44 static PassOwnPtrWillBeRawPtr<NamedNodeMap> create(Element* element) 43 static RawPtr<NamedNodeMap> create(Element* element)
45 { 44 {
46 return adoptPtrWillBeNoop(new NamedNodeMap(element)); 45 return new NamedNodeMap(element);
47 } 46 }
48 47
49 #if !ENABLE(OILPAN) 48 #if !ENABLE(OILPAN)
50 void ref(); 49 void ref();
51 void deref(); 50 void deref();
52 #endif 51 #endif
53 52
54 // Public DOM interface. 53 // Public DOM interface.
55 54
56 PassRefPtrWillBeRawPtr<Attr> getNamedItem(const AtomicString&) const; 55 RawPtr<Attr> getNamedItem(const AtomicString&) const;
57 PassRefPtrWillBeRawPtr<Attr> removeNamedItem(const AtomicString& name, Excep tionState&); 56 RawPtr<Attr> removeNamedItem(const AtomicString& name, ExceptionState&);
58 57
59 PassRefPtrWillBeRawPtr<Attr> getNamedItemNS(const AtomicString& namespaceURI , const AtomicString& localName) const; 58 RawPtr<Attr> getNamedItemNS(const AtomicString& namespaceURI, const AtomicSt ring& localName) const;
60 PassRefPtrWillBeRawPtr<Attr> removeNamedItemNS(const AtomicString& namespace URI, const AtomicString& localName, ExceptionState&); 59 RawPtr<Attr> removeNamedItemNS(const AtomicString& namespaceURI, const Atomi cString& localName, ExceptionState&);
61 60
62 PassRefPtrWillBeRawPtr<Attr> setNamedItem(Attr*, ExceptionState&); 61 RawPtr<Attr> setNamedItem(Attr*, ExceptionState&);
63 PassRefPtrWillBeRawPtr<Attr> setNamedItemNS(Attr*, ExceptionState&); 62 RawPtr<Attr> setNamedItemNS(Attr*, ExceptionState&);
64 63
65 PassRefPtrWillBeRawPtr<Attr> item(unsigned index) const; 64 RawPtr<Attr> item(unsigned index) const;
66 size_t length() const; 65 size_t length() const;
67 66
68 Element* element() const { return m_element; } 67 Element* element() const { return m_element; }
69 68
70 DECLARE_TRACE(); 69 DECLARE_TRACE();
71 70
72 private: 71 private:
73 explicit NamedNodeMap(Element* element) 72 explicit NamedNodeMap(Element* element)
74 : m_element(element) 73 : m_element(element)
75 { 74 {
76 // Only supports NamedNodeMaps with Element associated. 75 // Only supports NamedNodeMaps with Element associated.
77 ASSERT(m_element); 76 ASSERT(m_element);
78 } 77 }
79 78
80 RawPtrWillBeMember<Element> m_element; 79 Member<Element> m_element;
81 }; 80 };
82 81
83 } // namespace blink 82 } // namespace blink
84 83
85 #endif // NamedNodeMap_h 84 #endif // NamedNodeMap_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/NameNodeList.h ('k') | third_party/WebKit/Source/core/dom/NamedNodeMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698