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)
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•10 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•10 years ago
|
||
Assignee: nobody → bugs
Attachment #8563049 -
Attachment is obsolete: true
Assignee | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 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
•