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

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

Issue 2024373002: Replace CSSParserString with StringView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Match arguments to equalStringView. Created 4 years, 6 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"
9
8 namespace blink { 10 namespace blink {
9 11
10 struct CSSParserString;
11 class UseCounter; 12 class UseCounter;
12 13
13 enum CSSAtRuleID { 14 enum CSSAtRuleID {
14 CSSAtRuleInvalid = 0, 15 CSSAtRuleInvalid = 0,
15 16
16 CSSAtRuleCharset = 1, 17 CSSAtRuleCharset = 1,
17 CSSAtRuleFontFace = 2, 18 CSSAtRuleFontFace = 2,
18 CSSAtRuleImport = 3, 19 CSSAtRuleImport = 3,
19 CSSAtRuleKeyframes = 4, 20 CSSAtRuleKeyframes = 4,
20 CSSAtRuleMedia = 5, 21 CSSAtRuleMedia = 5,
21 CSSAtRuleNamespace = 6, 22 CSSAtRuleNamespace = 6,
22 CSSAtRulePage = 7, 23 CSSAtRulePage = 7,
23 CSSAtRuleSupports = 8, 24 CSSAtRuleSupports = 8,
24 CSSAtRuleViewport = 9, 25 CSSAtRuleViewport = 9,
25 26
26 CSSAtRuleWebkitKeyframes = 10, 27 CSSAtRuleWebkitKeyframes = 10,
27 CSSAtRuleApply = 11, 28 CSSAtRuleApply = 11,
28 }; 29 };
29 30
30 CSSAtRuleID cssAtRuleID(const CSSParserString&); 31 CSSAtRuleID cssAtRuleID(StringView name);
31 32
32 void countAtRule(UseCounter*, CSSAtRuleID); 33 void countAtRule(UseCounter*, CSSAtRuleID);
33 34
34 } // namespace blink 35 } // namespace blink
35 36
36 #endif // CSSAtRuleID_h 37 #endif // CSSAtRuleID_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698