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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 RuleSet* watchedSelectorsRuleSet() { | 117 RuleSet* watchedSelectorsRuleSet() { |
118 return m_globalRuleSet.watchedSelectorsRuleSet(); | 118 return m_globalRuleSet.watchedSelectorsRuleSet(); |
119 } | 119 } |
120 | 120 |
121 RuleSet* ruleSetForSheet(CSSStyleSheet&); | 121 RuleSet* ruleSetForSheet(CSSStyleSheet&); |
122 void mediaQueryAffectingValueChanged(); | 122 void mediaQueryAffectingValueChanged(); |
123 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector); | 123 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector); |
124 void updateActiveStyle(); | 124 void updateActiveStyle(); |
125 void markAllTreeScopesDirty() { m_allTreeScopesDirty = true; } | 125 void markAllTreeScopesDirty() { m_allTreeScopesDirty = true; } |
126 | 126 |
127 enum ActiveSheetsUpdate { DontUpdateActiveSheets, UpdateActiveSheets }; | |
128 String preferredStylesheetSetName() const { | 127 String preferredStylesheetSetName() const { |
129 return m_preferredStylesheetSetName; | 128 return m_preferredStylesheetSetName; |
130 } | 129 } |
131 String selectedStylesheetSetName() const { | 130 String selectedStylesheetSetName() const { |
132 return m_selectedStylesheetSetName; | 131 return m_selectedStylesheetSetName; |
133 } | 132 } |
134 void setPreferredStylesheetSetNameIfNotSet(const String&, ActiveSheetsUpdate); | 133 void setPreferredStylesheetSetNameIfNotSet(const String&); |
135 void setSelectedStylesheetSetName(const String&); | 134 void setSelectedStylesheetSetName(const String&); |
136 void setHttpDefaultStyle(const String&); | 135 void setHttpDefaultStyle(const String&); |
137 | 136 |
138 void addPendingSheet(StyleEngineContext&); | 137 void addPendingSheet(StyleEngineContext&); |
139 void removePendingSheet(Node& styleSheetCandidateNode, | 138 void removePendingSheet(Node& styleSheetCandidateNode, |
140 const StyleEngineContext&); | 139 const StyleEngineContext&); |
141 | 140 |
142 bool hasPendingScriptBlockingSheets() const { | 141 bool hasPendingScriptBlockingSheets() const { |
143 return m_pendingScriptBlockingStylesheets > 0; | 142 return m_pendingScriptBlockingStylesheets > 0; |
144 } | 143 } |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 366 |
368 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 367 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
369 unsigned m_styleForElementCount = 0; | 368 unsigned m_styleForElementCount = 0; |
370 | 369 |
371 friend class StyleEngineTest; | 370 friend class StyleEngineTest; |
372 }; | 371 }; |
373 | 372 |
374 } // namespace blink | 373 } // namespace blink |
375 | 374 |
376 #endif | 375 #endif |
OLD | NEW |