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

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

Issue 1311413004: Merge parseBorderRadius and parseInsetRoundedCorners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again Created 5 years 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) 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce ptQuirkyColors = false); 215 PassRefPtrWillBeRawPtr<CSSValue> parseColor(const CSSParserValue*, bool acce ptQuirkyColors = false);
216 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false); 216 bool parseColorFromValue(const CSSParserValue*, RGBA32&, bool acceptQuirkyCo lors = false);
217 217
218 // CSS3 Parsing Routines (for properties specific to CSS3) 218 // CSS3 Parsing Routines (for properties specific to CSS3)
219 bool parseBorderImageShorthand(CSSPropertyID, bool important); 219 bool parseBorderImageShorthand(CSSPropertyID, bool important);
220 PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID); 220 PassRefPtrWillBeRawPtr<CSSValue> parseBorderImage(CSSPropertyID);
221 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); 221 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&);
222 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&); 222 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&);
223 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&); 223 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&);
224 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&); 224 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&);
225 bool parseBorderRadius(CSSPropertyID, bool important); 225 bool parseRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4], RefPtrWillBe RawPtr<CSSPrimitiveValue> radii2[4], CSSParserValueList*, CSSPropertyID = CSSPro pertyInvalid);
226 226
227 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); 227 PassRefPtrWillBeRawPtr<CSSValue> parseReflect();
228 228
229 bool consumeFlex(bool important); 229 bool consumeFlex(bool important);
230 230
231 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*); 231 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*);
232 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*); 232 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*);
233 233
234 // Image generators 234 // Image generators
235 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu e>&); 235 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu e>&);
(...skipping 11 matching lines...) Expand all
247 PassRefPtrWillBeRawPtr<CSSFunctionValue> parseBuiltinFilterArguments(CSSPars erValueList*, CSSValueID); 247 PassRefPtrWillBeRawPtr<CSSFunctionValue> parseBuiltinFilterArguments(CSSPars erValueList*, CSSValueID);
248 248
249 bool parseCalculation(CSSParserValue*, ValueRange); 249 bool parseCalculation(CSSParserValue*, ValueRange);
250 250
251 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&) ; 251 bool parseGeneratedImage(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&) ;
252 252
253 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*); 253 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSPar serValue*);
254 PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveStringValue(CSSParserV alue*); 254 PassRefPtrWillBeRawPtr<CSSStringValue> createPrimitiveStringValue(CSSParserV alue*);
255 PassRefPtrWillBeRawPtr<CSSCustomIdentValue> createPrimitiveCustomIdentValue( CSSParserValue*); 255 PassRefPtrWillBeRawPtr<CSSCustomIdentValue> createPrimitiveCustomIdentValue( CSSParserValue*);
256 256
257 PassRefPtrWillBeRawPtr<CSSBasicShapeInsetValue> parseInsetRoundedCorners(Pas sRefPtrWillBeRawPtr<CSSBasicShapeInsetValue>, CSSParserValueList*);
258
259 class ImplicitScope { 257 class ImplicitScope {
260 STACK_ALLOCATED(); 258 STACK_ALLOCATED();
261 WTF_MAKE_NONCOPYABLE(ImplicitScope); 259 WTF_MAKE_NONCOPYABLE(ImplicitScope);
262 public: 260 public:
263 ImplicitScope(CSSPropertyParser* parser) 261 ImplicitScope(CSSPropertyParser* parser)
264 : m_parser(parser) 262 : m_parser(parser)
265 { 263 {
266 m_parser->m_implicitShorthand = true; 264 m_parser->m_implicitShorthand = true;
267 } 265 }
268 266
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool m_implicitShorthand; 338 bool m_implicitShorthand;
341 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 339 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
342 }; 340 };
343 341
344 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 342 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
345 CSSValueID cssValueKeywordID(const CSSParserString&); 343 CSSValueID cssValueKeywordID(const CSSParserString&);
346 344
347 } // namespace blink 345 } // namespace blink
348 346
349 #endif // CSSPropertyParser_h 347 #endif // CSSPropertyParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698