Closed Bug 231343 Opened 21 years ago Closed 20 years ago

Fold AutoCopy service into nsSelection.cpp

Categories

(Core :: DOM: Selection, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bryner, Assigned: bryner)

Details

(Keywords: memory-footprint)

Attachments

(1 file)

The AutoCopy service (layout/base/src/nsAutoCopy.cpp) is fairly trivial - a good
half of the file is comments and XPCOM goop.  I'd say it should just be folded
into nsSelection.cpp, and don't bother with using the service manager or an
XPCOM interface.  There are no other consumers of the service.
Attached patch patchSplinter Review
While writing this patch, I noticed that many implementors of
nsISelectionListener::NotifySelectionChanged() were using the |short| type in
C++ to correspond to a |short| in IDL, whereas the correct type to use is
|PRInt16|.  I fixed that as well.
Attachment #172786 - Flags: superreview?(roc)
Attachment #172786 - Flags: review?(roc)
Attachment #172786 - Flags: superreview?(roc)
Attachment #172786 - Flags: superreview+
Attachment #172786 - Flags: review?(roc)
Attachment #172786 - Flags: review+
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: