| 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 | 59 |
| 60 const StyleRuleKeyframes* keyframeStylesForAnimation(String animationName); | 60 const StyleRuleKeyframes* keyframeStylesForAnimation(String animationName); |
| 61 | 61 |
| 62 void collectMatchingAuthorRules(ElementRuleCollector&, CascadeOrder = ignore
CascadeOrder); | 62 void collectMatchingAuthorRules(ElementRuleCollector&, CascadeOrder = ignore
CascadeOrder); |
| 63 void collectMatchingHostRules(ElementRuleCollector&, CascadeOrder = ignoreCa
scadeOrder); | 63 void collectMatchingHostRules(ElementRuleCollector&, CascadeOrder = ignoreCa
scadeOrder); |
| 64 | 64 |
| 65 const RuleFeatureSet& features() const { return m_features; } | 65 const RuleFeatureSet& features() const { return m_features; } |
| 66 | 66 |
| 67 void updateActiveStyleSheets(); | 67 void updateActiveStyleSheets(); |
| 68 | 68 |
| 69 const MediaQueryResultList& viewportDependentMediaQueryResults() const; | |
| 70 | |
| 71 Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() { return m_authorStyleShe
ets; } | 69 Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() { return m_authorStyleShe
ets; } |
| 72 const Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() const { return m_au
thorStyleSheets; } | 70 const Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() const { return m_au
thorStyleSheets; } |
| 73 | 71 |
| 74 void addStyleSheetCandidateNode(HTMLStyleElement&); | 72 void addStyleSheetCandidateNode(HTMLStyleElement&); |
| 75 void removeStyleSheetCandidateNode(HTMLStyleElement&); | 73 void removeStyleSheetCandidateNode(HTMLStyleElement&); |
| 76 | 74 |
| 77 private: | 75 private: |
| 78 explicit ScopedStyleResolver(TreeScope&); | 76 explicit ScopedStyleResolver(TreeScope&); |
| 79 | 77 |
| 80 void appendStyleSheet(CSSStyleSheet&); | 78 void appendStyleSheet(CSSStyleSheet&); |
| 81 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets); | 79 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets); |
| 82 | 80 |
| 83 TreeScope& m_scope; | 81 TreeScope& m_scope; |
| 84 DocumentOrderedList m_styleSheetCandidateNodes; | 82 DocumentOrderedList m_styleSheetCandidateNodes; |
| 85 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets; | 83 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets; |
| 86 MediaQueryResultList m_viewportDependentMediaQueryResults; | |
| 87 RuleFeatureSet m_features; | 84 RuleFeatureSet m_features; |
| 88 }; | 85 }; |
| 89 | 86 |
| 90 } // namespace blink | 87 } // namespace blink |
| 91 | 88 |
| 92 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ | 89 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ |
| OLD | NEW |