Closed
Bug 93016
Opened 24 years ago
Closed 24 years ago
Active Accessibility: Support STATE_ANIMATED for images
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
References
Details
(Keywords: access, Whiteboard: Looking for sr=)
Attachments
(2 files)
2.50 KB,
patch
|
Details | Diff | Splinter Review | |
2.46 KB,
patch
|
Details | Diff | Splinter Review |
A screen reader vendor asked us to support the animated state for images.
I need a checkin from Pavlov for this to work (no known bug #).
Pavlov's checkin added GetImageRequest to nsIImageFrame.
Here's the untested code I have so far, that should work once we get the checkin:
nsCOMPtr<nsIImageFrame> imageFrame;
if (frame)
imageFrame = do_QueryInterface(frame));
nsCOMPtr<imgIRequest> imageRequest;
if (imageFrame) {
imageFrame->GetImageRequest(getter_AddRefs(imageRequest));
}
nsCOMPtr<imgIContainer> imgContainer;
if (imageRequest)
imageRequest->GetImage(getter_AddRefs(imgContainer));
if (imgContainer && imgContainer->GetNumFrames()>1)
*_retval |= STATE_ANIMATED;
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Whiteboard: Looking for r=/sr=
Assignee | ||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
sr=scc
Assignee | ||
Comment 5•24 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•