| 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 20 matching lines...) Expand all Loading... |
| 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; | 39 class StyleEngine; |
| 40 class TreeScope; | 40 class TreeScope; |
| 41 class ViewportStyleResolver; |
| 41 | 42 |
| 42 class DocumentStyleSheetCollection final | 43 class DocumentStyleSheetCollection final |
| 43 : public TreeScopeStyleSheetCollection { | 44 : public TreeScopeStyleSheetCollection { |
| 44 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); | 45 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); |
| 45 | 46 |
| 46 public: | 47 public: |
| 47 static DocumentStyleSheetCollection* create(TreeScope& treeScope) { | 48 static DocumentStyleSheetCollection* create(TreeScope& treeScope) { |
| 48 return new DocumentStyleSheetCollection(treeScope); | 49 return new DocumentStyleSheetCollection(treeScope); |
| 49 } | 50 } |
| 50 | 51 |
| 51 void updateActiveStyleSheets(StyleEngine&, StyleResolverUpdateMode); | 52 void updateActiveStyleSheets(StyleEngine&, StyleResolverUpdateMode); |
| 52 void collectStyleSheets(StyleEngine&, DocumentStyleSheetCollector&); | 53 void collectStyleSheets(StyleEngine&, DocumentStyleSheetCollector&); |
| 54 void collectViewportRules(ViewportStyleResolver&); |
| 53 | 55 |
| 54 DEFINE_INLINE_VIRTUAL_TRACE() { | 56 DEFINE_INLINE_VIRTUAL_TRACE() { |
| 55 TreeScopeStyleSheetCollection::trace(visitor); | 57 TreeScopeStyleSheetCollection::trace(visitor); |
| 56 } | 58 } |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 explicit DocumentStyleSheetCollection(TreeScope&); | 61 explicit DocumentStyleSheetCollection(TreeScope&); |
| 60 | 62 |
| 61 void collectStyleSheetsFromCandidates(StyleEngine&, | 63 void collectStyleSheetsFromCandidates(StyleEngine&, |
| 62 DocumentStyleSheetCollector&); | 64 DocumentStyleSheetCollector&); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 } // namespace blink | 67 } // namespace blink |
| 66 | 68 |
| 67 #endif | 69 #endif |
| OLD | NEW |