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

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

Issue 1996883002: CSS: SelectorFilter is non-copyable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: additional classes Created 4 years, 7 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 | « third_party/WebKit/Source/core/css/parser/MediaQueryParser.h ('k') | no next file » | 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 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 MatchedPropertiesVector::const_iterator end() const { return m_end; } 78 MatchedPropertiesVector::const_iterator end() const { return m_end; }
79 79
80 bool isEmpty() const { return begin() == end(); } 80 bool isEmpty() const { return begin() == end(); }
81 81
82 private: 82 private:
83 MatchedPropertiesVector::const_iterator m_begin; 83 MatchedPropertiesVector::const_iterator m_begin;
84 MatchedPropertiesVector::const_iterator m_end; 84 MatchedPropertiesVector::const_iterator m_end;
85 }; 85 };
86 86
87 class CORE_EXPORT MatchResult { 87 class CORE_EXPORT MatchResult {
88 WTF_MAKE_NONCOPYABLE(MatchResult);
88 STACK_ALLOCATED(); 89 STACK_ALLOCATED();
89 public: 90 public:
91 MatchResult() {}
92
90 void addMatchedProperties(const StylePropertySet* properties, unsigned linkM atchType = CSSSelector::MatchAll, PropertyWhitelistType = PropertyWhitelistNone) ; 93 void addMatchedProperties(const StylePropertySet* properties, unsigned linkM atchType = CSSSelector::MatchAll, PropertyWhitelistType = PropertyWhitelistNone) ;
91 bool hasMatchedProperties() const { return m_matchedProperties.size(); } 94 bool hasMatchedProperties() const { return m_matchedProperties.size(); }
92 95
93 void finishAddingUARules(); 96 void finishAddingUARules();
94 void finishAddingAuthorRulesForTreeScope(); 97 void finishAddingAuthorRulesForTreeScope();
95 98
96 void setIsCacheable(bool cacheable) { m_isCacheable = cacheable; } 99 void setIsCacheable(bool cacheable) { m_isCacheable = cacheable; }
97 bool isCacheable() const { return m_isCacheable; } 100 bool isCacheable() const { return m_isCacheable; }
98 101
99 MatchedPropertiesRange allRules() const { return MatchedPropertiesRange(m_ma tchedProperties.begin(), m_matchedProperties.end()); } 102 MatchedPropertiesRange allRules() const { return MatchedPropertiesRange(m_ma tchedProperties.begin(), m_matchedProperties.end()); }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 161 }
159 162
160 inline bool operator!=(const MatchedProperties& a, const MatchedProperties& b) 163 inline bool operator!=(const MatchedProperties& a, const MatchedProperties& b)
161 { 164 {
162 return !(a == b); 165 return !(a == b);
163 } 166 }
164 167
165 } // namespace blink 168 } // namespace blink
166 169
167 #endif // MatchResult_h 170 #endif // MatchResult_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/MediaQueryParser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698