Bug 133988 - Use strongly typed enums for AnimationState and AnimationInputState
Summary: Use strongly typed enums for AnimationState and AnimationInputState
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-17 11:37 PDT by Anders Carlsson
Modified: 2014-06-17 13:19 PDT (History)
4 users (show)

See Also:


Attachments
Patch (52.58 KB, patch)
2014-06-17 12:33 PDT, Anders Carlsson
thorton: review+
thorton: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2014-06-17 11:37:47 PDT
Use strongly typed enums for AnimationState and AnimationInputState
Comment 1 Anders Carlsson 2014-06-17 12:33:11 PDT
Created attachment 233249 [details]
Patch
Comment 2 WebKit Commit Bot 2014-06-17 12:34:43 PDT
Attachment 233249 [details] did not pass style-queue:


ERROR: Source/WebCore/page/animation/AnimationBase.cpp:200:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Source/WebCore/page/animation/AnimationBase.h:72:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:73:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:74:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:75:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:76:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:77:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:78:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:79:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:80:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:81:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:82:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:83:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:84:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:88:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:89:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:90:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:91:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:92:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:93:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:94:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:95:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:96:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:97:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:98:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:99:  One space before end of line comments  [whitespace/comments] [5]
ERROR: Source/WebCore/page/animation/AnimationBase.h:100:  One space before end of line comments  [whitespace/comments] [5]
Total errors found: 27 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Tim Horton 2014-06-17 12:48:45 PDT
Comment on attachment 233249 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=233249&action=review

> Source/WebCore/page/animation/AnimationBase.h:87
> +    enum AnimationStateInput {

where's the "class"?
Comment 4 Anders Carlsson 2014-06-17 13:19:41 PDT
Committed r170070: <http://trac.webkit.org/changeset/170070>