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

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

Issue 1322753006: Add inline style in the element's scope. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList(); 117 PassRefPtrWillBeRawPtr<StyleRuleList> matchedStyleRuleList();
118 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList(); 118 PassRefPtrWillBeRawPtr<CSSRuleList> matchedCSSRuleList();
119 119
120 void collectMatchingRules(const MatchRequest&, bool matchingTreeBoundaryRule s = false); 120 void collectMatchingRules(const MatchRequest&, bool matchingTreeBoundaryRule s = false);
121 void collectMatchingShadowHostRules(const MatchRequest&, bool matchingTreeBo undaryRules = false); 121 void collectMatchingShadowHostRules(const MatchRequest&, bool matchingTreeBo undaryRules = false);
122 void sortAndTransferMatchedRules(); 122 void sortAndTransferMatchedRules();
123 void clearMatchedRules(); 123 void clearMatchedRules();
124 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t rue); 124 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t rue);
125 void finishAddingUARules() { m_result.finishAddingUARules(); } 125 void finishAddingUARules() { m_result.finishAddingUARules(); }
126 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule sForTreeScope(); } 126 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule sForTreeScope(); }
127 bool isCollectingForPseudoElement() const { return m_pseudoStyleRequest.pseu doId != NOPSEUDO; }
127 128
128 private: 129 private:
129 template<typename RuleDataListType> 130 template<typename RuleDataListType>
130 void collectMatchingRulesForList(const RuleDataListType*, const MatchRequest &); 131 void collectMatchingRulesForList(const RuleDataListType*, const MatchRequest &);
131 132
132 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, cons t MatchRequest&); 133 void didMatchRule(const RuleData&, const SelectorChecker::MatchResult&, cons t MatchRequest&);
133 134
134 template<class CSSRuleCollection> 135 template<class CSSRuleCollection>
135 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*); 136 CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*);
136 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*); 137 void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*);
(...skipping 19 matching lines...) Expand all
156 157
157 // Output. 158 // Output.
158 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; 159 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList;
159 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; 160 RefPtrWillBeMember<StyleRuleList> m_styleRuleList;
160 MatchResult m_result; 161 MatchResult m_result;
161 }; 162 };
162 163
163 } // namespace blink 164 } // namespace blink
164 165
165 #endif // ElementRuleCollector_h 166 #endif // ElementRuleCollector_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/style-and-stylesheet-important-expected.txt ('k') | Source/core/css/resolver/StyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698