Bug 1340027 - Part 2: Add HTML CEReactions annotation.

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-04 21:41:41 -05:00 committed by Roy Tam
commit 8119a60e3d
68 changed files with 398 additions and 359 deletions

View file

@ -19,23 +19,23 @@ interface nsIStreamListener;
[HTMLConstructor,
NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString alt;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString src;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString srcset;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString? crossOrigin;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString useMap;
[SetterThrows, Pref="network.http.enablePerElementReferrer"]
[CEReactions, SetterThrows, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrerPolicy;
[SetterThrows]
[CEReactions, SetterThrows]
attribute boolean isMap;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long width;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long height;
readonly attribute unsigned long naturalWidth;
readonly attribute unsigned long naturalHeight;
@ -44,30 +44,31 @@ interface HTMLImageElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLImageElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString name;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString align;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long hspace;
[SetterThrows]
[CEReactions, SetterThrows]
attribute unsigned long vspace;
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString longDesc;
[TreatNullAs=EmptyString,SetterThrows] attribute DOMString border;
[CEReactions, TreatNullAs=EmptyString,SetterThrows] attribute DOMString border;
};
// [Update me: not in whatwg spec yet]
// http://picture.responsiveimages.org/#the-img-element
partial interface HTMLImageElement {
[SetterThrows]
[CEReactions, SetterThrows]
attribute DOMString sizes;
readonly attribute DOMString currentSrc;
};
// Mozilla extensions.
partial interface HTMLImageElement {
[CEReactions]
attribute DOMString lowsrc;
// These attributes are offsets from the closest view (to mimic