Closed
Bug 1062053
Opened 9 years ago
Closed 9 years ago
[TSF] nsTextStore should use StaticRefPtr
Categories
(Core :: Widget: Win32, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: masayuki, Assigned: masayuki)
Details
(Keywords: inputmethod)
Attachments
(2 files)
20.80 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
8.22 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
This makes all static members storing COM objects StaticRefPtr. In the future, we should move nsTextStore into mozilla::widget namespace for getting rid of the redundant "mozilla::" in nsTextStore.h. However, if we do so now, it breaks my patches which needs to be landed as soon as possible. Therefore, I'll do it later. And this patch removes Tsf prefix from the static variables because it's very clear that it's related to TSF in nsTextStore.
Attachment #8483368 -
Flags: review?(jmathies)
Assignee | ||
Comment 2•9 years ago
|
||
And also this renames the sTsfClientId to sClientId for consistency with other static member names.
Attachment #8483369 -
Flags: review?(jmathies)
![]() |
||
Updated•9 years ago
|
Attachment #8483368 -
Flags: review?(jmathies) → review+
![]() |
||
Updated•9 years ago
|
Attachment #8483369 -
Flags: review?(jmathies) → review+
Comment 3•9 years ago
|
||
Comment on attachment 8483368 [details] [diff] [review] part.1 nsTextStore should use StaticRefPtr for storing COM objects >+ static_assert(false, >+ "GetNativeData() returns pointer to StaticRefPtr<>, fix here for it"); How can this work? Did we already stop compiling TestWinTSF.cpp?
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #3) > Comment on attachment 8483368 [details] [diff] [review] > part.1 nsTextStore should use StaticRefPtr for storing COM objects > > >+ static_assert(false, > >+ "GetNativeData() returns pointer to StaticRefPtr<>, fix here for it"); > > How can this work? Did we already stop compiling TestWinTSF.cpp? Yes. IIRC, it's disabled due to wrong string API usage. Anyway, the test won't pass with current nsTextStore because the test just checks the behavior of first nsTextStore implementation. In other words, the test assumes that the old implementation is the "correct" implementation as ITextStore.
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ad0c990e9fdc https://hg.mozilla.org/integration/mozilla-inbound/rev/47d2dd4ecad1
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ad0c990e9fdc https://hg.mozilla.org/mozilla-central/rev/47d2dd4ecad1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•