Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

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

Issue 2405143003: Separate @viewport from other RuleSet construction. (Closed)
Patch Set: Missing resolve() Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 4e64c8f2fc4e5f4822ca815746f3a84c1a305155..08e33e2ae7f7d7f5c82370dfc848eae70f35ce46 100644
--- a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp
@@ -38,7 +38,6 @@
#include "core/css/StyleRule.h"
#include "core/css/StyleSheetContents.h"
#include "core/css/resolver/MatchRequest.h"
-#include "core/css/resolver/ViewportStyleResolver.h"
#include "core/dom/Document.h"
#include "core/dom/StyleChangeReason.h"
#include "core/dom/StyleEngine.h"
@@ -260,16 +259,6 @@ void ScopedStyleResolver::matchPageRules(PageRuleCollector& collector) {
collector.matchPageRules(&m_authorStyleSheets[i]->contents()->ruleSet());
}
-void ScopedStyleResolver::collectViewportRulesTo(
- ViewportStyleResolver* resolver) const {
- if (!m_scope->rootNode().isDocumentNode())
- return;
- for (size_t i = 0; i < m_authorStyleSheets.size(); ++i)
- resolver->collectViewportRules(
- &m_authorStyleSheets[i]->contents()->ruleSet(),
- ViewportStyleResolver::AuthorOrigin);
-}
-
DEFINE_TRACE(ScopedStyleResolver) {
visitor->trace(m_scope);
visitor->trace(m_authorStyleSheets);

Powered by Google App Engine
This is Rietveld 408576698