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

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

Issue 293113007: Simplify animation/transition parsing slightly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
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 24 matching lines...) Expand all
35 #include "core/css/CSSProperty.h" 35 #include "core/css/CSSProperty.h"
36 #include "core/css/CSSPropertySourceData.h" 36 #include "core/css/CSSPropertySourceData.h"
37 #include "core/css/CSSSelector.h" 37 #include "core/css/CSSSelector.h"
38 #include "platform/graphics/Color.h" 38 #include "platform/graphics/Color.h"
39 #include "wtf/OwnPtr.h" 39 #include "wtf/OwnPtr.h"
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 // FIXME: Many of these may not be used. 44 // FIXME: Many of these may not be used.
45 class AnimationParseContext;
46 class CSSArrayFunctionValue; 45 class CSSArrayFunctionValue;
47 class CSSBorderImageSliceValue; 46 class CSSBorderImageSliceValue;
48 class CSSPrimitiveValue; 47 class CSSPrimitiveValue;
49 class CSSSelectorList; 48 class CSSSelectorList;
50 class CSSValue; 49 class CSSValue;
51 class CSSValueList; 50 class CSSValueList;
52 class CSSBasicShape; 51 class CSSBasicShape;
53 class CSSBasicShapeInset; 52 class CSSBasicShapeInset;
54 class CSSGridLineNamesValue; 53 class CSSGridLineNamesValue;
55 class Document; 54 class Document;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 128
130 void addAnimationValue(RefPtrWillBeRawPtr<CSSValue>& lval, PassRefPtrWillBeR awPtr<CSSValue> rval); 129 void addAnimationValue(RefPtrWillBeRawPtr<CSSValue>& lval, PassRefPtrWillBeR awPtr<CSSValue> rval);
131 130
132 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDelay(); 131 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDelay();
133 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDirection(); 132 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDirection();
134 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDuration(); 133 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationDuration();
135 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationFillMode(); 134 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationFillMode();
136 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationIterationCount(); 135 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationIterationCount();
137 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationName(); 136 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationName();
138 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationPlayState(); 137 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationPlayState();
139 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(AnimationParseContex t&); 138 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty();
140 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunction(); 139 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunction();
141 140
142 bool parseWebkitTransformOriginShorthand(RefPtrWillBeRawPtr<CSSValue>&, RefP trWillBeRawPtr<CSSValue>&, RefPtrWillBeRawPtr<CSSValue>&); 141 bool parseWebkitTransformOriginShorthand(RefPtrWillBeRawPtr<CSSValue>&, RefP trWillBeRawPtr<CSSValue>&, RefPtrWillBeRawPtr<CSSValue>&);
143 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result); 142 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result);
144 bool parseAnimationProperty(CSSPropertyID, RefPtrWillBeRawPtr<CSSValue>&, An imationParseContext&); 143 PassRefPtrWillBeRawPtr<CSSValue> parseAnimationProperty(CSSPropertyID);
144 PassRefPtrWillBeRawPtr<CSSValueList> parseAnimationPropertyList(CSSPropertyI D);
145 bool parseTransitionShorthand(CSSPropertyID, bool important); 145 bool parseTransitionShorthand(CSSPropertyID, bool important);
146 bool parseAnimationShorthand(CSSPropertyID, bool important); 146 bool parseAnimationShorthand(CSSPropertyID, bool important);
147 147
148 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth(); 148 PassRefPtrWillBeRawPtr<CSSValue> parseColumnWidth();
149 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount(); 149 PassRefPtrWillBeRawPtr<CSSValue> parseColumnCount();
150 bool parseColumnsShorthand(bool important); 150 bool parseColumnsShorthand(bool important);
151 151
152 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition(); 152 PassRefPtrWillBeRawPtr<CSSValue> parseGridPosition();
153 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName); 153 bool parseIntegerOrCustomIdentFromGridPosition(RefPtrWillBeRawPtr<CSSPrimiti veValue>& numericValue, RefPtrWillBeRawPtr<CSSPrimitiveValue>& gridLineName);
154 bool parseGridItemPositionShorthand(CSSPropertyID, bool important); 154 bool parseGridItemPositionShorthand(CSSPropertyID, bool important);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 CSSPropertyID cssPropertyID(const CSSParserString&); 401 CSSPropertyID cssPropertyID(const CSSParserString&);
402 CSSPropertyID cssPropertyID(const String&); 402 CSSPropertyID cssPropertyID(const String&);
403 CSSValueID cssValueKeywordID(const CSSParserString&); 403 CSSValueID cssValueKeywordID(const CSSParserString&);
404 404
405 bool isKeywordPropertyID(CSSPropertyID); 405 bool isKeywordPropertyID(CSSPropertyID);
406 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo ntext&); 406 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo ntext&);
407 407
408 } // namespace WebCore 408 } // namespace WebCore
409 409
410 #endif // CSSPropertyParser_h 410 #endif // CSSPropertyParser_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/BisonCSSParser-in.cpp ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698