[Qt] Buildfix after r122870.
https://bugs.webkit.org/show_bug.cgi?id=89039

Reviewed by Csaba Osztrogonác

* src/compiler/preprocessor/new/MacroExpander.cpp:
(pp::MacroExpander::ungetToken):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] REGRESSION(r122376): It made 68 tests flakey (TEXT PASS)
https://bugs.webkit.org/show_bug.cgi?id=91063

* platform/qt-5.0-wk2/Skipped: Skip one more test.
* platform/qt/Skipped: Move a skipped test to the proper Skipped list.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add copy constructor to WebSpeechGrammar.h
https://bugs.webkit.org/show_bug.cgi?id=91484

Reviewed by Adam Barth.

Provide user-defined copy constructor (and assign function) for WebSpeechGrammar.
Without this, we were hitting the implicit copy constructor, which in
turn used the implicit copy constructor of WebPrivatePtr. This was bad,
because the implicit copy constructor wouldn't increace the reference
count on the wrapped object, causing us to crash.

Also add one for WebSpeechRecognitionResult; haven't seen any problems
here, but I noticed it was missing.

* public/WebSpeechGrammar.h:
(WebKit::WebSpeechGrammar::WebSpeechGrammar):
(WebSpeechGrammar):
* public/WebSpeechRecognitionResult.h:
(WebKit::WebSpeechRecognitionResult::WebSpeechRecognitionResult):
(WebSpeechRecognitionResult):
* src/WebSpeechGrammar.cpp:
(WebKit::WebSpeechGrammar::assign):
(WebKit):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Decimal::toString should not round integer value.
https://bugs.webkit.org/show_bug.cgi?id=91481

Reviewed by Kent Tamura.

Source/WebCore:

This patch makes Decimal::toString not to round an integer value
before converting string.

Tests: WebKit/chromium/tests/DecimalTest.cpp: DecimalTest.toString

* platform/Decimal.cpp:
(WebCore::Decimal::toString): When the value is an integer, we don't
round coefficient to be DBL_DIG(15) digits because double can
represent an integer without rounding error.

Source/WebKit/chromium:

This patch adds a new test cases for Decimal::toString() for failed
value and maximum coefficient value with various exponent.

* tests/DecimalTest.cpp:
(TEST_F): DecimalTest.toString: Add test cases for big coefficient values.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium gardening, rebaselined tests.

* platform/chromium-win-xp/css2.1/t100801-c544-valgn-03-d-agi-expected.png: Removed.
* platform/chromium-win-xp/css2.1/t100801-c544-valgn-03-d-agi-expected.txt: Removed.
* platform/chromium-win-xp/fast/inline-block/inline-block-vertical-align-expected.png: Removed.
* platform/chromium-win-xp/fast/inline/002-expected.png: Removed.
* platform/chromium-win/css2.1/t100801-c544-valgn-03-d-agi-expected.png:
* platform/chromium-win/css2.1/t100801-c544-valgn-03-d-agi-expected.txt:
* platform/chromium-win/fast/inline-block/inline-block-vertical-align-expected.png:
* platform/chromium-win/fast/inline/002-expected.png:
* platform/chromium-win/fast/table/table-display-types-strict-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r122345): HTMLCollection::length() sometimes returns a wrong value
https://bugs.webkit.org/show_bug.cgi?id=91587

Reviewed by Benjamin Poulain.

Source/WebCore:

The bug was caused by my douchey code that set the length cache to be the *offset*
of the last item in a HTMLCollection. Clearly, the length of a collection that contains
the last item at offset n is n + 1. Fixed that.

Also removed the call to setLengthCache in HTMLCollection::length since it must have set
by previous calls to itemBeforeOrAfterCachedItem already. This will allow us to catch
regressions like this in ports that use JSC bindings as well.

Test: fast/dom/htmlcollection-length-after-item.html

* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::length):
(WebCore::HTMLCollection::itemBeforeOrAfterCachedItem):

LayoutTests:

Add a regression test. It only fails on Chromium port before the patch is applied because JSC binding code
has a bug (?) that it always checks index > length() to throw an exception before accessing an item in HTMLCollection.

* fast/dom/htmlcollection-length-after-item-expected.txt: Added.
* fast/dom/htmlcollection-length-after-item.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium gardening, unskipped test.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[NRWT] Unreviewed gardening after r122913
https://bugs.webkit.org/show_bug.cgi?id=91601

* Scripts/webkitpy/layout_tests/port/server_process_unittest.py:
(TrivialMockPort.process_kill_time):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium gardening, unskipped test.

* platform/chromium/TestExpectations:

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