mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
The img decode API allows a web author to request that an image be decoded at its intrinsic size and be notified when it has been completed. This is useful to ensure an image is ready to display before adding it to the DOM tree -- this will help reduce flickering. Differential Revision: https://phabricator.services.mozilla.com/D11362
32 lines
1 KiB
Text
32 lines
1 KiB
Text
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* The origin of this IDL file is
|
|
* http://www.w3.org/TR/SVG2/
|
|
*
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
* liability, trademark and document use rules apply.
|
|
*/
|
|
|
|
interface SVGImageElement : SVGGraphicsElement {
|
|
[Constant]
|
|
readonly attribute SVGAnimatedLength x;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedLength y;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedLength width;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedLength height;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
|
[CEReactions, SetterThrows]
|
|
attribute DOMString decoding;
|
|
[NewObject]
|
|
Promise<void> decode();
|
|
};
|
|
|
|
SVGImageElement implements MozImageLoadingContent;
|
|
SVGImageElement implements SVGURIReference;
|
|
|