compute the sign of flexibility for new flexbox
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Mar 2012 20:00:22 +0000 (20:00 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Mar 2012 20:00:22 +0000 (20:00 +0000)
commit915262692f46c313c6b07d030866573dc7923e70
tree2837e9f2033e24afcb217cfd87ebf3b92cf125fa
parentd3525d2b522acd884c972ba605907bf0b5d7d30b
compute the sign of flexibility for new flexbox
https://bugs.webkit.org/show_bug.cgi?id=81722

Reviewed by Ojan Vafai.

This implements the computation of the sign of flexibility used by the
new flexing algorithm.
http://dev.w3.org/csswg/css3-flexbox/#resolve-the-flexible-lengths

No new tests, we don't use the sign of flexibility yet.

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutFlexItems):
(WebCore::RenderFlexibleBox::computeNextFlexLine): Compute the size
adjusted for min/max as well as not adjusted.
(WebCore::RenderFlexibleBox::resolveFlexibleLengths): Renamed to match
spec text better.
* rendering/RenderFlexibleBox.h: Added enum for flex sign.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderFlexibleBox.cpp
Source/WebCore/rendering/RenderFlexibleBox.h