Bug 161813 - [CSS Parser] Add the main parser implementation
Summary: [CSS Parser] Add the main parser implementation
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-09 14:06 PDT by Dave Hyatt
Modified: 2016-09-22 13:37 PDT (History)
1 user (show)

See Also:


Attachments
Patch (72.67 KB, patch)
2016-09-09 14:11 PDT, Dave Hyatt
no flags Details | Formatted Diff | Diff
Patch (72.66 KB, patch)
2016-09-09 14:17 PDT, Dave Hyatt
no flags Details | Formatted Diff | Diff
Patch (72.65 KB, patch)
2016-09-09 14:26 PDT, Dave Hyatt
dino: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews113 for mac-yosemite (741.16 KB, application/zip)
2016-09-09 14:58 PDT, Build Bot
no flags Details
Patch to fix failures (73.23 KB, patch)
2016-09-09 17:35 PDT, Dave Hyatt
no flags 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-09 14:06:59 PDT
[CSS Parser] Add the main parser implementation
Comment 1 Dave Hyatt 2016-09-09 14:11:13 PDT
Created attachment 288437 [details]
Patch

Patch
Comment 2 WebKit Commit Bot 2016-09-09 14:13:02 PDT
Attachment 288437 [details] did not pass style-queue:


ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:59:  Wrong number of spaces before statement. (expected: 4)  [whitespace/indent] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:60:  Wrong number of spaces before statement. (expected: 4)  [whitespace/indent] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:61:  Wrong number of spaces before statement. (expected: 4)  [whitespace/indent] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:112:  An else should appear on the same line as the preceding }  [whitespace/newline] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:99:  An else statement can be removed when the prior "if" concludes with a return, break, continue or goto statement.  [readability/control_flow] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:228:  One line control clauses should not use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:237:  One line control clauses should not use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:242:  Use 'WTFMove()' instead of 'std::move()'.  [runtime/wtf_move] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:602:  One line control clauses should not use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:665:  Use 'WTFMove()' instead of 'std::move()'.  [runtime/wtf_move] [4]
ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:805:  Should have a space between // and comment  [whitespace/comments] [4]
ERROR: Source/WebCore/css/StyleRule.cpp:410:  Wrong number of spaces before statement. (expected: 4)  [whitespace/indent] [4]
ERROR: Source/WebCore/css/parser/CSSSupportsParser.h:48:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
Total errors found: 13 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dave Hyatt 2016-09-09 14:17:46 PDT
Created attachment 288439 [details]
Patch
Comment 4 WebKit Commit Bot 2016-09-09 14:20:36 PDT
Attachment 288439 [details] did not pass style-queue:


ERROR: Source/WebCore/css/parser/CSSParserImpl.cpp:99:  An else statement can be removed when the prior "if" concludes with a return, break, continue or goto statement.  [readability/control_flow] [4]
ERROR: Source/WebCore/css/StyleRule.cpp:410:  Wrong number of spaces before statement. (expected: 4)  [whitespace/indent] [4]
Total errors found: 2 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Dave Hyatt 2016-09-09 14:26:58 PDT
Created attachment 288441 [details]
Patch
Comment 6 Dean Jackson 2016-09-09 14:40:12 PDT
Comment on attachment 288441 [details]
Patch

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

There are a bunch of // comments that are not ending with punctuation.

> Source/WebCore/css/parser/CSSPropertyParser.cpp:246
> +    /*

Could you put a FIXME here?
Comment 7 Build Bot 2016-09-09 14:58:31 PDT
Comment on attachment 288441 [details]
Patch

Attachment 288441 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2043497

Number of test failures exceeded the failure limit.
Comment 8 Build Bot 2016-09-09 14:58:34 PDT
Created attachment 288444 [details]
Archive of layout-test-results from ews113 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 9 Dave Hyatt 2016-09-09 17:35:55 PDT
Created attachment 288457 [details]
Patch to fix failures
Comment 10 Dave Hyatt 2016-09-11 11:14:10 PDT
Landed in r205790.