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

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

Issue 2671173002: Change CSSParserContext to have a Document handle (vs UseCounter). (Closed)
Patch Set: fix todo style Created 3 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CSSAtRuleID_h 5 #ifndef CSSAtRuleID_h
6 #define CSSAtRuleID_h 6 #define CSSAtRuleID_h
7 7
8 #include "wtf/text/StringView.h" 8 #include "wtf/text/StringView.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class UseCounter; 12 class CSSParserContext;
13 13
14 enum CSSAtRuleID { 14 enum CSSAtRuleID {
15 CSSAtRuleInvalid = 0, 15 CSSAtRuleInvalid = 0,
16 16
17 CSSAtRuleCharset = 1, 17 CSSAtRuleCharset = 1,
18 CSSAtRuleFontFace = 2, 18 CSSAtRuleFontFace = 2,
19 CSSAtRuleImport = 3, 19 CSSAtRuleImport = 3,
20 CSSAtRuleKeyframes = 4, 20 CSSAtRuleKeyframes = 4,
21 CSSAtRuleMedia = 5, 21 CSSAtRuleMedia = 5,
22 CSSAtRuleNamespace = 6, 22 CSSAtRuleNamespace = 6,
23 CSSAtRulePage = 7, 23 CSSAtRulePage = 7,
24 CSSAtRuleSupports = 8, 24 CSSAtRuleSupports = 8,
25 CSSAtRuleViewport = 9, 25 CSSAtRuleViewport = 9,
26 26
27 CSSAtRuleWebkitKeyframes = 10, 27 CSSAtRuleWebkitKeyframes = 10,
28 CSSAtRuleApply = 11, 28 CSSAtRuleApply = 11,
29 }; 29 };
30 30
31 CSSAtRuleID cssAtRuleID(StringView name); 31 CSSAtRuleID cssAtRuleID(StringView name);
32 32
33 void countAtRule(UseCounter*, CSSAtRuleID); 33 void countAtRule(const CSSParserContext*, CSSAtRuleID);
34 34
35 } // namespace blink 35 } // namespace blink
36 36
37 #endif // CSSAtRuleID_h 37 #endif // CSSAtRuleID_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSAtRuleID.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698