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

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

Issue 1216523006: Only allow the -webkit-text color keyword in quirks/UA-sheet mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
196 bool acceptQuirkyColors(CSSPropertyID) const; 196 bool acceptQuirkyColors(CSSPropertyID) const;
197 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseBackgroundColor(const CSSPars erValue*);
198 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseTapHighlightColor(const CSSPa rserValue*);
199 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGradientStopColor(const CSSPa rserValue*);
200 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseDeprecatedGradientStopColor(c onst CSSParserValue*);
201 197
202 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight(); 198 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight();
203 bool parseFontSize(bool important); 199 bool parseFontSize(bool important);
204 bool parseFontVariant(bool important); 200 bool parseFontVariant(bool important);
205 bool parseFontWeight(bool important); 201 bool parseFontWeight(bool important);
206 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc(); 202 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc();
207 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange(); 203 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange();
208 204
209 bool parseSVGValue(CSSPropertyID propId, bool important); 205 bool parseSVGValue(CSSPropertyID propId, bool important);
210 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); 206 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit( value, unitflags, m_context.mode(), releaseCalc); } 349 inline bool validUnit(CSSParserValue* value, Units unitflags, ReleaseParsedC alcValueCondition releaseCalc = DoNotReleaseParsedCalcValue) { return validUnit( value, unitflags, m_context.mode(), releaseCalc); }
354 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue); 350 bool validUnit(CSSParserValue*, Units, CSSParserMode, ReleaseParsedCalcValue Condition releaseCalc = DoNotReleaseParsedCalcValue);
355 351
356 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&); 352 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSPrimitiveValue>&);
357 int colorIntFromValue(CSSParserValue*); 353 int colorIntFromValue(CSSParserValue*);
358 bool isCalculation(CSSParserValue*); 354 bool isCalculation(CSSParserValue*);
359 355
360 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); 356 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&);
361 357
362 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& ); 358 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& );
359 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseDeprecatedGradientStopColor(c onst CSSParserValue*);
363 360
364 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu e>, bool important); 361 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu e>, bool important);
365 362
366 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPoints(); 363 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPoints();
367 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapDestination(); 364 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapDestination();
368 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapCoordinate(); 365 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapCoordinate();
369 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPosition(); 366 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPosition();
370 367
371 private: 368 private:
372 // Inputs: 369 // Inputs:
(...skipping 10 matching lines...) Expand all
383 bool m_implicitShorthand; 380 bool m_implicitShorthand;
384 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 381 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
385 }; 382 };
386 383
387 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 384 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
388 CSSValueID cssValueKeywordID(const CSSParserString&); 385 CSSValueID cssValueKeywordID(const CSSParserString&);
389 386
390 } // namespace blink 387 } // namespace blink
391 388
392 #endif // CSSPropertyParser_h 389 #endif // CSSPropertyParser_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserFastPaths.cpp ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698