Chromium Code Reviews| OLD | NEW |
|---|---|
| 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, |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 #include "wtf/Forward.h" | 27 #include "wtf/Forward.h" |
| 28 #include "wtf/PassRefPtr.h" | 28 #include "wtf/PassRefPtr.h" |
| 29 #include "wtf/RefCounted.h" | 29 #include "wtf/RefCounted.h" |
| 30 #include "wtf/Vector.h" | 30 #include "wtf/Vector.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class HTMLStyleElement; | 34 class HTMLStyleElement; |
| 35 class StyleSheet; | 35 class StyleSheet; |
| 36 | 36 |
| 37 class StyleSheetList : public RefCountedWillBeGarbageCollectedFinalized<StyleShe etList>, public ScriptWrappable { | 37 class StyleSheetList final : public RefCountedWillBeGarbageCollectedFinalized<St yleSheetList>, public ScriptWrappable { |
|
haraken
2014/11/12 14:39:01
RefCountedWillBeGarbageCollectedFinalized => RefCo
sof
2014/11/12 14:48:11
Not unless we alter the plugin to insist that Fina
| |
| 38 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(StyleSheetList); | |
| 38 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 39 public: | 40 public: |
| 40 static PassRefPtrWillBeRawPtr<StyleSheetList> create(TreeScope* treeScope) { return adoptRefWillBeNoop(new StyleSheetList(treeScope)); } | 41 static PassRefPtrWillBeRawPtr<StyleSheetList> create(TreeScope* treeScope) { return adoptRefWillBeNoop(new StyleSheetList(treeScope)); } |
| 41 ~StyleSheetList(); | |
| 42 | 42 |
| 43 unsigned length(); | 43 unsigned length(); |
| 44 StyleSheet* item(unsigned index); | 44 StyleSheet* item(unsigned index); |
| 45 | 45 |
| 46 HTMLStyleElement* getNamedItem(const AtomicString&) const; | 46 HTMLStyleElement* getNamedItem(const AtomicString&) const; |
| 47 | 47 |
| 48 Document* document() { return m_treeScope ? &m_treeScope->document() : 0; } | 48 Document* document() { return m_treeScope ? &m_treeScope->document() : 0; } |
| 49 | 49 |
| 50 #if !ENABLE(OILPAN) | 50 #if !ENABLE(OILPAN) |
| 51 void detachFromDocument(); | 51 void detachFromDocument(); |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 CSSStyleSheet* anonymousNamedGetter(const AtomicString&); | 54 CSSStyleSheet* anonymousNamedGetter(const AtomicString&); |
| 55 | 55 |
| 56 void trace(Visitor*); | 56 void trace(Visitor*); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 StyleSheetList(TreeScope*); | 59 explicit StyleSheetList(TreeScope*); |
| 60 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >& styleSheets(); | 60 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >& styleSheets(); |
| 61 | 61 |
| 62 RawPtrWillBeMember<TreeScope> m_treeScope; | 62 RawPtrWillBeMember<TreeScope> m_treeScope; |
| 63 #if !ENABLE(OILPAN) | 63 #if !ENABLE(OILPAN) |
| 64 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets; | 64 Vector<RefPtr<StyleSheet> > m_detachedStyleSheets; |
| 65 #endif | 65 #endif |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // StyleSheetList_h | 70 #endif // StyleSheetList_h |
| OLD | NEW |