Closed
Bug 1135908
Opened 10 years ago
Closed 10 years ago
[E10s] Proxy for Character/SelectionCount()
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(2 files)
7.35 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
7.35 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Attachment #8568227 -
Flags: review?(tbsaunde+mozbugs)
Updated•10 years ago
|
tracking-e10s:
--- → +
Comment 1•10 years ago
|
||
Comment on attachment 8568227 [details] [diff] [review]
v1
>+ if (accWrap) {
>+ HyperTextAccessible* textAcc = accWrap->AsHyperText();
>+ return
>+ textAcc->IsDefunct() ? 0 : static_cast<gint>(textAcc->CharacterCount());
>+ }
>+ if (ProxyAccessible* proxy = GetProxy(ATK_OBJECT(aText))) {
blank line after } please
>+ return proxy->CharacterCount();
>+ }
>+ return 0;
same
>+ if (accWrap) {
>+ HyperTextAccessible* text = accWrap->AsHyperText();
>+ if (!text || !text->IsTextRole()) {
>+ return 0;
>+ }
>
>- HyperTextAccessible* text = accWrap->AsHyperText();
>- if (!text || !text->IsTextRole())
>- return 0;
>-
>- return text->SelectionCount();
>+ return text->SelectionCount();
>+ }
>+ if (ProxyAccessible* proxy = GetProxy(ATK_OBJECT(aText))) {
and here
Attachment #8568227 -
Flags: review?(tbsaunde+mozbugs) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Is that some a11y coding style rule?
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 6•10 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #2)
> Is that some a11y coding style rule?
Well, I thought it was more general than just a11y. Anyway I find it much easier to deal with if you don't mind.
Updated•10 years ago
|
Assignee: nobody → bugs
You need to log in
before you can comment on or make changes to this bug.
Description
•