Closed Bug 797255 Opened 13 years ago Closed 13 years ago

Add support for the layer attribute to nsImageBoxFrame

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Support layer attribute (obsolete) — Splinter Review
I'm not sure how this ever worked, I tested it too.
Attachment #667316 - Flags: review?(roc)
Comment on attachment 667316 [details] [diff] [review] Support layer attribute Review of attachment 667316 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/xul/base/src/nsImageBoxFrame.cpp @@ +309,5 @@ > + nsDisplayList list; > + list.AppendNewToTop(new (aBuilder) nsDisplayXULImage(aBuilder, this)); > + return aLists.Content()->AppendNewToTop(new (aBuilder) > + nsDisplayOwnLayer(aBuilder, this, &list)); > + } Create a helper method nsFrame::CreateOwnLayerIfNeeded(nsDisplayListBuilder* aBuilder, nsDisplayList* aList) so we can easily add more frame types to this later, if needed. Then always create a new nsDisplayXULImage, put it in 'list', call CreateOwnLayerIfNeeded, and append the list to Content().
Attachment #667316 - Attachment is obsolete: true
Attachment #667316 - Flags: review?(roc)
Attachment #669372 - Flags: review?(roc)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: