Closed
Bug 1251712
Opened 10 years ago
Closed 10 years ago
propagate a context flag for alerts
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: surkov, Assigned: surkov)
References
Details
Attachments
(1 file)
|
7.65 KB,
patch
|
davidb
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #8724178 -
Flags: review?(dbolter)
Comment 1•10 years ago
|
||
Before I review can you tell me the short story of 'why' this change?
Flags: needinfo?(surkov.alexander)
| Assignee | ||
Comment 2•10 years ago
|
||
(In reply to David Bolter [:davidb] from comment #1)
> Before I review can you tell me the short story of 'why' this change?
this reduce a need to run the tree up on every insertion, that should help for a case when you make lot of insertions deep in the tree
Flags: needinfo?(surkov.alexander)
Comment 3•10 years ago
|
||
(In reply to alexander :surkov from comment #2)
> (In reply to David Bolter [:davidb] from comment #1)
> > Before I review can you tell me the short story of 'why' this change?
>
> this reduce a need to run the tree up on every insertion, that should help
> for a case when you make lot of insertions deep in the tree
Thanks! :)
| Assignee | ||
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Comment on attachment 8724178 [details] [diff] [review]
patch
Review of attachment 8724178 [details] [diff] [review]:
-----------------------------------------------------------------
r=me, with questions:
::: accessible/generic/Accessible.cpp
@@ +1984,5 @@
> SetARIAHidden(true);
> +
> + mContextFlags |=
> + static_cast<uint32_t>((mParent->IsAlert() ||
> + mParent->IsInsideAlert())) & eInsideAlert;
I assume the boolean gets converted to 0xFFF... for the bitwise & operation? (Oh C++ sometimes you smell funny)
::: accessible/generic/Accessible.h
@@ +1148,5 @@
> int32_t mIndexInParent;
>
> static const uint8_t kChildrenFlagsBits = 2;
> static const uint8_t kStateFlagsBits = 11;
> + static const uint8_t kContextFlagsBits = 3;
Aside: I don't remember why we later initialize mContextFlags to kContextFlagsBits and not 0?
Attachment #8724178 -
Flags: review?(dbolter) → review+
Comment 6•10 years ago
|
||
(In reply to David Bolter [:davidb] from comment #5)
> I assume the boolean gets converted to 0xFFF... for the bitwise & operation?
Or 0x000 of course.
| Assignee | ||
Comment 7•10 years ago
|
||
| Assignee | ||
Comment 8•10 years ago
|
||
(In reply to David Bolter [:davidb] from comment #5)
> > static const uint8_t kChildrenFlagsBits = 2;
> > static const uint8_t kStateFlagsBits = 11;
> > + static const uint8_t kContextFlagsBits = 3;
>
> Aside: I don't remember why we later initialize mContextFlags to
> kContextFlagsBits and not 0?
it's a memory size
| Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5ff87fac5346cecc9118046c39418feca73e4cce
Bug 1251712 - propagate a context flag for alerts, r=davdib
Comment 10•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Updated•10 years ago
|
Assignee: nobody → surkov.alexander
You need to log in
before you can comment on or make changes to this bug.
Description
•