| 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.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const TreeScope& treeScope() const { return *m_scope; } | 59 const TreeScope& treeScope() const { return *m_scope; } |
| 60 ScopedStyleResolver* parent() const; | 60 ScopedStyleResolver* parent() const; |
| 61 | 61 |
| 62 public: | 62 public: |
| 63 const StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* anima
tionName); | 63 const StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* anima
tionName); |
| 64 void addKeyframeStyle(PassRefPtrWillBeRawPtr<StyleRuleKeyframes>); | 64 void addKeyframeStyle(PassRefPtrWillBeRawPtr<StyleRuleKeyframes>); |
| 65 | 65 |
| 66 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule
s, bool applyAuthorStyles, CascadeScope, CascadeOrder = ignoreCascadeOrder); | 66 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule
s, bool applyAuthorStyles, CascadeScope, CascadeOrder = ignoreCascadeOrder); |
| 67 void matchPageRules(PageRuleCollector&); | 67 void matchPageRules(PageRuleCollector&); |
| 68 void addRulesFromSheet(CSSStyleSheet*, const MediaQueryEvaluator&, StyleReso
lver*); | 68 void addRulesFromSheet(CSSStyleSheet*, const MediaQueryEvaluator&, StyleReso
lver*); |
| 69 void collectFeaturesTo(RuleFeatureSet&, HashSet<const StyleSheetContents*>&
visitedSharedStyleSheetContents); | 69 void collectFeaturesTo(RuleFeatureSet&, HashSet<const StyleSheetContents*>&
visitedSharedStyleSheetContents) const; |
| 70 void resetAuthorStyle(); | 70 void resetAuthorStyle(); |
| 71 void collectViewportRulesTo(StyleResolver*) const; | 71 void collectViewportRulesTo(StyleResolver*) const; |
| 72 | 72 |
| 73 void trace(Visitor*); | 73 void trace(Visitor*); |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 explicit ScopedStyleResolver(TreeScope& scope) | 76 explicit ScopedStyleResolver(TreeScope& scope) |
| 77 : m_scope(scope) | 77 : m_scope(scope) |
| 78 { | 78 { |
| 79 } | 79 } |
| 80 | 80 |
| 81 RawPtrWillBeMember<TreeScope> m_scope; | 81 RawPtrWillBeMember<TreeScope> m_scope; |
| 82 | 82 |
| 83 WillBeHeapVector<RawPtrWillBeMember<CSSStyleSheet> > m_authorStyleSheets; | 83 WillBeHeapVector<RawPtrWillBeMember<CSSStyleSheet> > m_authorStyleSheets; |
| 84 | 84 |
| 85 typedef WillBeHeapHashMap<const StringImpl*, RefPtrWillBeMember<StyleRuleKey
frames> > KeyframesRuleMap; | 85 typedef WillBeHeapHashMap<const StringImpl*, RefPtrWillBeMember<StyleRuleKey
frames> > KeyframesRuleMap; |
| 86 KeyframesRuleMap m_keyframesRuleMap; | 86 KeyframesRuleMap m_keyframesRuleMap; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // ScopedStyleResolver_h | 91 #endif // ScopedStyleResolver_h |
| OLD | NEW |