| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * Copyright (C) 2012 Google Inc. All rights reserved. | 5 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 static ScopedStyleResolver* create(TreeScope& scope) { | 50 static ScopedStyleResolver* create(TreeScope& scope) { |
| 51 return new ScopedStyleResolver(scope); | 51 return new ScopedStyleResolver(scope); |
| 52 } | 52 } |
| 53 | 53 |
| 54 const TreeScope& treeScope() const { return *m_scope; } | 54 const TreeScope& treeScope() const { return *m_scope; } |
| 55 ScopedStyleResolver* parent() const; | 55 ScopedStyleResolver* parent() const; |
| 56 | 56 |
| 57 StyleRuleKeyframes* keyframeStylesForAnimation( | 57 StyleRuleKeyframes* keyframeStylesForAnimation( |
| 58 const StringImpl* animationName); | 58 const StringImpl* animationName); |
| 59 | 59 |
| 60 void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&); | 60 void appendCSSStyleSheet(CSSStyleSheet&); |
| 61 void appendActiveStyleSheets(unsigned index, const ActiveStyleSheetVector&); | 61 void appendActiveStyleSheets(unsigned index, const ActiveStyleSheetVector&); |
| 62 void collectMatchingAuthorRules(ElementRuleCollector&, | 62 void collectMatchingAuthorRules(ElementRuleCollector&, |
| 63 CascadeOrder = ignoreCascadeOrder); | 63 CascadeOrder = ignoreCascadeOrder); |
| 64 void collectMatchingShadowHostRules(ElementRuleCollector&, | 64 void collectMatchingShadowHostRules(ElementRuleCollector&, |
| 65 CascadeOrder = ignoreCascadeOrder); | 65 CascadeOrder = ignoreCascadeOrder); |
| 66 void collectMatchingTreeBoundaryCrossingRules( | 66 void collectMatchingTreeBoundaryCrossingRules( |
| 67 ElementRuleCollector&, | 67 ElementRuleCollector&, |
| 68 CascadeOrder = ignoreCascadeOrder); | 68 CascadeOrder = ignoreCascadeOrder); |
| 69 void matchPageRules(PageRuleCollector&); | 69 void matchPageRules(PageRuleCollector&); |
| 70 void collectFeaturesTo(RuleFeatureSet&, | 70 void collectFeaturesTo(RuleFeatureSet&, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 84 void addTreeBoundaryCrossingRules(const RuleSet&, | 84 void addTreeBoundaryCrossingRules(const RuleSet&, |
| 85 CSSStyleSheet*, | 85 CSSStyleSheet*, |
| 86 unsigned sheetIndex); | 86 unsigned sheetIndex); |
| 87 void addKeyframeRules(const RuleSet&); | 87 void addKeyframeRules(const RuleSet&); |
| 88 void addFontFaceRules(const RuleSet&); | 88 void addFontFaceRules(const RuleSet&); |
| 89 void addKeyframeStyle(StyleRuleKeyframes*); | 89 void addKeyframeStyle(StyleRuleKeyframes*); |
| 90 | 90 |
| 91 Member<TreeScope> m_scope; | 91 Member<TreeScope> m_scope; |
| 92 | 92 |
| 93 HeapVector<Member<CSSStyleSheet>> m_authorStyleSheets; | 93 HeapVector<Member<CSSStyleSheet>> m_authorStyleSheets; |
| 94 MediaQueryResultList m_viewportDependentMediaQueryResults; |
| 95 MediaQueryResultList m_deviceDependentMediaQueryResults; |
| 94 | 96 |
| 95 using KeyframesRuleMap = | 97 using KeyframesRuleMap = |
| 96 HeapHashMap<const StringImpl*, Member<StyleRuleKeyframes>>; | 98 HeapHashMap<const StringImpl*, Member<StyleRuleKeyframes>>; |
| 97 KeyframesRuleMap m_keyframesRuleMap; | 99 KeyframesRuleMap m_keyframesRuleMap; |
| 98 | 100 |
| 99 class RuleSubSet final : public GarbageCollected<RuleSubSet> { | 101 class RuleSubSet final : public GarbageCollected<RuleSubSet> { |
| 100 public: | 102 public: |
| 101 static RuleSubSet* create(CSSStyleSheet* sheet, | 103 static RuleSubSet* create(CSSStyleSheet* sheet, |
| 102 unsigned index, | 104 unsigned index, |
| 103 RuleSet* rules) { | 105 RuleSet* rules) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 117 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; | 119 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; |
| 118 | 120 |
| 119 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; | 121 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; |
| 120 bool m_hasDeepOrShadowSelector = false; | 122 bool m_hasDeepOrShadowSelector = false; |
| 121 bool m_hasUnresolvedKeyframesRule = false; | 123 bool m_hasUnresolvedKeyframesRule = false; |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace blink | 126 } // namespace blink |
| 125 | 127 |
| 126 #endif // ScopedStyleResolver_h | 128 #endif // ScopedStyleResolver_h |
| OLD | NEW |