Closed Bug 1011311 Opened 11 years ago Closed 11 years ago

Simplify availableFreeSpace check in ResolveFlexibleLengths() to assume its sign can't disagree with the type of flexing

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

Quoting & expanding on bug 1005660 comment 4: I'm 95% sure that bug 1005660's fix will mean that we don't need the "if the sign of free space matches the type of flexing that we're doing" check[1] anymore. If the free space is nonzero, I think we can now assume that it *must* match our type of flexing. It can't be negative if we're growing, for example (or else we would have chosen to shrink instead of grow, or frozen a flex item that's trivially violating its max-width, up-front). Filing this bug to cover this change. [1] http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsFlexContainerFrame.cpp?rev=b37e7eabd9ef&mark=1705-1708#1705
Posted to www-style to propose that this change in the spec: http://lists.w3.org/Archives/Public/www-style/2014May/0169.html
Attached patch fix v1Splinter Review
Attachment #8423542 - Flags: review?(matspal)
Comment on attachment 8423542 [details] [diff] [review] fix v1 r=mats
Attachment #8423542 - Flags: review?(matspal) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Depends on: 1015563
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: