Closed
Bug 312636
Opened 19 years ago
Closed 18 years ago
[BeOS]Refactoring two getters in widget for faster mouse processing
Categories
(Core Graveyard :: Widget: BeOS, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sergei_d, Assigned: Niels.Reedijk)
References
Details
(Keywords: fixed1.8.1)
Attachments
(2 files)
(deleted),
patch
|
thesuckiestemail
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dbaron
:
approval1.8.1+
|
Details | Diff | Splinter Review |
two methods:
EventIsInsideWindow()
and
GetParent()
are permanently called at mouse events.
with refactoring GetNativeData() to differentiate Window and Widget we can
perform first with less overhead - no locking, no conversion.
Also, it may help in future with embedded code, but it remains to see.
GetParent now also uses very suspicios pointer conversion from BView which also
wouldn't work e.g. with InvisibleWindows, if we need those in future.
Other platforms tend to use here cached mParent value
Reporter | ||
Comment 1•19 years ago
|
||
Refactors two getters, changes EventIsInsideWindow() to use BWindow::Frame()
and adds safety check (related to GetNative) to Scroll()
Attachment #199755 -
Flags: review?(thesuckiestemail)
Comment on attachment 199755 [details] [diff] [review]
patch
r=thesuckiestemail@yahoo.se
looks good ok to me.
Attachment #199755 -
Flags: review?(thesuckiestemail) → review+
Reporter | ||
Comment 3•19 years ago
|
||
landed in trunk
Checking in mozilla/widget/src/beos/nsWindow.cpp;
/cvsroot/mozilla/widget/src/beos/nsWindow.cpp,v <-- nsWindow.cpp
new revision: 1.100; previous revision: 1.99
done
Checking in mozilla/widget/src/beos/nsWindow.h;
/cvsroot/mozilla/widget/src/beos/nsWindow.h,v <-- nsWindow.h
new revision: 1.39; previous revision: 1.38
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•18 years ago
|
||
Patch for the 1.8 branch. Should be identical, except for one curly brace being placed in a different spot.
This change is BeOS only and will not affect any other platform.
Assignee: sergei_d → Niels.Reedijk
Status: RESOLVED → ASSIGNED
Attachment #230159 -
Flags: approval1.8.1?
Resolution: FIXED → ---
Comment 6•18 years ago
|
||
Comment on attachment 230159 [details] [diff] [review]
Patch for 1_8 branch
a=dbaron on behalf of drivers. Please check in to MOZILLA_1_8_BRANCH and mark fixed1.8.1 once you have.
Attachment #230159 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 7•18 years ago
|
||
Needs checkin from someone
Whiteboard: [checkin needed (1.8 branch)]
Reporter | ||
Comment 8•18 years ago
|
||
Checking in mozilla/widget/src/beos/nsWindow.cpp;
/cvsroot/mozilla/widget/src/beos/nsWindow.cpp,v <-- nsWindow.cpp
new revision: 1.91.4.10; previous revision: 1.91.4.9
done
Checking in mozilla/widget/src/beos/nsWindow.h;
/cvsroot/mozilla/widget/src/beos/nsWindow.h,v <-- nsWindow.h
new revision: 1.35.4.6; previous revision: 1.35.4.5
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago → 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Assignee | ||
Comment 9•18 years ago
|
||
Remove checkin request, since it's checked in. Thanks!
Whiteboard: [checkin needed (1.8 branch)]
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•