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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #ifndef DocumentStyleSheetCollection_h | 28 #ifndef DocumentStyleSheetCollection_h |
29 #define DocumentStyleSheetCollection_h | 29 #define DocumentStyleSheetCollection_h |
30 | 30 |
31 #include "core/dom/TreeScopeStyleSheetCollection.h" | 31 #include "core/dom/TreeScopeStyleSheetCollection.h" |
32 #include "platform/heap/WrapperVisitor.h" | 32 #include "platform/heap/WrapperVisitor.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class DocumentStyleSheetCollector; | 36 class DocumentStyleSheetCollector; |
37 class StyleEngine; | |
38 class TreeScope; | 37 class TreeScope; |
39 | 38 |
40 class DocumentStyleSheetCollection final : public TreeScopeStyleSheetCollection
{ | 39 class DocumentStyleSheetCollection final : public TreeScopeStyleSheetCollection
{ |
41 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); | 40 WTF_MAKE_NONCOPYABLE(DocumentStyleSheetCollection); |
42 public: | 41 public: |
43 static DocumentStyleSheetCollection* create(TreeScope& treeScope) | 42 static DocumentStyleSheetCollection* create(TreeScope& treeScope) |
44 { | 43 { |
45 return new DocumentStyleSheetCollection(treeScope); | 44 return new DocumentStyleSheetCollection(treeScope); |
46 } | 45 } |
47 | 46 |
48 void updateActiveStyleSheets(StyleEngine&, StyleResolverUpdateMode); | 47 void updateViewport(); |
49 void collectStyleSheets(StyleEngine&, DocumentStyleSheetCollector&); | 48 void updateActiveStyleSheets(); |
| 49 void collectStyleSheets(DocumentStyleSheetCollector&); |
50 | 50 |
51 DEFINE_INLINE_VIRTUAL_TRACE() | 51 DEFINE_INLINE_VIRTUAL_TRACE() |
52 { | 52 { |
53 TreeScopeStyleSheetCollection::trace(visitor); | 53 TreeScopeStyleSheetCollection::trace(visitor); |
54 } | 54 } |
55 | 55 |
56 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 56 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
57 | 57 |
58 private: | 58 private: |
59 explicit DocumentStyleSheetCollection(TreeScope&); | 59 explicit DocumentStyleSheetCollection(TreeScope&); |
60 | 60 |
61 void collectStyleSheetsFromCandidates(StyleEngine&, DocumentStyleSheetCollec
tor&); | 61 void collectStyleSheetsFromCandidates(DocumentStyleSheetCollector&); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace blink | 64 } // namespace blink |
65 | 65 |
66 #endif | 66 #endif |
67 | 67 |
OLD | NEW |