nsIViewManager::GetRectVisibility works incorrectly with chrome element

RESOLVED INVALID

Status

()

P4
normal
RESOLVED INVALID
16 years ago
15 years ago

People

(Reporter: yuanyi21, Assigned: aaronlev)

Tracking

Trunk
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
in nsAccessible::IsPartiallyVisible we use viewManager->GetRectVisibility to 
determine whether or not a frame is visible. But see
http://lxr.mozilla.org/seamonkey/source/view/src/nsViewManager.cpp#3926
nsViewManager::GetVisibleRect try to get the visible rect from the 
RootScrollableView that is not present for chrome view and 
nsViewManager::GetRectVisibility will always retunn visible for this situation.
(Reporter)

Updated

16 years ago
Blocks: 163832
(Assignee)

Updated

15 years ago
Priority: -- → P4
(Assignee)

Comment 1

15 years ago
Kyle, can you supply a testcase where this fails?
(Reporter)

Comment 2

15 years ago
Maybe I misunderstand the meaning of "Visibility". I should mark it INVALID. But
one thing confuses me that all XUL element is visible even if it is off the
screen, but in HTML document, a frame which is not in the visible scroll area
will be called "invisible". I'm confused by the definition of "visibility".
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
(Assignee)

Comment 3

15 years ago
I think visible means scrolled completely off screen or not shown in the document.
Offscreen means mostly or completely offscreen.

Is that right? I suppose we need to fix it for XUL eventually, but lets see what
the assistive technologies need first.
You need to log in before you can comment on or make changes to this bug.