Closed
Bug 230591
Opened 21 years ago
Closed 21 years ago
[FIX] a bit more random XBL cleanup
Categories
(Core :: XBL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(1 file)
12.68 KB,
patch
|
bryner
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
![]() |
Assignee | |
Comment 1•21 years ago
|
||
![]() |
Assignee | |
Comment 2•21 years ago
|
||
Comment on attachment 138771 [details] [diff] [review]
Patch
bryner, would you review?
Attachment #138771 -
Flags: superreview?(bryner)
Attachment #138771 -
Flags: review?(bryner)
Comment 3•21 years ago
|
||
Comment on attachment 138771 [details] [diff] [review]
Patch
>Index: content/xbl/src/nsXBLPrototypeResources.cpp
>===================================================================
>RCS file: /cvsroot/mozilla/content/xbl/src/nsXBLPrototypeResources.cpp,v
>retrieving revision 1.10
>diff -u -p -d -u -1 -0 -r1.10 nsXBLPrototypeResources.cpp
>--- content/xbl/src/nsXBLPrototypeResources.cpp 7 Jan 2004 22:30:40 -0000 1.10
>+++ content/xbl/src/nsXBLPrototypeResources.cpp 10 Jan 2004 22:56:58 -0000
>@@ -100,59 +99,56 @@ static PRBool IsChromeURI(nsIURI* aURI)
> {
> PRBool isChrome=PR_FALSE;
> if (NS_SUCCEEDED(aURI->SchemeIs("chrome", &isChrome)) && isChrome)
> return PR_TRUE;
> return PR_FALSE;
> }
>
> nsresult
> nsXBLPrototypeResources::FlushSkinSheets()
> {
>- if (!mStyleSheetList)
>+ if (mStyleSheetList.Count() == 0)
> return NS_OK;
>
>+ nsresult rv;
>+ // XXXbz should be getting loader off the document or something
>+ nsCOMPtr<nsICSSLoader> loader = do_CreateInstance(kCSSLoaderCID, &rv);
>+ if (NS_FAILED(rv) || !loader) return rv;
>+
do_CreateInstance will never return success and a null pointer, will it?
r+sr=bryner other than that.
Attachment #138771 -
Flags: superreview?(bryner)
Attachment #138771 -
Flags: superreview+
Attachment #138771 -
Flags: review?(bryner)
Attachment #138771 -
Flags: review+
![]() |
Assignee | |
Comment 4•21 years ago
|
||
Fixed, with that change.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•