Closed Bug 1132223 Opened 10 years ago Closed 10 years ago

Add IdToAccessible and IdToHyperTextAccessible to DocAccessibleChild to reduce code duplication

Categories

(Core :: Disability Access APIs, defect)

36 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
More IdToFooAccessible will be added later.
Attachment #8563049 - Flags: review?(tbsaunde+mozbugs)
Blocks: 1132485
Comment on attachment 8563049 [details] [diff] [review] patch >+DocAccessibleChild::IdToHyperTextAccessible(const uint64_t& aID) any reason this shouldn't be a const method? >+{ >+ Accessible* acc = IdToAccessible(aID); >+ return acc ? acc->AsHyperText() : nullptr; assert if we have an acc it is HyperText? > DocAccessibleChild::RecvTextSubstring(const uint64_t& aID, > const int32_t& aStartOffset, > const int32_t& aEndOffset, > nsString* aText) > { >- Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID); >- if (!acc || !acc->IsHyperText()) >+ HyperTextAccessible* acc = IdToHyperTextAccessible(aID); >+ if (!acc) { > return false; >+ } lets return true here since it can happen in normal opteration.
Attachment #8563049 - Flags: review?(tbsaunde+mozbugs) → review+
Attached patch v2Splinter Review
Assignee: nobody → bugs
Attachment #8563049 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: