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

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.h

Issue 1225403010: Reduce usage of CSSParserValueList::size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix warning 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 | « no previous file | Source/core/css/parser/CSSPropertyParser.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) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d. 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox(); 175 PassRefPtrWillBeRawPtr<CSSValue> parseBasicShapeAndOrBox();
176 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape(); 176 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBasicShape();
177 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); 177 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*);
178 178
179 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args); 179 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args);
180 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args); 180 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args);
181 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args); 181 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args);
182 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args); 182 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args);
183 183
184 bool parseFont(bool important); 184 bool parseFont(bool important);
185 void parseSystemFont(bool important); 185 bool parseSystemFont(bool important);
186 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); 186 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily();
187 187
188 PassRefPtrWillBeRawPtr<CSSValue> parseCounter(int defaultValue); 188 PassRefPtrWillBeRawPtr<CSSValue> parseCounter(int defaultValue);
189 PassRefPtrWillBeRawPtr<CSSValue> parseCounterContent(CSSParserValueList* arg s, bool counters); 189 PassRefPtrWillBeRawPtr<CSSValue> parseCounterContent(CSSParserValueList* arg s, bool counters);
190 190
191 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars eAlpha); 191 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars eAlpha);
192 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par seAlpha); 192 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par seAlpha);
193 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*, bool acceptQuirkyColors = false); 193 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*, bool acceptQuirkyColors = false);
194 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false); 194 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false);
195 195
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 bool m_implicitShorthand; 377 bool m_implicitShorthand;
378 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 378 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
379 }; 379 };
380 380
381 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 381 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
382 CSSValueID cssValueKeywordID(const CSSParserString&); 382 CSSValueID cssValueKeywordID(const CSSParserString&);
383 383
384 } // namespace blink 384 } // namespace blink
385 385
386 #endif // CSSPropertyParser_h 386 #endif // CSSPropertyParser_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698