Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: Source/core/css/ElementRuleCollector.h

Issue 1282243002: Prepare for multiple !important author ranges. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing STACK_ALLOCATED() Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/ElementRuleCollector.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 const MatchResult& matchedResult() const; 121 const MatchResult& matchedResult() const;
122 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); 122 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList();
123 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); 123 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList();
124 124
125 void collectMatchingRules(const MatchRequest&, CascadeOrder = ignoreCascadeO rder, bool matchingTreeBoundaryRules = false); 125 void collectMatchingRules(const MatchRequest&, CascadeOrder = ignoreCascadeO rder, bool matchingTreeBoundaryRules = false);
126 void collectMatchingShadowHostRules(const MatchRequest&, CascadeOrder = igno reCascadeOrder, bool matchingTreeBoundaryRules = false); 126 void collectMatchingShadowHostRules(const MatchRequest&, CascadeOrder = igno reCascadeOrder, bool matchingTreeBoundaryRules = false);
127 void sortAndTransferMatchedRules(); 127 void sortAndTransferMatchedRules();
128 void clearMatchedRules(); 128 void clearMatchedRules();
129 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t rue); 129 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t rue);
130 void finishAddingUARules() { m_result.finishAddingUARules(); }
131 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule sForTreeScope(); }
130 132
131 private: 133 private:
132 template<typename RuleDataListType> 134 template<typename RuleDataListType>
133 void collectMatchingRulesForList(const RuleDataListType*, CascadeOrder, cons t MatchRequest&); 135 void collectMatchingRulesForList(const RuleDataListType*, CascadeOrder, cons t MatchRequest&);
134 136
135 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, Casc adeOrder, const MatchRequest&); 137 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, Casc adeOrder, const MatchRequest&);
136 138
137 template<class CSSRuleCollection> 139 template<class CSSRuleCollection>
138 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*); 140 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*);
139 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*); 141 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*);
(...skipping 19 matching lines...) Expand all
159 161
160 // Output. 162 // Output.
161 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; 163 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList;
162 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; 164 RefPtrWillBeMember<StyleRuleList> m_styleRuleList;
163 MatchResult m_result; 165 MatchResult m_result;
164 }; 166 };
165 167
166 } // namespace blink 168 } // namespace blink
167 169
168 #endif // ElementRuleCollector_h 170 #endif // ElementRuleCollector_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/ElementRuleCollector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698