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

Side by Side Diff: Source/core/css/StyleSheetList.h

Issue 15373004: Auto-generate V8StyleSheetList::namedPropertyGetter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef StyleSheetList_h 21 #ifndef StyleSheetList_h
22 #define StyleSheetList_h 22 #define StyleSheetList_h
23 23
24 #include "core/css/CSSStyleSheet.h"
24 #include <wtf/Forward.h> 25 #include <wtf/Forward.h>
25 #include <wtf/RefCounted.h> 26 #include <wtf/RefCounted.h>
26 #include <wtf/PassRefPtr.h> 27 #include <wtf/PassRefPtr.h>
27 #include <wtf/Vector.h> 28 #include <wtf/Vector.h>
28 29
29 namespace WebCore { 30 namespace WebCore {
30 31
31 class Document; 32 class Document;
32 class HTMLStyleElement; 33 class HTMLStyleElement;
33 class StyleSheet; 34 class StyleSheet;
34 35
35 class StyleSheetList : public RefCounted<StyleSheetList> { 36 class StyleSheetList : public RefCounted<StyleSheetList> {
36 public: 37 public:
37 static PassRefPtr<StyleSheetList> create(Document* document) { return adoptR ef(new StyleSheetList(document)); } 38 static PassRefPtr<StyleSheetList> create(Document* document) { return adoptR ef(new StyleSheetList(document)); }
38 ~StyleSheetList(); 39 ~StyleSheetList();
39 40
40 unsigned length() const; 41 unsigned length() const;
41 StyleSheet* item(unsigned index); 42 StyleSheet* item(unsigned index);
42 43
43 HTMLStyleElement* getNamedItem(const String&) const; 44 HTMLStyleElement* getNamedItem(const String&) const;
44 45
45 Document* document() { return m_document; } 46 Document* document() { return m_document; }
46 47
47 void detachFromDocument(); 48 void detachFromDocument();
48 49 CSSStyleSheet* anonymousNamedGetter(const AtomicString&);
49 private: 50 private:
50 StyleSheetList(Document*); 51 StyleSheetList(Document*);
51 const Vector<RefPtr<StyleSheet> >& styleSheets() const; 52 const Vector<RefPtr<StyleSheet> >& styleSheets() const;
52 53
53 Document* m_document; 54 Document* m_document;
54 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets; 55 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets;
55 }; 56 };
56 57
57 } // namespace WebCore 58 } // namespace WebCore
58 59
59 #endif // StyleSheetList_h 60 #endif // StyleSheetList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698