| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 /** @type {?Array.<!Object.<string, number>>} */ | 1915 /** @type {?Array.<!Object.<string, number>>} */ |
| 1916 this.invalidationList = eventData["invalidationList"]; | 1916 this.invalidationList = eventData["invalidationList"]; |
| 1917 /** @type {!WebInspector.InvalidationCause} */ | 1917 /** @type {!WebInspector.InvalidationCause} */ |
| 1918 this.cause = {reason: eventData["reason"], stackTrace: eventData["stackTrace
"]}; | 1918 this.cause = {reason: eventData["reason"], stackTrace: eventData["stackTrace
"]}; |
| 1919 | 1919 |
| 1920 // FIXME: Move this to TimelineUIUtils.js. | 1920 // FIXME: Move this to TimelineUIUtils.js. |
| 1921 if (!this.cause.reason && this.cause.stackTrace && this.type === WebInspecto
r.TimelineModel.RecordType.LayoutInvalidationTracking) | 1921 if (!this.cause.reason && this.cause.stackTrace && this.type === WebInspecto
r.TimelineModel.RecordType.LayoutInvalidationTracking) |
| 1922 this.cause.reason = "Layout forced"; | 1922 this.cause.reason = "Layout forced"; |
| 1923 } | 1923 } |
| 1924 | 1924 |
| 1925 /** @typedef {{reason: string, stackTrace: ?Array.<!ConsoleAgent.CallFrame>}} */ | 1925 /** @typedef {{reason: string, stackTrace: ?Array.<!RuntimeAgent.CallFrame>}} */ |
| 1926 WebInspector.InvalidationCause; | 1926 WebInspector.InvalidationCause; |
| 1927 | 1927 |
| 1928 /** | 1928 /** |
| 1929 * @constructor | 1929 * @constructor |
| 1930 */ | 1930 */ |
| 1931 WebInspector.InvalidationTracker = function() | 1931 WebInspector.InvalidationTracker = function() |
| 1932 { | 1932 { |
| 1933 this._initializePerFrameState(); | 1933 this._initializePerFrameState(); |
| 1934 } | 1934 } |
| 1935 | 1935 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2234 if (!id) | 2234 if (!id) |
| 2235 return; | 2235 return; |
| 2236 /** @type {!Map<string, !WebInspector.TracingModel.Event>|undefined} */ | 2236 /** @type {!Map<string, !WebInspector.TracingModel.Event>|undefined} */ |
| 2237 var initiatorMap = this._initiatorByType.get(initiatorType); | 2237 var initiatorMap = this._initiatorByType.get(initiatorType); |
| 2238 if (isInitiator) | 2238 if (isInitiator) |
| 2239 initiatorMap.set(id, event); | 2239 initiatorMap.set(id, event); |
| 2240 else | 2240 else |
| 2241 event.initiator = initiatorMap.get(id) || null; | 2241 event.initiator = initiatorMap.get(id) || null; |
| 2242 } | 2242 } |
| 2243 } | 2243 } |
| OLD | NEW |