Closed Bug 212504 Opened 22 years ago Closed 22 years ago

namespaceID argument to nsCSSLoader::CreateSheet() should be PRInt32

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: caillon, Assigned: caillon)

Details

Attachments

(1 file, 2 obsolete files)

/usr/local/src/mozilla/trunk/mozilla/content/html/style/src/nsCSSLoader.cpp: In member function `nsresult CSSLoaderImpl::InternalLoadAgentSheet(nsIURI*, nsICSSStyleSheet**, nsICSSLoaderObserver*)': /usr/local/src/mozilla/trunk/mozilla/content/html/style/src/nsCSSLoader.cpp:1838: warning: passing negative value `-1' for argument 3 of `nsresult CSSLoaderImpl::CreateSheet(nsIURI*, nsIContent*, unsigned int, int, StyleSheetState&, nsICSSStyleSheet**)'
Attached patch fix (obsolete) — Splinter Review
Attachment #127617 - Flags: superreview?(bzbarsky)
Attachment #127617 - Flags: review?(bzbarsky)
Actually, I've been considering removing this argument altogether. We never use it (just like we never use the default namespace stuff in the parser and CSSStyleSheet). Do we have plans to use any of it?
(dunno about this particular argument, but AIUI, the default namespace stuff was a misguided "feature" from the late 90s that never really worked and has no good reason to exist.)
Well, all this argument does is set the default namespace on sheets loaded via that cssloader....
Attached patch Removes the arguments completely (obsolete) — Splinter Review
Per discussion with bz
Attachment #127617 - Attachment is obsolete: true
Attachment #127617 - Flags: superreview?(bzbarsky)
Attachment #127617 - Flags: review?(bzbarsky)
Attachment #127779 - Flags: superreview?(bzbarsky)
Attachment #127779 - Flags: review?(bzbarsky)
Attachment #127779 - Flags: superreview?(bzbarsky)
Attachment #127779 - Flags: review?(bzbarsky)
Attachment #127789 - Flags: superreview?(bzbarsky)
Attachment #127789 - Flags: review?(bzbarsky)
Comment on attachment 127789 [details] [diff] [review] Better fix r=bzbarsky if you take out that stray printf. dbaron, could you sr? I don't think there are any issues with this, but you're more familiar with the CSSStyleSheetImpl code....
Attachment #127789 - Flags: superreview?(dbaron)
Attachment #127789 - Flags: superreview?(bzbarsky)
Attachment #127789 - Flags: review?(bzbarsky)
Attachment #127789 - Flags: review+
Comment on attachment 127789 [details] [diff] [review] Better fix sr=dbaron if you fix nsMathMLFrame::MapAttributesIntoCSS (which I think you need to do)
Attachment #127789 - Flags: superreview?(dbaron) → superreview+
Oh, good catch. Fixed both your comments and checked in 07/17/2003 18:26.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: