Source/JavaScriptCore: Replace old strtod with new strtod
authorojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2012 02:40:45 +0000 (02:40 +0000)
committerojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2012 02:40:45 +0000 (02:40 +0000)
commite1a44bc7e6c49347bd5263b7ec97573a477e46dc
treea6d97b41a91a2e2080cd854727d691fb85e14e40
parent79ca1404027df25dca02f87df76e6541dcd53f08
Source/JavaScriptCore: Replace old strtod with new strtod
https://bugs.webkit.org/show_bug.cgi?id=68044

Patch by Mark Hahnenberg <mhahnenberg@apple.com> on 2012-02-12
Reviewed by Geoffrey Garen.

* parser/Lexer.cpp: Added template argument. This version allows junk after numbers.
(JSC::::lex):
* runtime/JSGlobalObjectFunctions.cpp: Ditto.
(JSC::parseInt):
(JSC::jsStrDecimalLiteral):
* runtime/LiteralParser.cpp: Ditto.
(JSC::::Lexer::lexNumber):
* wtf/dtoa.cpp: Replaced old strtod with a new version that uses the new StringToDoubleConverter.
It takes a template argument to allow clients to determine statically whether it should allow
junk after the numbers or not.
(WTF):
(WTF::strtod):
* wtf/dtoa.h:
(WTF):
* wtf/text/WTFString.cpp: Added template argument. This version does not allow junk after numbers.
(WTF::toDoubleType):

Source/WebCore: rtl + flex-direction:column is positioning elements incorrectly
https://bugs.webkit.org/show_bug.cgi?id=78555

Reviewed by Tony Chang.

Do the y-axis flipping after we have adjusted the y-position for
flex-align instead of before.

Tests: css3/flexbox/flex-align-baseline.html
       css3/flexbox/flex-align-end.html

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::alignChildren):
The amount we adjust by also needs to be flipped for rtl+column,
so the flipping needs to be done after we align the flex items.

LayoutTests: rtl + flex-direction:column is positioning elements incorrectly
https://bugs.webkit.org/show_bug.cgi?id=78555

Reviewed by Tony Chang.

* css3/flexbox/flex-align-baseline-expected.txt: Added.
* css3/flexbox/flex-align-baseline.html: Added.
* css3/flexbox/flex-align-end-expected.txt: Added.
* css3/flexbox/flex-align-end.html: Added.
* css3/flexbox/true-centering-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/css3/flexbox/flex-align-baseline-expected.txt [new file with mode: 0644]
LayoutTests/css3/flexbox/flex-align-baseline.html [new file with mode: 0644]
LayoutTests/css3/flexbox/flex-align-end-expected.txt [new file with mode: 0644]
LayoutTests/css3/flexbox/flex-align-end.html [new file with mode: 0644]
LayoutTests/css3/flexbox/true-centering-expected.txt
Source/JavaScriptCore/ChangeLog
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderFlexibleBox.cpp