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