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