Closed Bug 344583 Opened 19 years ago Closed 19 years ago

Random bits of cleanup in layout/generic

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sharparrow1, Assigned: sharparrow1)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Assignee: nobody → sharparrow1
Status: NEW → ASSIGNED
Attachment #229150 - Flags: review?(roc)
Comment on attachment 229150 [details] [diff] [review] Patch - // Make sure the child is at least as tall as our max size (the containing window) - if (aDesiredSize.height < aReflowState.availableHeight && - aReflowState.availableHeight != NS_UNCONSTRAINEDSIZE) { - aDesiredSize.height = aReflowState.availableHeight; - } Can you tell me why this is OK to remove?
Attachment #229150 - Flags: superreview+
Attachment #229150 - Flags: review?(roc)
Attachment #229150 - Flags: review+
(In reply to comment #2) > (From update of attachment 229150 [details] [diff] [review] [edit]) > - // Make sure the child is at least as tall as our max size (the containing window) > - if (aDesiredSize.height < aReflowState.availableHeight && > - aReflowState.availableHeight != NS_UNCONSTRAINEDSIZE) { > - aDesiredSize.height = aReflowState.availableHeight; > - } > > Can you tell me why this is OK to remove? A few lines below that: if (aReflowState.availableHeight != NS_UNCONSTRAINEDSIZE) { aDesiredSize.height = aReflowState.availableHeight; } (http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/generic/nsPageFrame.cpp&rev=3.160&mark=201-203#201) (Oddly enough, both blocks were added in the same revision; I have no idea why)
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: