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

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

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 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 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 struct MatchResult { 133 struct MatchResult {
134 STACK_ALLOCATED(); 134 STACK_ALLOCATED();
135 MatchResult() : dynamicPseudo(PseudoIdNone), specificity(0) {} 135 MatchResult() : dynamicPseudo(PseudoIdNone), specificity(0) {}
136 136
137 PseudoId dynamicPseudo; 137 PseudoId dynamicPseudo;
138 unsigned specificity; 138 unsigned specificity;
139 }; 139 };
140 140
141 bool match(const SelectorCheckingContext& context, 141 bool match(const SelectorCheckingContext& context,
142 MatchResult& result) const { 142 MatchResult& result) const {
143 ASSERT(context.selector); 143 DCHECK(context.selector);
144 return matchSelector(context, result) == SelectorMatches; 144 return matchSelector(context, result) == SelectorMatches;
145 } 145 }
146 146
147 bool match(const SelectorCheckingContext& context) const { 147 bool match(const SelectorCheckingContext& context) const {
148 MatchResult ignoreResult; 148 MatchResult ignoreResult;
149 return match(context, ignoreResult); 149 return match(context, ignoreResult);
150 } 150 }
151 151
152 static bool matchesFocusPseudoClass(const Element&); 152 static bool matchesFocusPseudoClass(const Element&);
153 153
(...skipping 28 matching lines...) Expand all
182 Mode m_mode; 182 Mode m_mode;
183 bool m_isUARule; 183 bool m_isUARule;
184 ComputedStyle* m_elementStyle; 184 ComputedStyle* m_elementStyle;
185 Member<LayoutScrollbar> m_scrollbar; 185 Member<LayoutScrollbar> m_scrollbar;
186 ScrollbarPart m_scrollbarPart; 186 ScrollbarPart m_scrollbarPart;
187 }; 187 };
188 188
189 } // namespace blink 189 } // namespace blink
190 190
191 #endif 191 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleSet.cpp ('k') | third_party/WebKit/Source/core/css/SelectorFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698