| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="import" href="/tracing/base/event.html"> | 8 <link rel="import" href="/tracing/base/event.html"> |
| 9 <link rel="import" href="/tracing/model/event_set.html"> | 9 <link rel="import" href="/tracing/model/event_set.html"> |
| 10 <link rel="import" href="/tracing/ui/base/animation.html"> | 10 <link rel="import" href="/tracing/ui/base/animation.html"> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 * and then runs the pendingSetFunction_, if present. | 113 * and then runs the pendingSetFunction_, if present. |
| 114 */ | 114 */ |
| 115 checkForAttach_: function() { | 115 checkForAttach_: function() { |
| 116 if (!this.isAttachedToDocumentOrInTestMode || this.clientWidth == 0) | 116 if (!this.isAttachedToDocumentOrInTestMode || this.clientWidth == 0) |
| 117 return; | 117 return; |
| 118 | 118 |
| 119 if (!this.iframe_) { | 119 if (!this.iframe_) { |
| 120 this.iframe_ = document.createElement('iframe'); | 120 this.iframe_ = document.createElement('iframe'); |
| 121 this.iframe_.style.cssText = | 121 this.iframe_.style.cssText = |
| 122 'position:absolute;width:100%;height:0;border:0;visibility:hidden;'; | 122 'position:absolute;width:100%;height:0;border:0;visibility:hidden;'; |
| 123 this.parentEl_.appendChild(this.iframe_); | 123 Polymer.dom(this.parentEl_).appendChild(this.iframe_); |
| 124 | 124 |
| 125 this.iframe_.contentWindow.addEventListener('resize', this.onResize_); | 125 this.iframe_.contentWindow.addEventListener('resize', this.onResize_); |
| 126 } | 126 } |
| 127 | 127 |
| 128 var curSize = this.parentEl_.clientWidth + 'x' + | 128 var curSize = this.parentEl_.clientWidth + 'x' + |
| 129 this.parentEl_.clientHeight; | 129 this.parentEl_.clientHeight; |
| 130 if (this.pendingSetFunction_) { | 130 if (this.pendingSetFunction_) { |
| 131 this.lastSize_ = curSize; | 131 this.lastSize_ = curSize; |
| 132 try { | 132 try { |
| 133 this.pendingSetFunction_(); | 133 this.pendingSetFunction_(); |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 trackForEvent: function(event) { | 420 trackForEvent: function(event) { |
| 421 return this.eventToTrackMap_[event.guid]; | 421 return this.eventToTrackMap_[event.guid]; |
| 422 } | 422 } |
| 423 }; | 423 }; |
| 424 | 424 |
| 425 return { | 425 return { |
| 426 TimelineViewport: TimelineViewport | 426 TimelineViewport: TimelineViewport |
| 427 }; | 427 }; |
| 428 }); | 428 }); |
| 429 </script> | 429 </script> |
| OLD | NEW |