| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 69 const MediaQueryResultList& viewportDependentMediaQueryResults() const; |
| 70 | 70 |
| 71 Vector<RefPtr<CSSStyleSheet> >& authorStyleSheets() { return m_authorStyleSh
eets; } | 71 Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() { return m_authorStyleShe
ets; } |
| 72 const Vector<RefPtr<CSSStyleSheet> >& authorStyleSheets() const { return m_a
uthorStyleSheets; } | 72 const Vector<RefPtr<CSSStyleSheet>>& authorStyleSheets() const { return m_au
thorStyleSheets; } |
| 73 | 73 |
| 74 void addStyleSheetCandidateNode(HTMLStyleElement&); | 74 void addStyleSheetCandidateNode(HTMLStyleElement&); |
| 75 void removeStyleSheetCandidateNode(HTMLStyleElement&); | 75 void removeStyleSheetCandidateNode(HTMLStyleElement&); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 explicit ScopedStyleResolver(TreeScope&); | 78 explicit ScopedStyleResolver(TreeScope&); |
| 79 | 79 |
| 80 void appendStyleSheet(CSSStyleSheet&); | 80 void appendStyleSheet(CSSStyleSheet&); |
| 81 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets); | 81 void collectStyleSheets(Vector<RefPtr<CSSStyleSheet>>& candidateSheets); |
| 82 | 82 |
| 83 TreeScope& m_scope; | 83 TreeScope& m_scope; |
| 84 DocumentOrderedList m_styleSheetCandidateNodes; | 84 DocumentOrderedList m_styleSheetCandidateNodes; |
| 85 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets; | 85 Vector<RefPtr<CSSStyleSheet>> m_authorStyleSheets; |
| 86 MediaQueryResultList m_viewportDependentMediaQueryResults; | 86 MediaQueryResultList m_viewportDependentMediaQueryResults; |
| 87 RuleFeatureSet m_features; | 87 RuleFeatureSet m_features; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ | 92 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_SCOPEDSTYLERESOLVER_H_ |
| OLD | NEW |