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) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class StyleSheetContents; | 49 class StyleSheetContents; |
50 class StyleSheetList; | 50 class StyleSheetList; |
51 class StyleRuleFontFace; | 51 class StyleRuleFontFace; |
52 | 52 |
53 class TreeScopeStyleSheetCollection : public StyleSheetCollection { | 53 class TreeScopeStyleSheetCollection : public StyleSheetCollection { |
54 public: | 54 public: |
55 void addStyleSheetCandidateNode(Node*, bool createdByParser); | 55 void addStyleSheetCandidateNode(Node*, bool createdByParser); |
56 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode); | 56 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode); |
57 bool hasStyleSheetCandidateNodes() const { return !m_styleSheetCandidateNode
s.isEmpty(); } | 57 bool hasStyleSheetCandidateNodes() const { return !m_styleSheetCandidateNode
s.isEmpty(); } |
58 | 58 |
59 | |
60 bool usesRemUnits() const { return m_usesRemUnits; } | 59 bool usesRemUnits() const { return m_usesRemUnits; } |
61 | 60 |
62 DocumentOrderedList& styleSheetCandidateNodes() { return m_styleSheetCandida
teNodes; } | 61 DocumentOrderedList& styleSheetCandidateNodes() { return m_styleSheetCandida
teNodes; } |
63 DocumentOrderedList* scopingNodesForStyleScoped() { return m_scopingNodesFor
StyleScoped.scopingNodes(); } | 62 DocumentOrderedList* scopingNodesForStyleScoped() { return m_scopingNodesFor
StyleScoped.scopingNodes(); } |
64 ListHashSet<Node*, 4>* scopingNodesRemoved() { return m_scopingNodesForStyle
Scoped.scopingNodesRemoved(); } | 63 ListHashSet<Node*, 4>* scopingNodesRemoved() { return m_scopingNodesForStyle
Scoped.scopingNodesRemoved(); } |
65 | 64 |
66 void clearMediaQueryRuleSetStyleSheets(); | 65 void clearMediaQueryRuleSetStyleSheets(); |
67 | 66 |
| 67 virtual void trace(Visitor* visitor) OVERRIDE |
| 68 { |
| 69 StyleSheetCollection::trace(visitor); |
| 70 } |
| 71 |
68 protected: | 72 protected: |
69 explicit TreeScopeStyleSheetCollection(TreeScope&); | 73 explicit TreeScopeStyleSheetCollection(TreeScope&); |
70 | 74 |
71 Document& document() const { return m_treeScope.document(); } | 75 Document& document() const { return m_treeScope.document(); } |
72 | 76 |
73 enum StyleResolverUpdateType { | 77 enum StyleResolverUpdateType { |
74 Reconstruct, | 78 Reconstruct, |
75 Reset, | 79 Reset, |
76 Additive | 80 Additive |
77 }; | 81 }; |
(...skipping 24 matching lines...) Expand all Loading... |
102 bool m_usesRemUnits; | 106 bool m_usesRemUnits; |
103 | 107 |
104 DocumentOrderedList m_styleSheetCandidateNodes; | 108 DocumentOrderedList m_styleSheetCandidateNodes; |
105 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; | 109 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; |
106 }; | 110 }; |
107 | 111 |
108 } | 112 } |
109 | 113 |
110 #endif | 114 #endif |
111 | 115 |
OLD | NEW |