Closed Bug 93016 Opened 23 years ago Closed 23 years ago

Active Accessibility: Support STATE_ANIMATED for images

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

References

Details

(Keywords: access, Whiteboard: Looking for sr=)

Attachments

(2 files)

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;
Status: NEW → ASSIGNED
Keywords: access
Depends on: 93044
Whiteboard: Looking for r=/sr=
r=jgaunt
Whiteboard: Looking for r=/sr= → Looking for sr=
sr=scc
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Blocks: 95819
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: