Bug 162033 - [CSS Parser] Get CSSParserFastPaths.cpp compiling
Summary: [CSS Parser] Get CSSParserFastPaths.cpp compiling
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords:
Depends on:
Blocks: 46591
  Show dependency treegraph
 
Reported: 2016-09-15 14:27 PDT by Dave Hyatt
Modified: 2016-09-22 13:36 PDT (History)
2 users (show)

See Also:


Attachments
Patch (54.01 KB, patch)
2016-09-15 14:33 PDT, Dave Hyatt
no flags Details | Formatted Diff | Diff
Patch (53.69 KB, patch)
2016-09-15 14:41 PDT, Dave Hyatt
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hyatt 2016-09-15 14:27:36 PDT
[CSS Parser] Get CSSParserFastPaths.cpp compiling
Comment 1 Dave Hyatt 2016-09-15 14:33:54 PDT
Created attachment 289000 [details]
Patch
Comment 2 WebKit Commit Bot 2016-09-15 14:34:58 PDT
Attachment 289000 [details] did not pass style-queue:


ERROR: Source/WebCore/css/StyleColor.h:41:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/WebCore/css/StyleColor.h:42:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/WebCore/css/CSSFunctionValue.cpp:50:  Wrong number of spaces before statement. (expected: 4)  [whitespace/indent] [4]
ERROR: Source/WebCore/css/CSSFunctionValue.cpp:51:  Wrong number of spaces before statement. (expected: 4)  [whitespace/indent] [4]
ERROR: Source/WebCore/css/CSSFunctionValue.h:63:  The parameter name "value" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/WebCore/css/CSSFunctionValue.h:69:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/css/parser/CSSParserFastPaths.cpp:492:  More than one command on the same line  [whitespace/newline] [4]
ERROR: Source/WebCore/css/parser/CSSParserFastPaths.cpp:551:  Line contains only semicolon. If this should be an empty statement, use { } instead.  [whitespace/semicolon] [5]
ERROR: Source/WebCore/css/parser/CSSParserFastPaths.cpp:747:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebCore/css/CSSProperty.cpp:161:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Source/WebCore/css/parser/CSSParserIdioms.cpp:55:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: Source/WebCore/css/parser/CSSParserIdioms.h:40:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 12 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dave Hyatt 2016-09-15 14:41:51 PDT
Created attachment 289001 [details]
Patch
Comment 4 WebKit Commit Bot 2016-09-15 14:43:52 PDT
Attachment 289001 [details] did not pass style-queue:


ERROR: Source/WebCore/css/parser/CSSParserFastPaths.cpp:551:  Line contains only semicolon. If this should be an empty statement, use { } instead.  [whitespace/semicolon] [5]
Total errors found: 1 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Dean Jackson 2016-09-15 14:55:08 PDT
Comment on attachment 289001 [details]
Patch

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

> Source/WebCore/css/CSSValueKeywords.in:1157
> +paint

Do we support this one yet?

> Source/WebCore/css/parser/CSSParserFastPaths.cpp:179
> -    case CSSPropertyTextDecorationColor:
> +    case CSSPropertyWebkitTextDecorationColor:

Is this because we don't support the unprefixed form?

> Source/WebCore/css/parser/CSSParserFastPaths.cpp:537
> -        return valueID == CSSValueAuto || valueID == CSSValueSRGB || valueID == CSSValueLinearRGB;
> +        return valueID == CSSValueAuto || valueID == CSSValueSrgb || valueID == CSSValueLinearrgb;

We should add a parameter to CSSValueKeywords.in that allows us to map things to nicer names.

CSSPropertyNames.in has something like this: some-name-with-a-tla [NameForMethods=SomeNameWithATLA]
Comment 6 Dave Hyatt 2016-09-15 17:36:08 PDT
Landed in r206007.