| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #ifndef DocumentStyleSheetCollection_h | 30 #ifndef DocumentStyleSheetCollection_h |
| 31 #define DocumentStyleSheetCollection_h | 31 #define DocumentStyleSheetCollection_h |
| 32 | 32 |
| 33 #include "core/dom/TreeScopeStyleSheetCollection.h" | 33 #include "core/dom/TreeScopeStyleSheetCollection.h" |
| 34 #include "platform/heap/WrapperVisitor.h" | 34 #include "platform/heap/WrapperVisitor.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class DocumentStyleSheetCollector; | 38 class DocumentStyleSheetCollector; |
| 39 class StyleEngine; | |
| 40 class TreeScope; | 39 class TreeScope; |
| 41 class ViewportStyleResolver; | 40 class ViewportStyleResolver; |
| 42 | 41 |
| 43 class DocumentStyleSheetCollection final | 42 class DocumentStyleSheetCollection final |
| 44 : public TreeScopeStyleSheetCollection { | 43 : public TreeScopeStyleSheetCollection { |
| 45 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); | 44 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); |
| 46 | 45 |
| 47 public: | 46 public: |
| 48 static DocumentStyleSheetCollection* create(TreeScope& treeScope) { | 47 static DocumentStyleSheetCollection* create(TreeScope& treeScope) { |
| 49 return new DocumentStyleSheetCollection(treeScope); | 48 return new DocumentStyleSheetCollection(treeScope); |
| 50 } | 49 } |
| 51 | 50 |
| 52 void updateActiveStyleSheets(StyleEngine&, StyleResolverUpdateMode); | 51 void updateActiveStyleSheets(); |
| 53 void collectStyleSheets(StyleEngine&, DocumentStyleSheetCollector&); | 52 void collectStyleSheets(DocumentStyleSheetCollector&); |
| 54 void collectViewportRules(ViewportStyleResolver&); | 53 void collectViewportRules(ViewportStyleResolver&); |
| 55 | 54 |
| 56 DEFINE_INLINE_VIRTUAL_TRACE() { | 55 DEFINE_INLINE_VIRTUAL_TRACE() { |
| 57 TreeScopeStyleSheetCollection::trace(visitor); | 56 TreeScopeStyleSheetCollection::trace(visitor); |
| 58 } | 57 } |
| 59 | 58 |
| 60 private: | 59 private: |
| 61 explicit DocumentStyleSheetCollection(TreeScope&); | 60 explicit DocumentStyleSheetCollection(TreeScope&); |
| 62 | 61 |
| 63 void collectStyleSheetsFromCandidates(StyleEngine&, | 62 void collectStyleSheetsFromCandidates(DocumentStyleSheetCollector&); |
| 64 DocumentStyleSheetCollector&); | |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace blink | 65 } // namespace blink |
| 68 | 66 |
| 69 #endif | 67 #endif |
| OLD | NEW |