[CSS Regions] Fix WHITESPACE issues in the CSS grammar.
https://bugs.webkit.org/show_bug.cgi?id=123082

Patch by Mihai Maerean <mmaerean@adobe.com> on 2013-10-21
Reviewed by Andreas Kling.

This is a port of Rune Lillesveen's patch from https://codereview.chromium.org/25607005

Source/WebCore:

Fix WHITESPACE issues in the CSS grammar.

A single WHITESPACE token consumes consecutive spaces, but does not consume
spaces separated by comments. That means S* and S+ in CSS grammars need to
accept multiple WHITESPACE tokens. Additionally, white spaces are not
mandatory to separate an @-symbol and the rest of the prelude.

Use space non-terminal instead of WHITESPACE for S+ in calc expressions.

Use maybe_space non-terminal instead of WHITESPACE for S* after @-webkit-filter
and @-webkit-region.

Tests: fast/css/calc-comments-allowed.html
       fast/regions/webkit-region-syntax-space.html

* css/CSSGrammar.y.in:

LayoutTests:

* css3/filters/custom-with-at-rule-syntax/parsing-at-rule-valid-expected.txt:
* css3/filters/custom-with-at-rule-syntax/script-tests/parsing-at-rule-valid.js:
* fast/css/calc-comments-allowed-expected.html: Added.
* fast/css/calc-comments-allowed.html: Added.
* fast/regions/webkit-region-syntax-space-expected.txt: Added.
* fast/regions/webkit-region-syntax-space.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157720 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout Test media/media-controller-time-clamp.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=123099

* platform/mac/TestExpectations: Marking as such.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Merge RenderListMarker::styleWillChange() into styleDidChange().
<https://webkit.org/b/123098>

If the marker's list-style-type or list-style-position changed, we
need to dirty the layout. Move this logic to styleDidChange() so we
can get rid of one styleWillChange() overload.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157722 268f45cc-cd09-0410-ab3c-d52691b4dbfc