WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161695
Add CSSAtRule id info for new parser
https://bugs.webkit.org/show_bug.cgi?id=161695
Summary
Add CSSAtRule id info for new parser
Dave Hyatt
Reported
2016-09-07 09:39:42 PDT
Add CSSAtRule id info for new parser
Attachments
Patch
(11.00 KB, patch)
2016-09-07 09:41 PDT
,
Dave Hyatt
sam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2016-09-07 09:41:15 PDT
Created
attachment 288149
[details]
Patch
Sam Weinig
Comment 2
2016-09-07 09:53:14 PDT
Comment on
attachment 288149
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=288149&action=review
> Source/WebCore/css/parser/CSSAtRuleID.h:31 > +#ifndef CSSAtRuleID_h > +#define CSSAtRuleID_h
You can replace this with #pragma once
> Source/WebCore/css/parser/CSSAtRuleID.h:33 > +#include <wtf/text/StringView.h>
This can be replaced with <wtf/Forward.h>
> Source/WebCore/css/parser/CSSAtRuleID.h:54 > +enum CSSAtRuleID { > + CSSAtRuleInvalid = 0, > + > + CSSAtRuleCharset = 1, > + CSSAtRuleFontFace = 2, > + CSSAtRuleImport = 3, > + CSSAtRuleKeyframes = 4, > + CSSAtRuleMedia = 5, > + CSSAtRuleNamespace = 6, > + CSSAtRulePage = 7, > + CSSAtRuleSupports = 8, > + CSSAtRuleViewport = 9, > + > + CSSAtRuleWebkitKeyframes = 10, > + CSSAtRuleApply = 11, > +}; > + > +CSSAtRuleID cssAtRuleID(StringView name);
We don't really have a style rule on this, but you could use enum class here to make this something like: enum class CSSAtRule { Invalid , Charset, ... }; Up to you.
Dave Hyatt
Comment 3
2016-09-07 09:56:39 PDT
Landed in
r205550
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug