| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 static PassOwnPtr<ScopedStyleResolver> create(TreeScope& scope) | 48 static PassOwnPtr<ScopedStyleResolver> create(TreeScope& scope) |
| 49 { | 49 { |
| 50 return adoptPtr(new ScopedStyleResolver(scope)); | 50 return adoptPtr(new ScopedStyleResolver(scope)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 const TreeScope& treeScope() const { return *m_scope; } | 53 const TreeScope& treeScope() const { return *m_scope; } |
| 54 | 54 |
| 55 public: | 55 public: |
| 56 const StyleRuleKeyframes* keyframeStylesForAnimation(String animationName); | 56 const StyleRuleKeyframes* keyframeStylesForAnimation(String animationName); |
| 57 | 57 |
| 58 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule
s, CascadeScope, CascadeOrder = ignoreCascadeOrder); | 58 void collectMatchingAuthorRules(ElementRuleCollector&, CascadeScope, Cascade
Order = ignoreCascadeOrder); |
| 59 void addRulesFromSheet(CSSStyleSheet*); | 59 void addRulesFromSheet(CSSStyleSheet*); |
| 60 | 60 |
| 61 void resetAuthorStyle(); | 61 void resetAuthorStyle(); |
| 62 | 62 |
| 63 const RuleFeatureSet& features() const { return m_features; } | 63 const RuleFeatureSet& features() const { return m_features; } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 explicit ScopedStyleResolver(TreeScope&); | 66 explicit ScopedStyleResolver(TreeScope&); |
| 67 | 67 |
| 68 RawPtr<TreeScope> m_scope; | 68 RawPtr<TreeScope> m_scope; |
| 69 Vector<RawPtr<CSSStyleSheet> > m_authorStyleSheets; | 69 Vector<RawPtr<CSSStyleSheet> > m_authorStyleSheets; |
| 70 | 70 |
| 71 RuleFeatureSet m_features; | 71 RuleFeatureSet m_features; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace blink | 74 } // namespace blink |
| 75 | 75 |
| 76 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ | 76 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ |
| OLD | NEW |