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

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

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: fix compile Created 3 years, 12 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSParser_h 5 #ifndef CSSParser_h
6 #define CSSParser_h 6 #define CSSParser_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/CSSValue.h"
11 #include "core/css/StylePropertySet.h" 10 #include "core/css/StylePropertySet.h"
12 #include "core/css/parser/CSSParserMode.h" 11 #include "core/css/parser/CSSParserContext.h"
13 #include "platform/graphics/Color.h"
14 #include <memory> 12 #include <memory>
15 13
16 namespace blink { 14 namespace blink {
17 15
16 class Color;
18 class CSSParserObserver; 17 class CSSParserObserver;
19 class CSSParserTokenRange; 18 class CSSParserTokenRange;
20 class CSSSelectorList; 19 class CSSSelectorList;
21 class Element; 20 class Element;
22 class ImmutableStylePropertySet; 21 class ImmutableStylePropertySet;
23 class StyleRuleBase; 22 class StyleRuleBase;
24 class StyleRuleKeyframe; 23 class StyleRuleKeyframe;
25 class StyleSheetContents; 24 class StyleSheetContents;
25 class CSSValue;
26 26
27 // This class serves as the public API for the css/parser subsystem 27 // This class serves as the public API for the css/parser subsystem
28 class CORE_EXPORT CSSParser { 28 class CORE_EXPORT CSSParser {
29 STATIC_ONLY(CSSParser); 29 STATIC_ONLY(CSSParser);
30 30
31 public: 31 public:
32 // As well as regular rules, allows @import and @namespace but not @charset 32 // As well as regular rules, allows @import and @namespace but not @charset
33 static StyleRuleBase* parseRule(const CSSParserContext&, 33 static StyleRuleBase* parseRule(const CSSParserContext&,
34 StyleSheetContents*, 34 StyleSheetContents*,
35 const String&); 35 const String&);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 MutableStylePropertySet*, 100 MutableStylePropertySet*,
101 CSSPropertyID unresolvedProperty, 101 CSSPropertyID unresolvedProperty,
102 const String&, 102 const String&,
103 bool important, 103 bool important,
104 const CSSParserContext&); 104 const CSSParserContext&);
105 }; 105 };
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // CSSParser_h 109 #endif // CSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698