Closed
Bug 444772
Opened 17 years ago
Closed 17 years ago
Merge nsIKBStateControl into nsIWidget
Categories
(Core :: Widget, defect)
Core
Widget
Tracking
()
RESOLVED
FIXED
People
(Reporter: jchen, Assigned: jchen)
References
Details
Attachments
(1 file)
|
43.02 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
Merging nsIKBStateControl into nsIWidget makes it easier for each platform to implement the IME related methods.
I compiled and tested the first patch on Windows and Linux, but I don't have the environment for Mac OS X (or Photon) which I also changed code for.
If you think you're ready to ask for review, request review (from me I guess). If it looks good I'll land it for you and I can check that it builds on Mac then.
| Assignee | ||
Comment 2•17 years ago
|
||
Comment on attachment 329090 [details] [diff] [review]
patch 1.0 (Windows and Linux compiled/tested)
OK, thanks. I think it's ready for review.
Attachment #329090 -
Flags: superreview?(roc)
Attachment #329090 -
Flags: review?(roc)
Attachment #329090 -
Flags: superreview?(roc)
Attachment #329090 -
Flags: superreview+
Attachment #329090 -
Flags: review?(roc)
Attachment #329090 -
Flags: review+
Pushed 6692da1caef5. Thanks!!!
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 4•17 years ago
|
||
Comment on attachment 329090 [details] [diff] [review]
patch 1.0 (Windows and Linux compiled/tested)
> nsCOMPtr<nsIWidget> widget;
> res = GetEditorContentWindow(shell, GetRoot(), getter_AddRefs(widget));
> if (NS_FAILED(res))
> return res;
>+ if (!widget)
>+ return NS_ERROR_NOT_AVAILABLE;
>+
>+ NS_ADDREF(*aWidget = widget);
>
> return NS_OK;
You could save an addref using widget.swap(*aWidget);
Or why not return GetEditorContentWindow(shell, GetRoot(), aWidget);
You need to log in
before you can comment on or make changes to this bug.
Description
•