mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
Update CSS tests to revision d674587d6ae7d2e231d632785559f2613d554eb0
This commit is contained in:
@@ -62,22 +62,6 @@ root.reflow = function() {
|
||||
document.body.offsetWidth;
|
||||
};
|
||||
|
||||
// add all known TransitionEnd events to element
|
||||
root.addTransitionEvent = function(element, handler) {
|
||||
return addEvent(element, 'TransitionEnd webkitTransitionEnd transitionend oTransitionEnd otransitionend MSTransitionEnd', handler);
|
||||
};
|
||||
|
||||
// add space-separated list of events to element
|
||||
root.addEvent = function(element, events, handler) {
|
||||
var _events = {};
|
||||
var tokens = events.split(" ");
|
||||
for (var i = 0, token; token = tokens[i]; i++) {
|
||||
element.addEventListener(token, handler, false);
|
||||
_events[token] = handler;
|
||||
}
|
||||
return _events;
|
||||
};
|
||||
|
||||
// merge objects
|
||||
root.extend = function(target /*, ..rest */) {
|
||||
Array.prototype.slice.call(arguments, 1).forEach(function(obj) {
|
||||
@@ -109,14 +93,4 @@ root.domFixture = function(selector) {
|
||||
throw new Error('domFixture must be initialized first!');
|
||||
}
|
||||
};
|
||||
|
||||
// return requestAnimationFrame handler, if available
|
||||
root.getRequestAnimationFrame = function() {
|
||||
return window.requestAnimationFrame
|
||||
|| window.mozRequestAnimationFrame
|
||||
|| window.webkitRequestAnimationFrame
|
||||
|| window.msRequestAnimationFrame
|
||||
|| window.oRequestAnimationFrame;
|
||||
};
|
||||
|
||||
})(window);
|
||||
})(window);
|
||||
|
||||
Reference in New Issue
Block a user