Closed
Bug 762396
Opened 12 years ago
Closed 12 years ago
replace do_QueryObject() with static cast in CAccessibleEditableText
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: tbsaunde, Assigned: drexler)
References
Details
(Whiteboard: [good first bug][mentor=trev.saunders@gmail.com][lang=c++])
Attachments
(2 files, 1 obsolete file)
9.29 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
9.41 KB,
patch
|
Details | Diff | Splinter Review |
similar to bug 762394
Assignee | ||
Comment 1•12 years ago
|
||
passed all tests locally.
Assignee: nobody → andrew.quartey
Status: NEW → ASSIGNED
Attachment #633201 -
Flags: review?(trev.saunders)
Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 633201 [details] [diff] [review] patch > #include "HyperTextAccessible.h" >+#include "HyperTextAccessibleWrap.h" the second neccessarily includes the first, so only include the second. > CAccessibleEditableText::copyText(long aStartOffset, long aEndOffset) > { > __try { >- nsRefPtr<HyperTextAccessible> textAcc(do_QueryObject(this)); >- if (textAcc->IsDefunct()) >+ HyperTextAccessible* ia2AccessibleText = static_cast<HyperTextAccessibleWrap*>(this); uh, I meant rename the class, not the variables, so CAccessibleEditableText is what should be changed to ia2AccessibleEditableText otherwise seems fine.
Attachment #633201 -
Flags: review?(trev.saunders)
Assignee | ||
Comment 3•12 years ago
|
||
Updated patch addressing comments.
Attachment #633201 -
Attachment is obsolete: true
Attachment #633351 -
Flags: review?(trev.saunders)
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 633351 [details] [diff] [review] patch >+ia2AccessibleEditableText::copyText(long aStartOffset, long aEndOffset) nit, same issue here and below were you break alignment.
Attachment #633351 -
Flags: review?(trev.saunders) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Updated patch addressing nits.
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 6•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/25ca50ce8653
Keywords: checkin-needed
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/25ca50ce8653
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•