| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 public: | 55 public: |
| 56 const StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* anima
tionName); | 56 const StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* anima
tionName); |
| 57 void addKeyframeStyle(PassRefPtr<StyleRuleKeyframes>); | 57 void addKeyframeStyle(PassRefPtr<StyleRuleKeyframes>); |
| 58 | 58 |
| 59 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule
s, bool applyAuthorStyles, CascadeScope, CascadeOrder = ignoreCascadeOrder); | 59 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule
s, bool applyAuthorStyles, CascadeScope, CascadeOrder = ignoreCascadeOrder); |
| 60 void addRulesFromSheet(CSSStyleSheet*, StyleResolver*); | 60 void addRulesFromSheet(CSSStyleSheet*, StyleResolver*); |
| 61 void collectFeaturesTo(RuleFeatureSet&, HashSet<const StyleSheetContents*>&
visitedSharedStyleSheetContents) const; | 61 void collectFeaturesTo(RuleFeatureSet&, HashSet<const StyleSheetContents*>&
visitedSharedStyleSheetContents) const; |
| 62 void resetAuthorStyle(); | 62 void resetAuthorStyle(); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 explicit ScopedStyleResolver(TreeScope& scope) | 65 explicit ScopedStyleResolver(TreeScope&); |
| 66 : m_scope(scope) | |
| 67 { | |
| 68 } | |
| 69 | 66 |
| 70 RawPtr<TreeScope> m_scope; | 67 RawPtr<TreeScope> m_scope; |
| 71 | |
| 72 Vector<RawPtr<CSSStyleSheet> > m_authorStyleSheets; | 68 Vector<RawPtr<CSSStyleSheet> > m_authorStyleSheets; |
| 73 | 69 |
| 74 typedef HashMap<const StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRul
eMap; | 70 typedef HashMap<const StringImpl*, RefPtr<StyleRuleKeyframes> > KeyframesRul
eMap; |
| 75 KeyframesRuleMap m_keyframesRuleMap; | 71 KeyframesRuleMap m_keyframesRuleMap; |
| 76 }; | 72 }; |
| 77 | 73 |
| 78 } // namespace blink | 74 } // namespace blink |
| 79 | 75 |
| 80 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ | 76 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ |
| OLD | NEW |