| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&); | 61 void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&); |
| 62 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule
s, CascadeOrder = ignoreCascadeOrder); | 62 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule
s, CascadeOrder = ignoreCascadeOrder); |
| 63 void collectMatchingShadowHostRules(ElementRuleCollector&, bool includeEmpty
Rules, CascadeOrder = ignoreCascadeOrder); | 63 void collectMatchingShadowHostRules(ElementRuleCollector&, bool includeEmpty
Rules, CascadeOrder = ignoreCascadeOrder); |
| 64 void collectMatchingTreeBoundaryCrossingRules(ElementRuleCollector&, bool in
cludeEmptyRules, CascadeOrder); | 64 void collectMatchingTreeBoundaryCrossingRules(ElementRuleCollector&, bool in
cludeEmptyRules, CascadeOrder); |
| 65 void matchPageRules(PageRuleCollector&); | 65 void matchPageRules(PageRuleCollector&); |
| 66 void collectFeaturesTo(RuleFeatureSet&, HashSet<const StyleSheetContents*>&
visitedSharedStyleSheetContents) const; | 66 void collectFeaturesTo(RuleFeatureSet&, HashSet<const StyleSheetContents*>&
visitedSharedStyleSheetContents) const; |
| 67 void resetAuthorStyle(); | 67 void resetAuthorStyle(); |
| 68 void collectViewportRulesTo(StyleResolver*) const; | 68 void collectViewportRulesTo(StyleResolver*) const; |
| 69 | 69 |
| 70 void trace(Visitor*); | 70 DECLARE_TRACE(); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 explicit ScopedStyleResolver(TreeScope& scope) | 73 explicit ScopedStyleResolver(TreeScope& scope) |
| 74 : m_scope(scope) | 74 : m_scope(scope) |
| 75 { | 75 { |
| 76 } | 76 } |
| 77 | 77 |
| 78 void addTreeBoundaryCrossingRules(const RuleSet&, CSSStyleSheet*, unsigned s
heetIndex); | 78 void addTreeBoundaryCrossingRules(const RuleSet&, CSSStyleSheet*, unsigned s
heetIndex); |
| 79 void addKeyframeRules(const RuleSet&); | 79 void addKeyframeRules(const RuleSet&); |
| 80 void addFontFaceRules(const RuleSet&); | 80 void addFontFaceRules(const RuleSet&); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 91 public: | 91 public: |
| 92 static PassOwnPtrWillBeRawPtr<RuleSubSet> create(CSSStyleSheet* sheet, u
nsigned index, PassOwnPtrWillBeRawPtr<RuleSet> rules) | 92 static PassOwnPtrWillBeRawPtr<RuleSubSet> create(CSSStyleSheet* sheet, u
nsigned index, PassOwnPtrWillBeRawPtr<RuleSet> rules) |
| 93 { | 93 { |
| 94 return adoptPtrWillBeNoop(new RuleSubSet(sheet, index, rules)); | 94 return adoptPtrWillBeNoop(new RuleSubSet(sheet, index, rules)); |
| 95 } | 95 } |
| 96 | 96 |
| 97 CSSStyleSheet* m_parentStyleSheet; | 97 CSSStyleSheet* m_parentStyleSheet; |
| 98 unsigned m_parentIndex; | 98 unsigned m_parentIndex; |
| 99 OwnPtrWillBeMember<RuleSet> m_ruleSet; | 99 OwnPtrWillBeMember<RuleSet> m_ruleSet; |
| 100 | 100 |
| 101 void trace(Visitor*); | 101 DECLARE_TRACE(); |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 RuleSubSet(CSSStyleSheet* sheet, unsigned index, PassOwnPtrWillBeRawPtr<
RuleSet> rules) | 104 RuleSubSet(CSSStyleSheet* sheet, unsigned index, PassOwnPtrWillBeRawPtr<
RuleSet> rules) |
| 105 : m_parentStyleSheet(sheet) | 105 : m_parentStyleSheet(sheet) |
| 106 , m_parentIndex(index) | 106 , m_parentIndex(index) |
| 107 , m_ruleSet(rules) | 107 , m_ruleSet(rules) |
| 108 { | 108 { |
| 109 } | 109 } |
| 110 }; | 110 }; |
| 111 typedef WillBeHeapVector<OwnPtrWillBeMember<RuleSubSet>> CSSStyleSheetRuleSu
bSet; | 111 typedef WillBeHeapVector<OwnPtrWillBeMember<RuleSubSet>> CSSStyleSheetRuleSu
bSet; |
| 112 | 112 |
| 113 OwnPtrWillBeMember<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; | 113 OwnPtrWillBeMember<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #endif // ScopedStyleResolver_h | 118 #endif // ScopedStyleResolver_h |
| OLD | NEW |