Closed Bug 260272 Opened 20 years ago Closed 20 years ago

Clean up nsGlobalChromeWindow::SetCursor()

Categories

(Core :: XUL, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

Attachments

(4 files, 1 obsolete file)

Spawned off from bug 163174 comment 95.

If this is the same list, why not use the same code?  (That probably requires
moving nsCSSParser::SearchKeywordTable into nsCSSProps, making it return the
result instead of the index (which wouldn't hurt at all), and then calling
nsCSSKeywords::LookupKeyword and nsCSSProps::SearchKeywordTable (your new one,
which might need a different name from the existing ones, which I think should
be renamed to RSearch* -- and RSearchKeywordTableInt should return an
nsCSSKeyword enum instead of an int).)
Maybe we can improve (or even remove) nsEventStateManager::SetCursor() too.
Depends on: 259639
The name "RSearchKeywordTableInt" doesn't say much about its function.
How about "ValueToKeyword" or "GetFirstKeywordWithValue" or something instead?
Attachment #159670 - Flags: superreview?(dbaron)
Attachment #159670 - Flags: review?(dbaron)
Attachment #159670 - Flags: superreview?(dbaron)
Attachment #159670 - Flags: superreview+
Attachment #159670 - Flags: review?(dbaron)
Attachment #159670 - Flags: review+
Checked in on trunk 2004-10-01 10:15 PDT

-> FIXED
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attached patch patch for trunk (obsolete) — Splinter Review
The 1.9 branch is opened, so this code can now be removed for that branch, not?
Attachment #197083 - Flags: review?(mats.palmgren)
Comment on attachment 197083 [details] [diff] [review]
patch for trunk

IIRC, I was thinking of this when writing that comment:
  aCursor.Equals(NS_LITERAL_STRING("auto"))

r=mats either way.
Attachment #197083 - Flags: superreview?(dbaron)
Attachment #197083 - Flags: review?(mats.palmgren)
Attachment #197083 - Flags: review+
David, feel free to + the one you prefer.
Comment on attachment 197091 [details] [diff] [review]
with string fix too

Not sure why this should be after 1.8 -- if you're going to break
compatibility, better to have fewer people relying on it than more.

Please fix:

 * instead of Equals(NS_LITERAL_STRING("auto")), use EqualsLiteral("auto")

 * remove two spaces of indent on the "return NS_OK;", since it's no longer in
an "else".
Attachment #197091 - Flags: superreview+
Attachment #197091 - Flags: review+
Mats, the patch has r+ and sr+ so it can be checked in, not?
Whiteboard: [checkin needed]
Mats: are you going to check in any of the followup patches in this bug, or are they not wanted?
Whiteboard: [checkin needed]
Attachment #197083 - Attachment is obsolete: true
Attachment #159670 - Attachment description: Patch rev. 1 → Patch rev. 1 [Checkin: Comment 5]
"asqueella@gmail.com  	2007-01-29 03:36:52 PST" removed "[checkin needed]".

In an attempt to clarify/answer comment 11, let's summarize:
*The first patch has already been checked in (comment 5).
*The second patch is obsoleted by the third (comments 8 & 9).
*The third patch (was/)is waiting for checkin, with two "nits" (comment 9).

Mats, can you do this ?
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
It seems that the follow-up patch never got checked in. I've updated it to include the fixes from comment 9.
Attachment #748514 - Flags: review?(matspal)
Comment on attachment 748514 [details] [diff] [review]
with string fix too (updated patch)

Thanks.
Attachment #748514 - Flags: review?(matspal) → review+
I don't have commit access myself, so someone else will need to push it.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: