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)

x86
BeOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sergei_d, Assigned: Niels.Reedijk)

References

Details

(Keywords: fixed1.8.1)

Attachments

(2 files)

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
Attached patch patch (deleted) — Splinter Review
Refactors two getters, changes EventIsInsideWindow() to use BWindow::Frame() and adds safety check (related to GetNative) to Scroll()
Attachment #199755 - Flags: review?(thesuckiestemail)
Attachment #199755 - Flags: review?(thesuckiestemail) → review+
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
Add to improvements to the MOZILLA_1_8_BRANCH
Depends on: 311032
Attached patch Patch for 1_8 branch (deleted) — Splinter Review
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 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+
Needs checkin from someone
Whiteboard: [checkin needed (1.8 branch)]
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 ago18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Remove checkin request, since it's checked in. Thanks!
Whiteboard: [checkin needed (1.8 branch)]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: