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)

defect
Not set
normal

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)

similar to bug 762394
Attached patch patch (obsolete) — Splinter Review
passed all tests locally.
Assignee: nobody → andrew.quartey
Status: NEW → ASSIGNED
Attachment #633201 - Flags: review?(trev.saunders)
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)
Attached patch patchSplinter Review
Updated patch addressing comments.
Attachment #633201 - Attachment is obsolete: true
Attachment #633351 - Flags: review?(trev.saunders)
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+
Attached patch updated_patchSplinter Review
Updated patch addressing nits.
Keywords: checkin-needed
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.

Attachment

General

Created:
Updated:
Size: