Closed
Bug 392797
Opened 18 years ago
Closed 18 years ago
Don't fake the results in nsTextAccessible::GetFrame()
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
(1 file)
|
979 bytes,
patch
|
surkov
:
review+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
The original implementation of nsTextAccessible::GetFrame() was developed when we mostly needed frames to report the current style or bounds of an object.
I want to change GetFrame() so that it only returns the actual frame for an object. It is safer to provide the accurate results. If a frame does not exist for a text object, it means that the accessible object is now DEFUNCT.
I saw a problem with this code when working on bug 391846. We were receiving observing a node change and the text frame for the associated accessible was no longer available. Thus the GetFrame() method was returning the body frame, which is totally inappropriate and incorrect.
| Assignee | ||
Comment 1•18 years ago
|
||
Sorry, that was nsAccessNode::GetFrame() that walks up. I think we may have done that for image map areas.
| Assignee | ||
Comment 2•18 years ago
|
||
Actually I don't see any place where we need that code. The things that don't have their own frame are tree items, image map areas and list item bullets. I have verified that all of those still return the container accessible's frame for GetFrame().
Attachment #277337 -
Flags: review?(surkov.alexander)
Comment 3•18 years ago
|
||
Comment on attachment 277337 [details] [diff] [review]
Don't use parent chain for nsaccessNode::GetFrame()
I don't too where it might be used. lxr said this was changed in 1.21 revision, in bug 283482. But I didn't find any word there why it has been done and more patch doesn't contain this change. It's diversion I guess :)
So r=me
Attachment #277337 -
Flags: review?(surkov.alexander) → review+
Updated•18 years ago
|
Attachment #277337 -
Flags: approval1.9?
Updated•18 years ago
|
Attachment #277337 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•