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

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

Issue 1576163002: Move scroll-snap related properties into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing Created 4 years, 11 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 | third_party/WebKit/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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&); 215 bool parseBorderImageRepeat(RefPtrWillBeRawPtr<CSSValue>&);
216 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&); 216 bool parseBorderImageSlice(CSSPropertyID, RefPtrWillBeRawPtr<CSSBorderImageS liceValue>&);
217 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&); 217 bool parseBorderImageWidth(RefPtrWillBeRawPtr<CSSQuadValue>&);
218 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&); 218 bool parseBorderImageOutset(RefPtrWillBeRawPtr<CSSQuadValue>&);
219 bool parseRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4], RefPtrWillBe RawPtr<CSSPrimitiveValue> radii2[4], CSSParserValueList*, CSSPropertyID = CSSPro pertyInvalid); 219 bool parseRadii(RefPtrWillBeRawPtr<CSSPrimitiveValue> radii[4], RefPtrWillBe RawPtr<CSSPrimitiveValue> radii2[4], CSSParserValueList*, CSSPropertyID = CSSPro pertyInvalid);
220 220
221 PassRefPtrWillBeRawPtr<CSSValue> parseReflect(); 221 PassRefPtrWillBeRawPtr<CSSValue> parseReflect();
222 222
223 bool consumeFlex(bool important); 223 bool consumeFlex(bool important);
224 224
225 PassRefPtrWillBeRawPtr<CSSValue> parsePosition(CSSParserValueList*);
226 PassRefPtrWillBeRawPtr<CSSValueList> parsePositionList(CSSParserValueList*);
227
228 // Image generators 225 // Image generators
229 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu e>&); 226 bool parseDeprecatedGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValu e>&);
230 bool parseDeprecatedLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C SSValue>&, CSSGradientRepeat repeating); 227 bool parseDeprecatedLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C SSValue>&, CSSGradientRepeat repeating);
231 bool parseDeprecatedRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C SSValue>&, CSSGradientRepeat repeating); 228 bool parseDeprecatedRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<C SSValue>&, CSSGradientRepeat repeating);
232 bool parseLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&, CSSGradientRepeat repeating); 229 bool parseLinearGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&, CSSGradientRepeat repeating);
233 bool parseRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&, CSSGradientRepeat repeating); 230 bool parseRadialGradient(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&, CSSGradientRepeat repeating);
234 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex pectComma); 231 bool parseGradientColorStops(CSSParserValueList*, CSSGradientValue*, bool ex pectComma);
235 232
236 bool parseCrossfade(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&); 233 bool parseCrossfade(CSSParserValueList*, RefPtrWillBeRawPtr<CSSValue>&);
237 234
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSQuadValue>&); 302 bool parseBorderImageQuad(Units, RefPtrWillBeRawPtr<CSSQuadValue>&);
306 int colorIntFromValue(CSSParserValue*); 303 int colorIntFromValue(CSSParserValue*);
307 304
308 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&); 305 bool buildBorderImageParseContext(CSSPropertyID, BorderImageParseContext&);
309 306
310 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& ); 307 bool parseDeprecatedGradientColorStop(CSSParserValue*, CSSGradientColorStop& );
311 PassRefPtrWillBeRawPtr<CSSValue> parseDeprecatedGradientStopColor(const CSSP arserValue*); 308 PassRefPtrWillBeRawPtr<CSSValue> parseDeprecatedGradientStopColor(const CSSP arserValue*);
312 309
313 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu e>, bool important); 310 void commitBorderImageProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValu e>, bool important);
314 311
315 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPoints();
316 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapDestination();
317 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapCoordinate();
318 PassRefPtrWillBeRawPtr<CSSValue> parseScrollSnapPosition();
319
320 private: 312 private:
321 // Inputs: 313 // Inputs:
322 CSSParserValueList* m_valueList; 314 CSSParserValueList* m_valueList;
323 CSSParserTokenRange m_range; 315 CSSParserTokenRange m_range;
324 const CSSParserContext& m_context; 316 const CSSParserContext& m_context;
325 317
326 // Outputs: 318 // Outputs:
327 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties; 319 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties;
328 320
329 // Locals during parsing: 321 // Locals during parsing:
330 int m_inParseShorthand; 322 int m_inParseShorthand;
331 CSSPropertyID m_currentShorthand; 323 CSSPropertyID m_currentShorthand;
332 bool m_implicitShorthand; 324 bool m_implicitShorthand;
333 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 325 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
334 }; 326 };
335 327
336 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 328 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
337 CSSValueID cssValueKeywordID(const CSSParserString&); 329 CSSValueID cssValueKeywordID(const CSSParserString&);
338 330
339 } // namespace blink 331 } // namespace blink
340 332
341 #endif // CSSPropertyParser_h 333 #endif // CSSPropertyParser_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698