Open
Bug 514117
Opened 15 years ago
Updated 2 years ago
Bogus code in nsDocAccessible::GetBoundsRect
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
NEW
People
(Reporter: roc, Unassigned)
References
Details
http://mxr.mozilla.org/mozilla-central/source/accessible/src/base/nsDocAccessible.cpp#756 This code is quite wrong. viewBounds is always relative to the the view's parent view, but this code is assuming that all viewBounds are in the same coordinate system, which is totally not true.
Comment 1•15 years ago
|
||
Thanks Roc!
Comment 2•12 years ago
|
||
Roc, how to fix this one?
Comment 3•12 years ago
|
||
(In reply to alexander :surkov from comment #2) > Roc, how to fix this one? intersecting screen rects?
Reporter | ||
Comment 4•12 years ago
|
||
Record which frame the rectangle is relative to, and each time you want to do an intersection call nsLayoutUtils::TransformFrameRectToAncestor to transform the previous rectangle to the coordinate system of the next rectangle.
Comment 5•12 years ago
|
||
Robert, can you think of example to reproduce a bug?
Reporter | ||
Comment 6•12 years ago
|
||
An outer document in a 100x100 container containing an IFRAME at offset 50,50 which is also 100x100. Everything overflow:hidden. This code will return a rectangle (0,0,100,100) when it should return a rectangle that's 50x50 (I'm not sure what the offset should be though).
Comment 7•12 years ago
|
||
Jamie, do you know why document accessible is special, i.e. it's rectangle is restricted by visible area but Theany other accessible don't have this? I checked IE, it seems they do the same.
Updated•3 years ago
|
Assignee: nobody → mreschenberg
Comment 8•3 years ago
•
|
||
- deleted - gonna post this to a new bug because not entirely convinced this is the same problem!
Updated•3 years ago
|
Assignee: mreschenberg → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•