Closed Bug 781869 Opened 12 years ago Closed 12 years ago

nsHTMLScrollFrame::ReflowScrolledFrame() redundantly passes NS_FRAME_NO_MOVE_VIEW with NS_FRAME_NO_MOVE_FRAME (which already includes the _VIEW bit)

Categories

(Core :: Layout, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: dholbert, Assigned: dholbert)

References

()

Details

Attachments

(1 file)

nsHTMLScrollFrame::ReflowScrolledFrame() has two places where it passes:  
  NS_FRAME_NO_MOVE_FRAME | NS_FRAME_NO_MOVE_VIEW

The _VIEW bit there is redundant, because NS_FRAME_NO_MOVE_FRAME is defined to already include it:
> 19 #define NS_FRAME_NO_MOVE_FRAME        (0x0002 | NS_FRAME_NO_MOVE_VIEW)
http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsContainerFrame.h#19

So, I think we can just drop the "| NS_FRAME_NO_MOVE_VIEW" in these instances.
Attached patch fixSplinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #651006 - Flags: review?(dbaron)
https://hg.mozilla.org/mozilla-central/rev/9556e43af1be
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: