Closed Bug 233160 Opened 21 years ago Closed 20 years ago

Separate style overlays out of nsIChromeRegistry

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

Attachments

(1 file, 1 obsolete file)

From my chrome interface separation proposal
(http://bdsmedberg.no-ip.org/chrome/) separate out the style overlays, just like
I separated out the XUL overlays. When implementing this, I found that the
category is just too complicated and unncessary, so I ditched it and folded the
style overlays into the same nsIXULOverlayProvider interface.
Attached patch checkpoint changes, works in FB (obsolete) — Splinter Review
This is a checkpoint patch, not ready for review yet. It works in firebird, but
breaks seamonkey, minimo, and pretty much everything else ;)
OK, here is the full patch for review. This moves all user/agent sheet logic
out of the chrome registry into layout. nsIChromeRegistry is down to three
methods!
Attachment #140670 - Attachment is obsolete: true
Attachment #140978 - Flags: superreview?(bzbarsky)
Attachment #140978 - Flags: review?(hyatt)
I may not get to this for a week or so.
Blocks: 179006
In fact, I have no idea when I'll be able to get to this....
Attachment #140978 - Flags: superreview?(bzbarsky) → superreview?(hyatt)
Comment on attachment 140978 [details] [diff] [review]
complete patch for sea/ff/minimo

This looks great. sr=me
Attachment #140978 - Flags: superreview?(hyatt) → superreview+
It's really a stylesheet cache, not a style cache.

Also, I wonder if we should do anything related to bug 179006.  Probably not...

Maybe more later...
I'm definitely thinking about 179006, but not in this bug.
Comment on attachment 140978 [details] [diff] [review]
complete patch for sea/ff/minimo

dbaron, do you want to do a full review?
Attachment #140978 - Flags: review?(hyatt) → review?(dbaron)
I'm not going to have a chance to do a full review of this before 1.7b, so I'm
OK with it just going in, assuming you rename to nsLayoutStylesheetCache.  But
bz might want to have a look.
Comment on attachment 140978 [details] [diff] [review]
complete patch for sea/ff/minimo

>+        char *str = ToNewCString(sheets);
>+        char *newStr;
>+        char *token;
>+        while ( (token = nsCRT::strtok(str, ", ", &newStr)) ) {

Your condensation of the two strtok calls into one was incorrect.  You need:

char *str = ToNewCString(sheets);
char *newStr;
char *token = str;
while ( (token = nsCRT::strtok(token, ", ", &newStr)) ) {
I have no time to do more than skim before freeze... the interface looks ok,
though we will eventually need to move user/agent sheets elsewhere.  The other
changes look fine in general.. (again, I didn't read the details).
Comment on attachment 140978 [details] [diff] [review]
complete patch for sea/ff/minimo

You landed this, right?
Attachment #140978 - Flags: review?(dbaron)
yes, this went in before the 1.7b freeze
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.7beta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: