| 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) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef SKY_ENGINE_CORE_DOM_DOCUMENTSTYLESHEETCOLLECTION_H_ | 28 #ifndef SKY_ENGINE_CORE_DOM_DOCUMENTSTYLESHEETCOLLECTION_H_ |
| 29 #define SKY_ENGINE_CORE_DOM_DOCUMENTSTYLESHEETCOLLECTION_H_ | 29 #define SKY_ENGINE_CORE_DOM_DOCUMENTSTYLESHEETCOLLECTION_H_ |
| 30 | 30 |
| 31 #include "sky/engine/core/dom/TreeScopeStyleSheetCollection.h" | 31 #include "sky/engine/core/dom/TreeScopeStyleSheetCollection.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class DocumentStyleSheetCollector; | |
| 36 class StyleEngine; | 35 class StyleEngine; |
| 37 class TreeScope; | 36 class TreeScope; |
| 38 | 37 |
| 39 class DocumentStyleSheetCollection final : public TreeScopeStyleSheetCollection
{ | 38 class DocumentStyleSheetCollection final : public TreeScopeStyleSheetCollection
{ |
| 40 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); | 39 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); |
| 41 WTF_MAKE_FAST_ALLOCATED; | 40 WTF_MAKE_FAST_ALLOCATED; |
| 42 public: | 41 public: |
| 43 static PassOwnPtr<DocumentStyleSheetCollection> create(TreeScope& treeScope) | 42 static PassOwnPtr<DocumentStyleSheetCollection> create(TreeScope& treeScope) |
| 44 { | 43 { |
| 45 return adoptPtr(new DocumentStyleSheetCollection(treeScope)); | 44 return adoptPtr(new DocumentStyleSheetCollection(treeScope)); |
| 46 } | 45 } |
| 47 | 46 |
| 48 void updateActiveStyleSheets(StyleEngine*); | 47 void updateActiveStyleSheets(StyleEngine*); |
| 49 void collectStyleSheets(StyleEngine*, DocumentStyleSheetCollector&); | |
| 50 | 48 |
| 51 private: | 49 private: |
| 52 explicit DocumentStyleSheetCollection(TreeScope&); | 50 explicit DocumentStyleSheetCollection(TreeScope&); |
| 53 | 51 |
| 54 void collectStyleSheetsFromCandidates(StyleEngine*, DocumentStyleSheetCollec
tor&); | 52 void collectStyleSheets(StyleEngine*, StyleSheetCollection&); |
| 53 void collectStyleSheetsFromCandidates(StyleEngine*, StyleSheetCollection&); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } | 56 } |
| 58 | 57 |
| 59 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTSTYLESHEETCOLLECTION_H_ | 58 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTSTYLESHEETCOLLECTION_H_ |
| 60 | 59 |
| OLD | NEW |