Closed
Bug 1132223
Opened 9 years ago
Closed 9 years ago
Add IdToAccessible and IdToHyperTextAccessible to DocAccessibleChild to reduce code duplication
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file, 1 obsolete file)
4.65 KB,
patch
|
Details | Diff | Splinter Review |
More IdToFooAccessible will be added later.
Attachment #8563049 -
Flags: review?(tbsaunde+mozbugs)
Comment 1•9 years ago
|
||
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+
Assignee | ||
Comment 2•9 years ago
|
||
Assignee: nobody → bugs
Attachment #8563049 -
Attachment is obsolete: true
Assignee | ||
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6947464c0fb8
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6947464c0fb8
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•