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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu
rn m_activeAuthorStyleSheets; } | 61 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu
rn m_activeAuthorStyleSheets; } |
62 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() const { re
turn m_styleSheetsForStyleSheetList; } | 62 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() const { re
turn m_styleSheetsForStyleSheetList; } |
63 | 63 |
64 bool usesRemUnits() const { return m_usesRemUnits; } | 64 bool usesRemUnits() const { return m_usesRemUnits; } |
65 | 65 |
66 DocumentOrderedList& styleSheetCandidateNodes() { return m_styleSheetCandida
teNodes; } | 66 DocumentOrderedList& styleSheetCandidateNodes() { return m_styleSheetCandida
teNodes; } |
67 DocumentOrderedList* scopingNodesForStyleScoped() { return m_scopingNodesFor
StyleScoped.scopingNodes(); } | 67 DocumentOrderedList* scopingNodesForStyleScoped() { return m_scopingNodesFor
StyleScoped.scopingNodes(); } |
68 ListHashSet<Node*, 4>* scopingNodesRemoved() { return m_scopingNodesForStyle
Scoped.scopingNodesRemoved(); } | 68 ListHashSet<Node*, 4>* scopingNodesRemoved() { return m_scopingNodesForStyle
Scoped.scopingNodesRemoved(); } |
69 | 69 |
70 protected: | 70 protected: |
71 explicit StyleSheetCollection(TreeScope*); | 71 explicit StyleSheetCollection(TreeScope&); |
72 | 72 |
73 Document* document() { return m_treeScope->documentScope(); } | 73 Document* document() { return m_treeScope.documentScope(); } |
74 | 74 |
75 enum StyleResolverUpdateType { | 75 enum StyleResolverUpdateType { |
76 Reconstruct, | 76 Reconstruct, |
77 Reset, | 77 Reset, |
78 Additive | 78 Additive |
79 }; | 79 }; |
80 void analyzeStyleSheetChange(StyleResolverUpdateMode, const Vector<RefPtr<CS
SStyleSheet> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesh
eets, StyleResolverUpdateType&, bool& requiresFullStyleRecalc); | 80 void analyzeStyleSheetChange(StyleResolverUpdateMode, const Vector<RefPtr<CS
SStyleSheet> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesh
eets, StyleResolverUpdateType&, bool& requiresFullStyleRecalc); |
81 void resetAllRuleSetsInTreeScope(StyleResolver*); | 81 void resetAllRuleSetsInTreeScope(StyleResolver*); |
82 void updateUsesRemUnits(); | 82 void updateUsesRemUnits(); |
83 | 83 |
84 private: | 84 private: |
85 StyleResolverUpdateType compareStyleSheets(const Vector<RefPtr<CSSStyleSheet
> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesheets, Vecto
r<StyleSheetContents*>& addedSheets); | 85 StyleResolverUpdateType compareStyleSheets(const Vector<RefPtr<CSSStyleSheet
> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesheets, Vecto
r<StyleSheetContents*>& addedSheets); |
86 bool activeLoadingStyleSheetLoaded(const Vector<RefPtr<CSSStyleSheet> >& new
StyleSheets); | 86 bool activeLoadingStyleSheetLoaded(const Vector<RefPtr<CSSStyleSheet> >& new
StyleSheets); |
87 | 87 |
88 protected: | 88 protected: |
89 Vector<RefPtr<StyleSheet> > m_styleSheetsForStyleSheetList; | 89 Vector<RefPtr<StyleSheet> > m_styleSheetsForStyleSheetList; |
90 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets; | 90 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets; |
91 | 91 |
92 TreeScope* m_treeScope; | 92 TreeScope& m_treeScope; |
93 bool m_hadActiveLoadingStylesheet; | 93 bool m_hadActiveLoadingStylesheet; |
94 bool m_usesRemUnits; | 94 bool m_usesRemUnits; |
95 | 95 |
96 DocumentOrderedList m_styleSheetCandidateNodes; | 96 DocumentOrderedList m_styleSheetCandidateNodes; |
97 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; | 97 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; |
98 }; | 98 }; |
99 | 99 |
100 } | 100 } |
101 | 101 |
102 #endif | 102 #endif |
103 | 103 |
OLD | NEW |