Closed
Bug 1251712
Opened 7 years ago
Closed 7 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)
Details
Attachments
(1 file)
7.65 KB,
patch
|
davidb
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #8724178 -
Flags: review?(dbolter)
Comment 1•7 years ago
|
||
Before I review can you tell me the short story of 'why' this change?
Flags: needinfo?(surkov.alexander)
Assignee | ||
Comment 2•7 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•7 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•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=99963a1217f1
Comment 5•7 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•7 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•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=407e8f8db5ba
Assignee | ||
Comment 8•7 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•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5ff87fac5346cecc9118046c39418feca73e4cce Bug 1251712 - propagate a context flag for alerts, r=davdib
Comment 10•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5ff87fac5346
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
![]() |
||
Updated•7 years ago
|
Assignee: nobody → surkov.alexander
You need to log in
before you can comment on or make changes to this bug.
Description
•