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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void WatchedSelectorsChanged(); | 110 void WatchedSelectorsChanged(); |
111 void InitialViewportChanged(); | 111 void InitialViewportChanged(); |
112 void ViewportRulesChanged(); | 112 void ViewportRulesChanged(); |
113 void HtmlImportAddedOrRemoved(); | 113 void HtmlImportAddedOrRemoved(); |
114 | 114 |
115 void InjectAuthorSheet(StyleSheetContents* author_sheet); | 115 void InjectAuthorSheet(StyleSheetContents* author_sheet); |
116 CSSStyleSheet& EnsureInspectorStyleSheet(); | 116 CSSStyleSheet& EnsureInspectorStyleSheet(); |
117 RuleSet* WatchedSelectorsRuleSet() { | 117 RuleSet* WatchedSelectorsRuleSet() { |
118 return global_rule_set_.WatchedSelectorsRuleSet(); | 118 return global_rule_set_.WatchedSelectorsRuleSet(); |
119 } | 119 } |
| 120 bool HasStyleSheets() const { |
| 121 return GetDocumentStyleSheetCollection().HasStyleSheets(); |
| 122 } |
120 | 123 |
121 RuleSet* RuleSetForSheet(CSSStyleSheet&); | 124 RuleSet* RuleSetForSheet(CSSStyleSheet&); |
122 void MediaQueryAffectingValueChanged(); | 125 void MediaQueryAffectingValueChanged(); |
123 void UpdateStyleSheetsInImport(StyleEngine& master_engine, | 126 void UpdateStyleSheetsInImport(StyleEngine& master_engine, |
124 DocumentStyleSheetCollector& parent_collector); | 127 DocumentStyleSheetCollector& parent_collector); |
125 void UpdateActiveStyle(); | 128 void UpdateActiveStyle(); |
126 void MarkAllTreeScopesDirty() { all_tree_scopes_dirty_ = true; } | 129 void MarkAllTreeScopesDirty() { all_tree_scopes_dirty_ = true; } |
127 | 130 |
128 String PreferredStylesheetSetName() const { | 131 String PreferredStylesheetSetName() const { |
129 return preferred_stylesheet_set_name_; | 132 return preferred_stylesheet_set_name_; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 389 |
387 std::unique_ptr<StyleResolverStats> style_resolver_stats_; | 390 std::unique_ptr<StyleResolverStats> style_resolver_stats_; |
388 unsigned style_for_element_count_ = 0; | 391 unsigned style_for_element_count_ = 0; |
389 | 392 |
390 friend class StyleEngineTest; | 393 friend class StyleEngineTest; |
391 }; | 394 }; |
392 | 395 |
393 } // namespace blink | 396 } // namespace blink |
394 | 397 |
395 #endif | 398 #endif |
OLD | NEW |