mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Backed out changeset 3620f49eb6e9 (bug 872934) Win XP PGO Bustage
This commit is contained in:
parent
1dea058460
commit
eb14353aba
@ -353,17 +353,14 @@ const kEventConstructors = {
|
||||
StyleRuleChangeEvent: { create: function (aName, aProps) {
|
||||
return new StyleRuleChangeEvent(aName, aProps);
|
||||
},
|
||||
chromeOnly: true,
|
||||
},
|
||||
StyleSheetApplicableStateChangeEvent: { create: function (aName, aProps) {
|
||||
return new StyleSheetApplicableStateChangeEvent(aName, aProps);
|
||||
},
|
||||
chromeOnly: true,
|
||||
},
|
||||
StyleSheetChangeEvent: { create: function (aName, aProps) {
|
||||
return new StyleSheetChangeEvent(aName, aProps);
|
||||
},
|
||||
chromeOnly: true,
|
||||
},
|
||||
SVGZoomEvent: { create: function (aName, aProps) {
|
||||
var e = document.createEvent("svgzoomevent");
|
||||
@ -413,16 +410,6 @@ const kEventConstructors = {
|
||||
},
|
||||
};
|
||||
|
||||
for (var name of Object.keys(kEventConstructors)) {
|
||||
if (!kEventConstructors[name].chromeOnly) {
|
||||
continue;
|
||||
}
|
||||
if (window[name]) {
|
||||
ok(false, name + " should be chrome only.");
|
||||
}
|
||||
window[name] = SpecialPowers.unwrap(SpecialPowers.wrap(window)[name]);
|
||||
}
|
||||
|
||||
var props = Object.getOwnPropertyNames(window);
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
// Assume that event object must be named as "FooBarEvent".
|
||||
|
@ -411,7 +411,10 @@ var interfaceNamesInGlobalScope =
|
||||
{name: "SpecialPowers", xbl: false},
|
||||
"Storage",
|
||||
"StorageEvent",
|
||||
"StyleRuleChangeEvent",
|
||||
"StyleSheet",
|
||||
"StyleSheetApplicableStateChangeEvent",
|
||||
"StyleSheetChangeEvent",
|
||||
"StyleSheetList",
|
||||
"SVGAElement",
|
||||
"SVGAltGlyphElement",
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
interface CSSRule;
|
||||
|
||||
[ChromeOnly, Constructor(DOMString type, optional StyleRuleChangeEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
[Constructor(DOMString type, optional StyleRuleChangeEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
interface StyleRuleChangeEvent : Event
|
||||
{
|
||||
readonly attribute CSSStyleSheet? stylesheet;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
[ChromeOnly, Constructor(DOMString type, optional StyleSheetApplicableStateChangeEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
[Constructor(DOMString type, optional StyleSheetApplicableStateChangeEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
interface StyleSheetApplicableStateChangeEvent : Event
|
||||
{
|
||||
readonly attribute CSSStyleSheet? stylesheet;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
[ChromeOnly, Constructor(DOMString type, optional StyleSheetChangeEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
[Constructor(DOMString type, optional StyleSheetChangeEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
interface StyleSheetChangeEvent : Event
|
||||
{
|
||||
readonly attribute CSSStyleSheet? stylesheet;
|
||||
|
Loading…
x
Reference in New Issue
Block a user