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

Side by Side Diff: sky/engine/core/dom/DOMTokenList.h

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/DOMStringList.h ('k') | sky/engine/core/dom/DOMURL.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 class Element; 35 class Element;
36 class ExceptionState; 36 class ExceptionState;
37 37
38 class DOMTokenList : public ScriptWrappable { 38 class DOMTokenList : public ScriptWrappable {
39 DEFINE_WRAPPERTYPEINFO(); 39 DEFINE_WRAPPERTYPEINFO();
40 WTF_MAKE_FAST_ALLOCATED; 40 WTF_MAKE_FAST_ALLOCATED;
41 WTF_MAKE_NONCOPYABLE(DOMTokenList); 41 WTF_MAKE_NONCOPYABLE(DOMTokenList);
42 public: 42 public:
43 DOMTokenList() 43 DOMTokenList()
44 { 44 {
45 ScriptWrappable::init(this);
46 } 45 }
47 virtual ~DOMTokenList() { } 46 virtual ~DOMTokenList() { }
48 47
49 #if !ENABLE(OILPAN) 48 #if !ENABLE(OILPAN)
50 virtual void ref() = 0; 49 virtual void ref() = 0;
51 virtual void deref() = 0; 50 virtual void deref() = 0;
52 #endif 51 #endif
53 52
54 virtual unsigned length() const = 0; 53 virtual unsigned length() const = 0;
55 virtual const AtomicString item(unsigned index) const = 0; 54 virtual const AtomicString item(unsigned index) const = 0;
(...skipping 24 matching lines...) Expand all
80 static bool validateTokens(const Vector<String>&, ExceptionState&); 79 static bool validateTokens(const Vector<String>&, ExceptionState&);
81 static AtomicString addToken(const AtomicString&, const AtomicString&); 80 static AtomicString addToken(const AtomicString&, const AtomicString&);
82 static AtomicString addTokens(const AtomicString&, const Vector<String>&); 81 static AtomicString addTokens(const AtomicString&, const Vector<String>&);
83 static AtomicString removeToken(const AtomicString&, const AtomicString&); 82 static AtomicString removeToken(const AtomicString&, const AtomicString&);
84 static AtomicString removeTokens(const AtomicString&, const Vector<String>&) ; 83 static AtomicString removeTokens(const AtomicString&, const Vector<String>&) ;
85 }; 84 };
86 85
87 } // namespace blink 86 } // namespace blink
88 87
89 #endif // DOMTokenList_h 88 #endif // DOMTokenList_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DOMStringList.h ('k') | sky/engine/core/dom/DOMURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698