From 5b046357463a7e79d62a38dea2dedb0cc352a2f9 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 14 Nov 2001 13:59:08 +0000 Subject: [PATCH] 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 --- layout/generic/nsImageFrame.cpp | 2 +- layout/html/base/src/nsImageFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsImageFrame.cpp b/layout/generic/nsImageFrame.cpp index 6e4a8c5dcfcf..7d8b78be3f15 100644 --- a/layout/generic/nsImageFrame.cpp +++ b/layout/generic/nsImageFrame.cpp @@ -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); diff --git a/layout/html/base/src/nsImageFrame.cpp b/layout/html/base/src/nsImageFrame.cpp index 6e4a8c5dcfcf..7d8b78be3f15 100644 --- a/layout/html/base/src/nsImageFrame.cpp +++ b/layout/html/base/src/nsImageFrame.cpp @@ -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);