Closed Bug 752953 Opened 10 years ago Closed 10 years ago

Typo in calculation of 'allowExpansion' (result will always be an empty rect) in nsDisplayScrollLayer::ComputeVisibility

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

Details

Attachments

(2 files)

Attached patch part 1, fix typoSplinter Review
Looking at the 'allowExpansion' calculations in nsDisplayOpacity/nsDisplayClip
I guess this is what was intended.
Attachment #622017 - Flags: review?(roc)
I guess the compiler can optimize away the unnecessary initialization and
IsEmpty() calculation, it's just simpler to not do it.
Attachment #622019 - Flags: review?(roc)
You need to log in before you can comment on or make changes to this bug.