Closed
Bug 414654
Opened 17 years ago
Closed 17 years ago
Accessibles not hidden for visibility:hidden w/ position:absolute
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(2 files, 3 obsolete files)
|
329 bytes,
text/html
|
Details | |
|
4.20 KB,
patch
|
roc
:
review+
roc
:
superreview+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
When an object has visibility: hidden it normally does not get an accessible created for it.
However, if position: absolute is also used then we are creating an accessible.
This is because we get PR_TRUE returned from
frame->GetStyleVisibility()->IsVisible()
Robert, do you know if that is intentional?
| Assignee | ||
Comment 1•17 years ago
|
||
Attachment #300117 -
Flags: superreview?
Attachment #300117 -
Flags: review?(roc)
| Assignee | ||
Comment 2•17 years ago
|
||
Attachment #300117 -
Attachment is obsolete: true
Attachment #300121 -
Flags: superreview?(roc)
Attachment #300121 -
Flags: review?(roc)
Attachment #300117 -
Flags: superreview?
Attachment #300117 -
Flags: review?(roc)
I bet the problem is that the placeholder frame is marked visible but the out of flow frame is not. That actually makes some sort of sense, pretty much all style properties apply to the out of flow frame instead of the placeholder frame, which is logical if you think about it.
So what you should be doing is calling nsPlaceholderFrame::GetRealFrameFor, but since that's static, I guess you'll have to reimplement that code yourself. Then use the returned frame for style checks such as GetStyleVisiblity()->IsVisible()
| Assignee | ||
Comment 4•17 years ago
|
||
Comment on attachment 300121 [details] [diff] [review]
Correct patch. Should not have to do this but layout is lying to us
Roc says to add a method to pres shell to get the real frame for a placeholder frame.
Attachment #300121 -
Flags: superreview?(roc)
Attachment #300121 -
Flags: review?(roc)
| Assignee | ||
Comment 5•17 years ago
|
||
Attachment #300121 -
Attachment is obsolete: true
Attachment #300159 -
Flags: superreview?(roc)
Attachment #300159 -
Flags: review?(roc)
| Assignee | ||
Comment 6•17 years ago
|
||
Attachment #300159 -
Attachment is obsolete: true
Attachment #300161 -
Flags: superreview?(roc)
Attachment #300161 -
Flags: review?(roc)
Attachment #300159 -
Flags: superreview?(roc)
Attachment #300159 -
Flags: review?(roc)
Comment on attachment 300161 [details] [diff] [review]
Correct one
+ * Gets the real primary frame associated with the content object. This is a
+ * helper function that just forwards the request to the frame manager.
Well, no it doesn't. Fix that comment.
Attachment #300161 -
Flags: superreview?(roc)
Attachment #300161 -
Flags: superreview+
Attachment #300161 -
Flags: review?(roc)
Attachment #300161 -
Flags: review+
| Assignee | ||
Updated•17 years ago
|
Attachment #300161 -
Flags: approval1.9?
Comment 8•17 years ago
|
||
Comment on attachment 300161 [details] [diff] [review]
Correct one
a=beltzner
Attachment #300161 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•