| Index: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
|
| index adf8f4184437edcea7aec0eb4cfe8a5f897ae30a..e89cecc259511621125b46baf6de2deeaa5be29b 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
|
| +++ b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h
|
| @@ -27,6 +27,7 @@
|
| #ifndef ScopedStyleResolver_h
|
| #define ScopedStyleResolver_h
|
|
|
| +#include "core/css/ActiveStyleSheets.h"
|
| #include "core/css/ElementRuleCollector.h"
|
| #include "core/css/RuleSet.h"
|
| #include "core/dom/TreeScope.h"
|
| @@ -39,7 +40,6 @@ namespace blink {
|
|
|
| class PageRuleCollector;
|
| class StyleSheetContents;
|
| -class ViewportStyleResolver;
|
|
|
| // This class selects a ComputedStyle for a given element based on a collection of stylesheets.
|
| class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> {
|
| @@ -55,14 +55,13 @@ public:
|
|
|
| StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* animationName);
|
|
|
| - void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&);
|
| + void appendActiveStyleSheets(unsigned index, const ActiveStyleSheetVector&);
|
| void collectMatchingAuthorRules(ElementRuleCollector&, CascadeOrder = ignoreCascadeOrder);
|
| void collectMatchingShadowHostRules(ElementRuleCollector&, CascadeOrder = ignoreCascadeOrder);
|
| void collectMatchingTreeBoundaryCrossingRules(ElementRuleCollector&, CascadeOrder = ignoreCascadeOrder);
|
| void matchPageRules(PageRuleCollector&);
|
| void collectFeaturesTo(RuleFeatureSet&, HeapHashSet<Member<const StyleSheetContents>>& visitedSharedStyleSheetContents) const;
|
| void resetAuthorStyle();
|
| - void collectViewportRulesTo(ViewportStyleResolver*) const;
|
| bool hasDeepOrShadowSelector() const { return m_hasDeepOrShadowSelector; }
|
|
|
| DECLARE_TRACE();
|
| @@ -81,6 +80,8 @@ private:
|
| Member<TreeScope> m_scope;
|
|
|
| HeapVector<Member<CSSStyleSheet>> m_authorStyleSheets;
|
| + MediaQueryResultList m_viewportDependentMediaQueryResults;
|
| + MediaQueryResultList m_deviceDependentMediaQueryResults;
|
|
|
| using KeyframesRuleMap = HeapHashMap<const StringImpl*, Member<StyleRuleKeyframes>>;
|
| KeyframesRuleMap m_keyframesRuleMap;
|
|
|