| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 5 * Copyright (C) 2009 Joseph Pecoraro | 5 * Copyright (C) 2009 Joseph Pecoraro |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * | 10 * |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 | 723 |
| 724 /** | 724 /** |
| 725 * @param {!Element} element | 725 * @param {!Element} element |
| 726 * @param {string} className | 726 * @param {string} className |
| 727 */ | 727 */ |
| 728 WebInspector.runCSSAnimationOnce = function(element, className) | 728 WebInspector.runCSSAnimationOnce = function(element, className) |
| 729 { | 729 { |
| 730 function animationEndCallback() | 730 function animationEndCallback() |
| 731 { | 731 { |
| 732 element.classList.remove(className); | 732 element.classList.remove(className); |
| 733 element.removeEventListener("animationend", animationEndCallback, false)
; | 733 element.removeEventListener("webkitAnimationEnd", animationEndCallback,
false); |
| 734 } | 734 } |
| 735 | 735 |
| 736 if (element.classList.contains(className)) | 736 if (element.classList.contains(className)) |
| 737 element.classList.remove(className); | 737 element.classList.remove(className); |
| 738 | 738 |
| 739 element.addEventListener("animationend", animationEndCallback, false); | 739 element.addEventListener("webkitAnimationEnd", animationEndCallback, false); |
| 740 element.classList.add(className); | 740 element.classList.add(className); |
| 741 } | 741 } |
| 742 | 742 |
| 743 /** | 743 /** |
| 744 * @param {!Element} element | 744 * @param {!Element} element |
| 745 * @param {!Array.<!WebInspector.SourceRange>} resultRanges | 745 * @param {!Array.<!WebInspector.SourceRange>} resultRanges |
| 746 * @param {string} styleClass | 746 * @param {string} styleClass |
| 747 * @param {!Array.<!Object>=} changes | 747 * @param {!Array.<!Object>=} changes |
| 748 * @return {!Array.<!Element>} | 748 * @return {!Array.<!Element>} |
| 749 */ | 749 */ |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 window.addEventListener("focus", WebInspector._windowFocused, false); | 1078 window.addEventListener("focus", WebInspector._windowFocused, false); |
| 1079 window.addEventListener("blur", WebInspector._windowBlurred, false); | 1079 window.addEventListener("blur", WebInspector._windowBlurred, false); |
| 1080 document.addEventListener("focus", WebInspector._focusChanged, true); | 1080 document.addEventListener("focus", WebInspector._focusChanged, true); |
| 1081 document.addEventListener("blur", WebInspector._documentBlurred, true); | 1081 document.addEventListener("blur", WebInspector._documentBlurred, true); |
| 1082 window.removeEventListener("DOMContentLoaded", windowLoaded, false); | 1082 window.removeEventListener("DOMContentLoaded", windowLoaded, false); |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 window.addEventListener("DOMContentLoaded", windowLoaded, false); | 1085 window.addEventListener("DOMContentLoaded", windowLoaded, false); |
| 1086 | 1086 |
| 1087 })(); | 1087 })(); |
| OLD | NEW |