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

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

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 ~ElementRuleCollector(); 111 ~ElementRuleCollector();
112 112
113 void setMode(SelectorChecker::Mode mode) { m_mode = mode; } 113 void setMode(SelectorChecker::Mode mode) { m_mode = mode; }
114 void setPseudoStyleRequest(const PseudoStyleRequest& request) { m_pseudoStyl eRequest = request; } 114 void setPseudoStyleRequest(const PseudoStyleRequest& request) { m_pseudoStyl eRequest = request; }
115 void setSameOriginOnly(bool f) { m_sameOriginOnly = f; } 115 void setSameOriginOnly(bool f) { m_sameOriginOnly = f; }
116 116
117 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching UARules; } 117 void setMatchingUARules(bool matchingUARules) { m_matchingUARules = matching UARules; }
118 bool hasAnyMatchingRules(RuleSet*); 118 bool hasAnyMatchingRules(RuleSet*);
119 119
120 const MatchResult& matchedResult() const; 120 const MatchResult& matchedResult() const;
121 RawPtr<StyleRuleList> matchedStyleRuleList(); 121 StyleRuleList* matchedStyleRuleList();
122 RawPtr<CSSRuleList> matchedCSSRuleList(); 122 CSSRuleList* matchedCSSRuleList();
123 123
124 void collectMatchingRules(const MatchRequest&, CascadeOrder = ignoreCascadeO rder, bool matchingTreeBoundaryRules = false); 124 void collectMatchingRules(const MatchRequest&, CascadeOrder = ignoreCascadeO rder, bool matchingTreeBoundaryRules = false);
125 void collectMatchingShadowHostRules(const MatchRequest&, CascadeOrder = igno reCascadeOrder); 125 void collectMatchingShadowHostRules(const MatchRequest&, CascadeOrder = igno reCascadeOrder);
126 void sortAndTransferMatchedRules(); 126 void sortAndTransferMatchedRules();
127 void clearMatchedRules(); 127 void clearMatchedRules();
128 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t rue); 128 void addElementStyleProperties(const StylePropertySet*, bool isCacheable = t rue);
129 void finishAddingUARules() { m_result.finishAddingUARules(); } 129 void finishAddingUARules() { m_result.finishAddingUARules(); }
130 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule sForTreeScope(); } 130 void finishAddingAuthorRulesForTreeScope() { m_result.finishAddingAuthorRule sForTreeScope(); }
131 void setIncludeEmptyRules(bool include) { m_includeEmptyRules = include; } 131 void setIncludeEmptyRules(bool include) { m_includeEmptyRules = include; }
132 bool includeEmptyRules() const { return m_includeEmptyRules; } 132 bool includeEmptyRules() const { return m_includeEmptyRules; }
(...skipping 30 matching lines...) Expand all
163 163
164 // Output. 164 // Output.
165 Member<StaticCSSRuleList> m_cssRuleList; 165 Member<StaticCSSRuleList> m_cssRuleList;
166 Member<StyleRuleList> m_styleRuleList; 166 Member<StyleRuleList> m_styleRuleList;
167 MatchResult m_result; 167 MatchResult m_result;
168 }; 168 };
169 169
170 } // namespace blink 170 } // namespace blink
171 171
172 #endif // ElementRuleCollector_h 172 #endif // ElementRuleCollector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698