Closed
Bug 253627
Opened 20 years ago
Closed 20 years ago
[FIXr]nsImageBoxFrame and nsTreeBodyFrame should use nsContentUtils::LoadImage
Categories
(Core :: XUL, defect, P3)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha3
People
(Reporter: dbaron, Assigned: bzbarsky)
Details
Attachments
(1 file)
8.88 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
From bug 236889 comment 7: > >Index: layout/xul/base/src/nsImageBoxFrame.cpp > >+ nsCOMPtr<imgILoader> il(do_GetService("@mozilla.org/image/loader;1", &rv)); > ...etc > > I think I'd rather this used nsContentUtils::LoadImage (have to hack the > makefile to make it includable, but that's not so hard). For that matter, I > would sort of like it if we did a nsContentUtils::CanLoadImage check here, with > mContent as the context. > > >Index: layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp > > >@@ -1661,48 +1664,53 @@ nsTreeBodyFrame::GetImage(PRInt32 aRowIn > >+ nsCOMPtr<imgILoader> il = > >+ do_GetService("@mozilla.org/image/loader;1", &rv); > > Again, I'd prefer it if this used nsContentUtils (for example, this code screws > up loadgroups in the call to LoadImage -- it just passes null). > > If you really don't have the time to convert those LoadImage callers right now, > file a followup bug on that, ok?
Assignee | ||
Comment 1•20 years ago
|
||
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Priority: -- → P3
Summary: nsImageBoxFrame and nsTreeBodyFrame should use nsContentUtils::LoadImage → [FIX]nsImageBoxFrame and nsTreeBodyFrame should use nsContentUtils::LoadImage
Target Milestone: --- → mozilla1.8alpha3
Assignee | ||
Comment 2•20 years ago
|
||
Comment on attachment 154792 [details] [diff] [review] Patch The REQUIRES change is needed because nsContentUtils.h includes nsIPref.h (and needs typdefs from that file; jst was against forward-declaring and copying the typedefs). The nsContentUtils changes are just minor cleanup to make it include less stuff.
Attachment #154792 -
Flags: superreview?(dbaron)
Attachment #154792 -
Flags: review?(dbaron)
Reporter | ||
Updated•20 years ago
|
Attachment #154792 -
Flags: superreview?(dbaron)
Attachment #154792 -
Flags: superreview+
Attachment #154792 -
Flags: review?(dbaron)
Attachment #154792 -
Flags: review+
Assignee | ||
Updated•20 years ago
|
Summary: [FIX]nsImageBoxFrame and nsTreeBodyFrame should use nsContentUtils::LoadImage → [FIXr]nsImageBoxFrame and nsTreeBodyFrame should use nsContentUtils::LoadImage
Assignee | ||
Comment 3•20 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Folks, it seemed that the patch which fixed this bug caused bug 256172. See bug 256172 comment 2.
Attachment #154792 -
Flags: approval1.7.x+
This landed on Aviary, although no-one mentioned it in the bug here. And I don't see any reason why this needed to land there. It needs to land on 1.7 too. And then the regression fix in bug 256172 needs to land... sigh.
Keywords: fixed-aviary1.0
Correction; it did not land on Aviary. I guess I was looking at the wrong LXR branch. I went and looked again because I had a nagging feeling that bz would never have landed this on Aviary :-)
Keywords: fixed-aviary1.0
Attachment #154792 -
Flags: approval1.7.x+
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•