Backed out changeset 3620f49eb6e9 (bug 872934) Win XP PGO Bustage

This commit is contained in:
Carsten "Tomcat" Book 2013-10-14 12:46:25 +02:00
parent 1dea058460
commit eb14353aba
5 changed files with 6 additions and 16 deletions

View File

@ -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".

View File

@ -411,7 +411,10 @@ var interfaceNamesInGlobalScope =
{name: "SpecialPowers", xbl: false},
"Storage",
"StorageEvent",
"StyleRuleChangeEvent",
"StyleSheet",
"StyleSheetApplicableStateChangeEvent",
"StyleSheetChangeEvent",
"StyleSheetList",
"SVGAElement",
"SVGAltGlyphElement",

View File

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

View File

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

View File

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