Closed Bug 1374614 Opened 8 years ago Closed 8 years ago

Support SVG image context paint in XUL tree views (treecol etc.)

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file)

No description provided.
Component: Theme → Layout
Product: Firefox → Core
This requires passing the relevant frame to nsLayoutUtils::DrawImage so that it can create an SVGImageContext. Actually, it's not quite that simple because tree view images are generally displayed as part of a pseudo-element. So actually we need to pass through the nsStyleContext for the pseudo-element. That then requires an overload of MaybeStoreContextPaint to support passing an nsStyleContext rather than an nsIFrame.
Attached patch patchSplinter Review
Attachment #8879520 - Flags: review?(dholbert)
Comment on attachment 8879520 [details] [diff] [review] patch Review of attachment 8879520 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/nsLayoutUtils.h @@ +1808,5 @@ > * @param aRenderingContext Where to draw the image, set up with an > * appropriate scale and transform for drawing in > * app units. > + * @param aStyleContext The style context of the nsIFrame, or one of the > + * nsIFrame's pseudo-elements, for which this image Per IRC, let's simplify this to just: "...of the nsIFrame (or pseudo-element) for which..."
Attachment #8879520 - Flags: review?(dholbert) → review+
Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/4527074703e6 Support SVG image context paint in XUL tree views (treecol etc.). r=dholbert
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: