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

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

Issue 1331233003: Move parseFontFaceDescriptor to CSSPropertyParser.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add consumeWS for contents Created 5 years, 3 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 | « LayoutTests/fast/css/font-weight-1.html ('k') | 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*); 181 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseShapeRadius(CSSParserValue*);
182 182
183 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args); 183 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeCircle(CSSParserValueLi st* args);
184 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args); 184 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeEllipse(CSSParserValueL ist* args);
185 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args); 185 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapePolygon(CSSParserValueL ist* args);
186 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args); 186 PassRefPtrWillBeRawPtr<CSSBasicShape> parseBasicShapeInset(CSSParserValueLis t* args);
187 187
188 bool parseFont(bool important); 188 bool parseFont(bool important);
189 bool parseSystemFont(bool important); 189 bool parseSystemFont(bool important);
190 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily(); 190 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFamily();
191 PassRefPtrWillBeRawPtr<CSSValueList> consumeFontFamily();
191 192
192 PassRefPtrWillBeRawPtr<CSSValue> parseCounter(int defaultValue); 193 PassRefPtrWillBeRawPtr<CSSValue> parseCounter(int defaultValue);
193 PassRefPtrWillBeRawPtr<CSSValue> parseCounterContent(CSSParserValueList* arg s, bool counters); 194 PassRefPtrWillBeRawPtr<CSSValue> parseCounterContent(CSSParserValueList* arg s, bool counters);
194 195
195 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars eAlpha); 196 bool parseColorParameters(const CSSParserValue*, int* colorValues, bool pars eAlpha);
196 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par seAlpha); 197 bool parseHSLParameters(const CSSParserValue*, double* colorValues, bool par seAlpha);
197 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*, bool acceptQuirkyColors = false); 198 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseColor(const CSSParserValue*, bool acceptQuirkyColors = false);
198 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false); 199 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false);
199 200
200 bool acceptQuirkyColors(CSSPropertyID) const; 201 bool acceptQuirkyColors(CSSPropertyID) const;
201 202
202 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight(); 203 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseLineHeight();
203 bool parseFontSize(bool important); 204 bool parseFontSize(bool important);
204 bool parseFontVariant(bool important); 205 PassRefPtrWillBeRawPtr<CSSValue> consumeFontVariant();
205 bool parseFontWeight(bool important); 206 bool parseFontWeight(bool important);
206 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceSrc(); 207 PassRefPtrWillBeRawPtr<CSSValueList> consumeFontFaceSrc();
207 PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceUnicodeRange();
208 208
209 bool parseSVGValue(CSSPropertyID propId, bool important); 209 bool parseSVGValue(CSSPropertyID propId, bool important);
210 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray(); 210 PassRefPtrWillBeRawPtr<CSSValue> parseSVGStrokeDasharray();
211 211
212 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const; 212 PassRefPtrWillBeRawPtr<CSSValue> parsePaintOrder() const;
213 213
214 // CSS3 Parsing Routines (for properties specific to CSS3) 214 // CSS3 Parsing Routines (for properties specific to CSS3)
215 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID); 215 PassRefPtrWillBeRawPtr<CSSValueList> parseShadow(CSSParserValueList*, CSSPro pertyID);
216 PassRefPtrWillBeRawPtr<CSSShadowValue> parseSingleShadow(CSSParserValueList* , bool allowInset, bool allowSpread); 216 PassRefPtrWillBeRawPtr<CSSShadowValue> parseSingleShadow(CSSParserValueList* , bool allowInset, bool allowSpread);
217 bool parseBorderImageShorthand(CSSPropertyID, bool important); 217 bool parseBorderImageShorthand(CSSPropertyID, bool important);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 PassRefPtrWillBeRawPtr<CSSValue> parseTextEmphasisStyle(); 256 PassRefPtrWillBeRawPtr<CSSValue> parseTextEmphasisStyle();
257 257
258 PassRefPtrWillBeRawPtr<CSSValue> parseTouchAction(); 258 PassRefPtrWillBeRawPtr<CSSValue> parseTouchAction();
259 259
260 PassRefPtrWillBeRawPtr<CSSValue> parseTextDecoration(); 260 PassRefPtrWillBeRawPtr<CSSValue> parseTextDecoration();
261 261
262 PassRefPtrWillBeRawPtr<CSSValue> parseTextIndent(); 262 PassRefPtrWillBeRawPtr<CSSValue> parseTextIndent();
263 263
264 bool parseCalculation(CSSParserValue*, ValueRange); 264 bool parseCalculation(CSSParserValue*, ValueRange);
265 265
266 bool parseFontFeatureTag(CSSValueList*);
267 PassRefPtrWillBeRawPtr<CSSValue> parseFontFeatureSettings();
268
269 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&) ; 266 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&) ;
270 267
271 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*); 268 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*);
272 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars erValue*); 269 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSPars erValue*);
273 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS SParserValue*); 270 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveCustomIdentValue(CS SParserValue*);
274 271
275 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Atomi cString& rawValue, const KURL&); 272 PassRefPtrWillBeRawPtr<CSSValue> createCSSImageValueWithReferrer(const Atomi cString& rawValue, const KURL&);
276 273
277 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*); 274 PassRefPtrWillBeRawPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtrWil lBeRawPtr<CSSBasicShapeInset>, CSSParserValueList*);
278 275
279 enum SizeParameterType { 276 enum SizeParameterType {
280 None, 277 None,
281 Auto, 278 Auto,
282 Length, 279 Length,
283 PageSize, 280 PageSize,
284 Orientation, 281 Orientation,
285 }; 282 };
286 283
287 PassRefPtrWillBeRawPtr<CSSValueList> parseSize(); 284 PassRefPtrWillBeRawPtr<CSSValueList> parseSize();
288 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa lue*, SizeParameterType prevParamType); 285 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa lue*, SizeParameterType prevParamType);
289 286
290 bool parseFontFaceSrcURI(CSSValueList*); 287 PassRefPtrWillBeRawPtr<CSSValue> consumeFontFaceSrcURI();
291 bool parseFontFaceSrcLocal(CSSValueList*); 288 PassRefPtrWillBeRawPtr<CSSValue> consumeFontFaceSrcLocal();
292 289
293 class ImplicitScope { 290 class ImplicitScope {
294 STACK_ALLOCATED(); 291 STACK_ALLOCATED();
295 WTF_MAKE_NONCOPYABLE(ImplicitScope); 292 WTF_MAKE_NONCOPYABLE(ImplicitScope);
296 public: 293 public:
297 ImplicitScope(CSSPropertyParser* parser) 294 ImplicitScope(CSSPropertyParser* parser)
298 : m_parser(parser) 295 : m_parser(parser)
299 { 296 {
300 m_parser->m_implicitShorthand = true; 297 m_parser->m_implicitShorthand = true;
301 } 298 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 bool m_implicitShorthand; 374 bool m_implicitShorthand;
378 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 375 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
379 }; 376 };
380 377
381 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 378 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
382 CSSValueID cssValueKeywordID(const CSSParserString&); 379 CSSValueID cssValueKeywordID(const CSSParserString&);
383 380
384 } // namespace blink 381 } // namespace blink
385 382
386 #endif // CSSPropertyParser_h 383 #endif // CSSPropertyParser_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/font-weight-1.html ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698