Added image animation mode constants to imgIContainer.IDL,
Changed the animation mode enum to PRUint16 (removed the enum) in nsIPresContext so we could use the constants from imgIContainer. (change from dcone's review comments) Bug 2586 r=dcone sr=attinasi git-svn-id: svn://10.0.0.236/trunk@108057 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ed0166f1db
commit
4b3f973350
@ -351,7 +351,7 @@ NS_IMETHODIMP nsImageFrame::OnStartContainer(imgIRequest *aRequest, nsIPresConte
|
||||
* one frame = 1
|
||||
* one loop = 2
|
||||
*/
|
||||
nsImageAnimation animateMode = eImageAnimation_Normal; //default value
|
||||
PRUint16 animateMode = imgIContainer::kNormalAnimMode; //default value
|
||||
nsresult rv = aPresContext->GetImageAnimationMode(&animateMode);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
aImage->SetAnimationMode(animateMode);
|
||||
|
||||
@ -351,7 +351,7 @@ NS_IMETHODIMP nsImageFrame::OnStartContainer(imgIRequest *aRequest, nsIPresConte
|
||||
* one frame = 1
|
||||
* one loop = 2
|
||||
*/
|
||||
nsImageAnimation animateMode = eImageAnimation_Normal; //default value
|
||||
PRUint16 animateMode = imgIContainer::kNormalAnimMode; //default value
|
||||
nsresult rv = aPresContext->GetImageAnimationMode(&animateMode);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
aImage->SetAnimationMode(animateMode);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user