Closed Bug 1310404 Opened 9 years ago Closed 8 years ago

change SetImageRequest and SetStyleimageRequest to return their objects

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: heycam, Assigned: xidorn)

References

Details

Attachments

(2 files)

Instead of taking a callback function, we should just make SetImageRequest and SetStyleImageRequest just return the new imgRequestProxy/nsStyleImageRequest and have the calling code caller do the appropriate setter calling or assignment.
Assignee: nobody → xidorn+moz
Comment on attachment 8815603 [details] Bug 1310404 part 1 - Convert SetImageRequest to CreateImageRequest. https://reviewboard.mozilla.org/r/96472/#review96696 ::: layout/style/nsRuleNode.cpp:112 (Diff revision 1) > // Creates an imgRequestProxy based on the specified value in > // aValue and calls aCallback with it. If the nsPresContext > // is static (e.g. for printing), then a static request (i.e. > // showing the first frame, without animation) will be created. > // (The expectation is then that aCallback will set the resulting > // imgRequestProxy in a style struct somewhere.) Please update the comment.
Attachment #8815603 - Flags: review?(cam) → review+
Comment on attachment 8815604 [details] Bug 1310404 part 2 - Convert SetStyleimageRequest to CreateStyleImageRequest. https://reviewboard.mozilla.org/r/96474/#review96698
Attachment #8815604 - Flags: review?(cam) → review+
Pushed by xquan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9166fe1b7814 part 1 - Convert SetImageRequest to CreateImageRequest. r=heycam https://hg.mozilla.org/integration/autoland/rev/b393d76118f3 part 2 - Convert SetStyleimageRequest to CreateStyleImageRequest. r=heycam
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: