Closed Bug 939607 Opened 12 years ago Closed 12 years ago

Try to avoid creating inactive layers for nsDisplayOpacity if we can

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

(Whiteboard: [qa-])

Attachments

(4 files, 1 obsolete file)

No description provided.
Attached patch Box shadow testSplinter Review
Attachment #8333593 - Flags: review?(roc)
Assignee: nobody → matt.woodrow
Comment on attachment 8333591 [details] [diff] [review] Try fold nsDisplayOpacity items opacity value into their children Review of attachment 8333591 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/nsDisplayList.cpp @@ +1089,5 @@ > + > + if (item->GetType() == nsDisplayItem::TYPE_OPACITY) { > + MOZ_ASSERT(list); > + nsDisplayOpacity* opacity = static_cast<nsDisplayOpacity*>(item); > + if (opacity->FoldOpacityOntoChildren()) { Why don't you just make nsDisplayOpacity override ShouldFlattenAway?
Attachment #8333591 - Flags: review?(roc) → review-
Good point. I'm sure I had a reason for not doing this initially, but I can't remember what it was, and I can't come up with a new one.
Attachment #8333591 - Attachment is obsolete: true
Attachment #8333716 - Flags: review?(roc)
Whiteboard: [qa-]
Depends on: 991046
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: