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
This commit is contained in:
rods%netscape.com 2001-11-14 13:59:08 +00:00
Родитель cfd67ed452
Коммит 5b04635746
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);