Closed
Bug 560902
Opened 16 years ago
Closed 16 years ago
Optimize nsFocusManager::ContentRemoved
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
|
17.54 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
|
16.83 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
The method shows up a bit in profiles where lots of elements are removed from
document.
nsPIDOMWindow::GetFocusedNode() should be inline,
and so should nsIDocument::GetWindow().
| Assignee | ||
Comment 1•16 years ago
|
||
Neil, do the mFocusedNode changes look ok to you?
I'll ask another review for nsIDocument changes.
Posted to tryserver.
Attachment #441468 -
Flags: review?(enndeakin)
| Assignee | ||
Comment 2•16 years ago
|
||
Attachment #441468 -
Attachment is obsolete: true
Attachment #441469 -
Flags: review?(enndeakin)
Attachment #441468 -
Flags: review?(enndeakin)
Updated•16 years ago
|
Attachment #441469 -
Flags: review?(enndeakin) → review+
| Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 441469 [details] [diff] [review]
up-to-date with trunk
Note, I needed to use raw mFocusedNode because of the #include hell related
nsIContent.h, nsIDocument.h and nsPIDOMWindow.h.
Attachment #441469 -
Flags: superreview?(jonas)
Manually refcounting mFocusedNode sucks. That's bound to bite us.
You don't need to #include nsIContent.h just because you're creating a nsCOMPtr to it. If you add a non-inlined ctor and dtor to nsPIDOMWindow and implement that in a .cpp file, it should work fine.
| Assignee | ||
Comment 5•16 years ago
|
||
I need to push this to tryserver to see if also Windows is happy with this.
Attachment #441677 -
Flags: review?(jonas)
Attachment #441677 -
Flags: review?(jonas) → review+
Comment on attachment 441677 [details] [diff] [review]
Compiles on OSX
Sweet, thanks!
| Assignee | ||
Comment 7•16 years ago
|
||
| Assignee | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attachment #441469 -
Flags: superreview?(jonas)
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•