| OLD | NEW |
| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "sky/engine/wtf/Vector.h" | 34 #include "sky/engine/wtf/Vector.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class CSSStyleSheet; | 38 class CSSStyleSheet; |
| 39 | 39 |
| 40 class StyleSheetCollection { | 40 class StyleSheetCollection { |
| 41 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); | 41 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); |
| 42 WTF_MAKE_FAST_ALLOCATED; | 42 WTF_MAKE_FAST_ALLOCATED; |
| 43 public: | 43 public: |
| 44 friend class ActiveDocumentStyleSheetCollector; | |
| 45 friend class ImportedDocumentStyleSheetCollector; | |
| 46 | |
| 47 StyleSheetCollection(); | 44 StyleSheetCollection(); |
| 48 virtual ~StyleSheetCollection(); | 45 virtual ~StyleSheetCollection(); |
| 49 | 46 |
| 50 Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() { return m_activeA
uthorStyleSheets; } | 47 Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() { return m_activeA
uthorStyleSheets; } |
| 51 Vector<RefPtr<CSSStyleSheet> >& styleSheetsForStyleSheetList() { return m_st
yleSheetsForStyleSheetList; } | |
| 52 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu
rn m_activeAuthorStyleSheets; } | 48 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu
rn m_activeAuthorStyleSheets; } |
| 53 const Vector<RefPtr<CSSStyleSheet> >& styleSheetsForStyleSheetList() const {
return m_styleSheetsForStyleSheetList; } | |
| 54 | 49 |
| 55 void swap(StyleSheetCollection&); | 50 void swap(StyleSheetCollection&); |
| 56 void swapSheetsForSheetList(Vector<RefPtr<CSSStyleSheet> >&); | |
| 57 void appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&); | 51 void appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&); |
| 58 void appendActiveStyleSheet(CSSStyleSheet*); | 52 void appendActiveStyleSheet(CSSStyleSheet*); |
| 59 void appendSheetForList(CSSStyleSheet*); | |
| 60 | 53 |
| 61 protected: | 54 protected: |
| 62 Vector<RefPtr<CSSStyleSheet> > m_styleSheetsForStyleSheetList; | |
| 63 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets; | 55 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets; |
| 64 }; | 56 }; |
| 65 | 57 |
| 66 } | 58 } |
| 67 | 59 |
| 68 #endif // SKY_ENGINE_CORE_DOM_STYLESHEETCOLLECTION_H_ | 60 #endif // SKY_ENGINE_CORE_DOM_STYLESHEETCOLLECTION_H_ |
| 69 | 61 |
| OLD | NEW |