| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool HasDeepOrShadowSelector() const { return has_deep_or_shadow_selector_; } | 74 bool HasDeepOrShadowSelector() const { return has_deep_or_shadow_selector_; } |
| 75 void SetHasUnresolvedKeyframesRule() { | 75 void SetHasUnresolvedKeyframesRule() { |
| 76 has_unresolved_keyframes_rule_ = true; | 76 has_unresolved_keyframes_rule_ = true; |
| 77 } | 77 } |
| 78 bool NeedsAppendAllSheets() const { return needs_append_all_sheets_; } | 78 bool NeedsAppendAllSheets() const { return needs_append_all_sheets_; } |
| 79 void SetNeedsAppendAllSheets() { needs_append_all_sheets_ = true; } | 79 void SetNeedsAppendAllSheets() { needs_append_all_sheets_ = true; } |
| 80 static void KeyframesRulesAdded(const TreeScope&); | 80 static void KeyframesRulesAdded(const TreeScope&); |
| 81 static ContainerNode& InvalidationRootForTreeScope(const TreeScope&); | 81 static ContainerNode& InvalidationRootForTreeScope(const TreeScope&); |
| 82 CORE_EXPORT static bool HaveSameStyles(const ScopedStyleResolver*, | 82 CORE_EXPORT static bool HaveSameStyles(const ScopedStyleResolver*, |
| 83 const ScopedStyleResolver*); | 83 const ScopedStyleResolver*); |
| 84 void AddKeyframeRules(const RuleSet&); |
| 84 | 85 |
| 85 DECLARE_TRACE(); | 86 DECLARE_TRACE(); |
| 86 | 87 |
| 87 private: | 88 private: |
| 88 explicit ScopedStyleResolver(TreeScope& scope) : scope_(scope) {} | 89 explicit ScopedStyleResolver(TreeScope& scope) : scope_(scope) {} |
| 89 | 90 |
| 90 void AddTreeBoundaryCrossingRules(const RuleSet&, | 91 void AddTreeBoundaryCrossingRules(const RuleSet&, |
| 91 CSSStyleSheet*, | 92 CSSStyleSheet*, |
| 92 unsigned sheet_index); | 93 unsigned sheet_index); |
| 93 void AddKeyframeRules(const RuleSet&); | |
| 94 void AddFontFaceRules(const RuleSet&); | 94 void AddFontFaceRules(const RuleSet&); |
| 95 void AddKeyframeStyle(StyleRuleKeyframes*); | 95 void AddKeyframeStyle(StyleRuleKeyframes*); |
| 96 | 96 |
| 97 Member<TreeScope> scope_; | 97 Member<TreeScope> scope_; |
| 98 | 98 |
| 99 HeapVector<Member<CSSStyleSheet>> author_style_sheets_; | 99 HeapVector<Member<CSSStyleSheet>> author_style_sheets_; |
| 100 MediaQueryResultList viewport_dependent_media_query_results_; | 100 MediaQueryResultList viewport_dependent_media_query_results_; |
| 101 MediaQueryResultList device_dependent_media_query_results_; | 101 MediaQueryResultList device_dependent_media_query_results_; |
| 102 | 102 |
| 103 using KeyframesRuleMap = | 103 using KeyframesRuleMap = |
| (...skipping 22 matching lines...) Expand all Loading... |
| 126 | 126 |
| 127 Member<CSSStyleSheetRuleSubSet> tree_boundary_crossing_rule_set_; | 127 Member<CSSStyleSheetRuleSubSet> tree_boundary_crossing_rule_set_; |
| 128 bool has_deep_or_shadow_selector_ = false; | 128 bool has_deep_or_shadow_selector_ = false; |
| 129 bool has_unresolved_keyframes_rule_ = false; | 129 bool has_unresolved_keyframes_rule_ = false; |
| 130 bool needs_append_all_sheets_ = false; | 130 bool needs_append_all_sheets_ = false; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace blink | 133 } // namespace blink |
| 134 | 134 |
| 135 #endif // ScopedStyleResolver_h | 135 #endif // ScopedStyleResolver_h |
| OLD | NEW |