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