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

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

Issue 903253002: Reduce number of includes in CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 5 years, 10 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.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 */ 21 */
22 22
23 #ifndef CSSPropertyParser_h 23 #ifndef CSSPropertyParser_h
24 #define CSSPropertyParser_h 24 #define CSSPropertyParser_h
25 25
26 // FIXME: Way too many.
27 #include "core/CSSPropertyNames.h"
28 #include "core/CSSValueKeywords.h"
29 #include "core/css/CSSCalculationValue.h"
30 #include "core/css/CSSFilterValue.h" 26 #include "core/css/CSSFilterValue.h"
31 #include "core/css/CSSGradientValue.h" 27 #include "core/css/CSSGradientValue.h"
32 #include "core/css/CSSGridTemplateAreasValue.h" 28 #include "core/css/CSSGridTemplateAreasValue.h"
33 #include "core/css/CSSProperty.h"
34 #include "core/css/CSSPropertySourceData.h" 29 #include "core/css/CSSPropertySourceData.h"
35 #include "core/css/CSSSelector.h" 30 #include "platform/Length.h"
36 #include "core/css/parser/CSSParserMode.h"
37 #include "core/css/parser/CSSParserValues.h"
38 #include "platform/graphics/Color.h"
39 #include "wtf/OwnPtr.h"
40 #include "wtf/Vector.h"
41 31
42 namespace blink { 32 namespace blink {
43 33
44 class CSSBorderImageSliceValue; 34 class CSSBorderImageSliceValue;
35 class CSSBasicShape;
36 class CSSBasicShapeInset;
37 class CSSGradientValue;
38 class CSSGridLineNamesValue;
39 class CSSLineBoxContainValue;
40 struct CSSParserString;
41 struct CSSParserValue;
42 class CSSParserValueList;
45 class CSSPrimitiveValue; 43 class CSSPrimitiveValue;
44 class CSSProperty;
46 class CSSValue; 45 class CSSValue;
47 class CSSValueList; 46 class CSSValueList;
48 class CSSBasicShape;
49 class CSSBasicShapeInset;
50 class CSSGridLineNamesValue;
51 class CSSLineBoxContainValue;
52 class StylePropertyShorthand; 47 class StylePropertyShorthand;
53 48
54 // Inputs: PropertyID, isImportant bool, CSSParserValueList. 49 // Inputs: PropertyID, isImportant bool, CSSParserValueList.
55 // Outputs: Vector of CSSProperties 50 // Outputs: Vector of CSSProperties
56 51
57 class CSSPropertyParser { 52 class CSSPropertyParser {
58 STACK_ALLOCATED(); 53 STACK_ALLOCATED();
59 public: 54 public:
60 55
61 enum Units { 56 enum Units {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 friend PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGradientColorOrKeyword (CSSPropertyParser*, CSSParserValue*); 379 friend PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGradientColorOrKeyword (CSSPropertyParser*, CSSParserValue*);
385 }; 380 };
386 381
387 CSSPropertyID cssPropertyID(const CSSParserString&); 382 CSSPropertyID cssPropertyID(const CSSParserString&);
388 CSSPropertyID cssPropertyID(const String&); 383 CSSPropertyID cssPropertyID(const String&);
389 CSSValueID cssValueKeywordID(const CSSParserString&); 384 CSSValueID cssValueKeywordID(const CSSParserString&);
390 385
391 } // namespace blink 386 } // namespace blink
392 387
393 #endif // CSSPropertyParser_h 388 #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