Fix cssText property of counter-valued CSSPrimitiveValue and avoid uninitialized...
authoradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Sep 2011 02:09:25 +0000 (02:09 +0000)
committeradamk@chromium.org <adamk@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Sep 2011 02:09:25 +0000 (02:09 +0000)
commit2cd7e2144bc288ddb72f8bc8e7d383f4a2f10599
tree86b757f1c786ec3844312804198b7475c9e824aa
parent1e1723d7846a218a6a85c395d1629771a2522871
Fix cssText property of counter-valued CSSPrimitiveValue and avoid uninitialized read
https://bugs.webkit.org/show_bug.cgi?id=68021

Reviewed by Tony Chang.

Source/WebCore:

Reported by valgrind in http://crbug.com/60653.

Besides fixing the uninitialized read, add support for outputting the
list separator for counters() calls and the list-style name.

Test: fast/css/counters/counter-cssText.html

* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::cssText):

LayoutTests:

* fast/css/counters/counter-cssText-expected.txt: Added.
* fast/css/counters/counter-cssText.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@95071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/counters/counter-cssText-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/counters/counter-cssText.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSPrimitiveValue.cpp