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)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file)
9.78 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•8 years ago
|
Component: Theme → Layout
Product: Firefox → Core
Assignee | ||
Comment 1•8 years ago
|
||
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.
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8879520 -
Flags: review?(dholbert)
Comment 3•8 years ago
|
||
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
Comment 5•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•