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

Unified Diff: sky/engine/core/css/resolver/ScopedStyleResolver.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « sky/engine/core/css/resolver/ScopedStyleResolver.h ('k') | sky/engine/core/dom/ContainerNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/resolver/ScopedStyleResolver.cpp
diff --git a/sky/engine/core/css/resolver/ScopedStyleResolver.cpp b/sky/engine/core/css/resolver/ScopedStyleResolver.cpp
index 80ac16f749c53eadd6589117d5456b5206d92db2..1a5ada90f6598e1776bb0c936b32c85e1f2d3fc4 100644
--- a/sky/engine/core/css/resolver/ScopedStyleResolver.cpp
+++ b/sky/engine/core/css/resolver/ScopedStyleResolver.cpp
@@ -34,7 +34,6 @@
#include "sky/engine/core/dom/StyleEngine.h"
#include "sky/engine/core/dom/TreeScope.h"
#include "sky/engine/core/dom/shadow/ShadowRoot.h"
-#include "sky/engine/core/html/HTMLStyleElement.h"
namespace blink {
@@ -91,28 +90,8 @@ bool ScopedStyleResolver::hasSelectorForAttribute(const AtomicString& attributeN
return false;
}
-void ScopedStyleResolver::addStyleSheetCandidateNode(HTMLStyleElement& element)
-{
- ASSERT(element.inActiveDocument());
- m_styleSheetCandidateNodes.add(&element);
-}
-
-void ScopedStyleResolver::removeStyleSheetCandidateNode(HTMLStyleElement& element)
-{
- m_styleSheetCandidateNodes.remove(&element);
-}
-
void ScopedStyleResolver::collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& sheets)
{
- MediaQueryEvaluator medium(m_scope.document().view());
-
- for (Node* node : m_styleSheetCandidateNodes) {
- ASSERT(isHTMLStyleElement(*node));
- CSSStyleSheet* sheet = toHTMLStyleElement(node)->sheet();
- if (sheet && (!sheet->mediaQueries() || medium.eval(sheet->mediaQueries()))) {
- sheets.append(sheet);
- }
- }
}
void ScopedStyleResolver::collectMatchingAuthorRules(ElementRuleCollector& collector, CascadeOrder cascadeOrder)
« no previous file with comments | « sky/engine/core/css/resolver/ScopedStyleResolver.h ('k') | sky/engine/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698