Commit 2bc908b1 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Remove unused HasStyleSheets

Change-Id: I182f05b751b12cd30ff44f6cb09b6c13cb128510
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519450
Auto-Submit: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823979}
parent 1688fbc5
...@@ -179,9 +179,6 @@ class CORE_EXPORT StyleEngine final : public GarbageCollected<StyleEngine>, ...@@ -179,9 +179,6 @@ class CORE_EXPORT StyleEngine final : public GarbageCollected<StyleEngine>,
DCHECK(global_rule_set_); DCHECK(global_rule_set_);
return global_rule_set_->WatchedSelectorsRuleSet(); return global_rule_set_->WatchedSelectorsRuleSet();
} }
bool HasStyleSheets() const {
return GetDocumentStyleSheetCollection().HasStyleSheets();
}
RuleSet* RuleSetForSheet(CSSStyleSheet&); RuleSet* RuleSetForSheet(CSSStyleSheet&);
void MediaQueryAffectingValueChanged(MediaValueChange change); void MediaQueryAffectingValueChanged(MediaValueChange change);
......
...@@ -58,15 +58,6 @@ void TreeScopeStyleSheetCollection::ApplyActiveStyleSheetChanges( ...@@ -58,15 +58,6 @@ void TreeScopeStyleSheetCollection::ApplyActiveStyleSheetChanges(
new_collection.Swap(*this); new_collection.Swap(*this);
} }
bool TreeScopeStyleSheetCollection::HasStyleSheets() const {
for (Node* node : style_sheet_candidate_nodes_) {
StyleSheetCandidate candidate(*node);
if (candidate.Sheet() || candidate.IsEnabledAndLoading())
return true;
}
return false;
}
void TreeScopeStyleSheetCollection::UpdateStyleSheetList() { void TreeScopeStyleSheetCollection::UpdateStyleSheetList() {
if (!sheet_list_dirty_) if (!sheet_list_dirty_)
return; return;
......
...@@ -49,7 +49,6 @@ class CORE_EXPORT TreeScopeStyleSheetCollection : public StyleSheetCollection { ...@@ -49,7 +49,6 @@ class CORE_EXPORT TreeScopeStyleSheetCollection : public StyleSheetCollection {
bool HasStyleSheetCandidateNodes() const { bool HasStyleSheetCandidateNodes() const {
return !style_sheet_candidate_nodes_.IsEmpty(); return !style_sheet_candidate_nodes_.IsEmpty();
} }
bool HasStyleSheets() const;
virtual bool IsShadowTreeStyleSheetCollection() const { return false; } virtual bool IsShadowTreeStyleSheetCollection() const { return false; }
void UpdateStyleSheetList(); void UpdateStyleSheetList();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment