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

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

Issue 778743003: Merge StyleSheet into CSSStyleSheet. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: sort headers. Created 6 years 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 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 18 matching lines...) Expand all
29 #define SKY_ENGINE_CORE_DOM_STYLESHEETCOLLECTION_H_ 29 #define SKY_ENGINE_CORE_DOM_STYLESHEETCOLLECTION_H_
30 30
31 #include "sky/engine/platform/heap/Handle.h" 31 #include "sky/engine/platform/heap/Handle.h"
32 #include "sky/engine/wtf/FastAllocBase.h" 32 #include "sky/engine/wtf/FastAllocBase.h"
33 #include "sky/engine/wtf/RefPtr.h" 33 #include "sky/engine/wtf/RefPtr.h"
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 class StyleSheet;
40 39
41 class StyleSheetCollection { 40 class StyleSheetCollection {
42 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); 41 WTF_MAKE_NONCOPYABLE(StyleSheetCollection);
43 WTF_MAKE_FAST_ALLOCATED; 42 WTF_MAKE_FAST_ALLOCATED;
44 public: 43 public:
45 friend class ActiveDocumentStyleSheetCollector; 44 friend class ActiveDocumentStyleSheetCollector;
46 friend class ImportedDocumentStyleSheetCollector; 45 friend class ImportedDocumentStyleSheetCollector;
47 46
48 StyleSheetCollection(); 47 StyleSheetCollection();
49 virtual ~StyleSheetCollection(); 48 virtual ~StyleSheetCollection();
50 49
51 Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() { return m_activeA uthorStyleSheets; } 50 Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() { return m_activeA uthorStyleSheets; }
52 Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() { return m_style SheetsForStyleSheetList; } 51 Vector<RefPtr<CSSStyleSheet> >& styleSheetsForStyleSheetList() { return m_st yleSheetsForStyleSheetList; }
53 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu rn m_activeAuthorStyleSheets; } 52 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu rn m_activeAuthorStyleSheets; }
54 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() const { re turn m_styleSheetsForStyleSheetList; } 53 const Vector<RefPtr<CSSStyleSheet> >& styleSheetsForStyleSheetList() const { return m_styleSheetsForStyleSheetList; }
55 54
56 void swap(StyleSheetCollection&); 55 void swap(StyleSheetCollection&);
57 void swapSheetsForSheetList(Vector<RefPtr<StyleSheet> >&); 56 void swapSheetsForSheetList(Vector<RefPtr<CSSStyleSheet> >&);
58 void appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&); 57 void appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&);
59 void appendActiveStyleSheet(CSSStyleSheet*); 58 void appendActiveStyleSheet(CSSStyleSheet*);
60 void appendSheetForList(StyleSheet*); 59 void appendSheetForList(CSSStyleSheet*);
61 60
62 protected: 61 protected:
63 Vector<RefPtr<StyleSheet> > m_styleSheetsForStyleSheetList; 62 Vector<RefPtr<CSSStyleSheet> > m_styleSheetsForStyleSheetList;
64 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets; 63 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets;
65 }; 64 };
66 65
67 } 66 }
68 67
69 #endif // SKY_ENGINE_CORE_DOM_STYLESHEETCOLLECTION_H_ 68 #endif // SKY_ENGINE_CORE_DOM_STYLESHEETCOLLECTION_H_
70 69
OLDNEW
« no previous file with comments | « sky/engine/core/dom/StyleSheetCandidate.cpp ('k') | sky/engine/core/dom/StyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698