Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp

Issue 2557773004: Remove unused lazyAppend from StyleResolver. (Closed)
Patch Set: Rebased. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp
index 846d53b83518d372792830c129e9244335a7060f..b4e489dc1471e02136c322e3a566e99535d8a68a 100644
--- a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp
@@ -83,24 +83,6 @@ void ScopedStyleResolver::addFontFaceRules(const RuleSet& ruleSet) {
document.styleResolver()->invalidateMatchedPropertiesCache();
}
-void ScopedStyleResolver::appendCSSStyleSheet(CSSStyleSheet& cssSheet) {
- RuleSet* ruleSet =
- treeScope().document().styleEngine().ruleSetForSheet(cssSheet);
-
- m_viewportDependentMediaQueryResults.appendVector(
- cssSheet.viewportDependentMediaQueryResults());
- m_deviceDependentMediaQueryResults.appendVector(
- cssSheet.deviceDependentMediaQueryResults());
- if (!ruleSet)
- return;
-
- unsigned index = m_authorStyleSheets.size();
- m_authorStyleSheets.push_back(&cssSheet);
- addKeyframeRules(*ruleSet);
- addFontFaceRules(*ruleSet);
- addTreeBoundaryCrossingRules(*ruleSet, &cssSheet, index);
-}
-
void ScopedStyleResolver::appendActiveStyleSheets(
unsigned index,
const ActiveStyleSheetVector& activeSheets) {

Powered by Google App Engine