Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: tracing/tracing/ui/analysis/single_instant_event_sub_view.html

Issue 1923953003: [polymer] Switches .appendChild() to Polymer.dom()...appendChild() (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 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/ui/analysis/analysis_sub_view.html"> 8 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html">
9 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html"> 9 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html">
10 10
(...skipping 17 matching lines...) Expand all
28 created: function() { 28 created: function() {
29 this.currentSelection_ = undefined; 29 this.currentSelection_ = undefined;
30 }, 30 },
31 31
32 // TODO(polymer): Convert to Polymer property. 32 // TODO(polymer): Convert to Polymer property.
33 set selection(selection) { 33 set selection(selection) {
34 this.$.content.textContent = ''; 34 this.$.content.textContent = '';
35 var realView = document.createElement('tr-ui-a-single-event-sub-view'); 35 var realView = document.createElement('tr-ui-a-single-event-sub-view');
36 realView.setSelectionWithoutErrorChecks(selection); 36 realView.setSelectionWithoutErrorChecks(selection);
37 37
38 this.$.content.appendChild(realView); 38 Polymer.dom(this.$.content).appendChild(realView);
39 39
40 this.currentSelection_ = selection; 40 this.currentSelection_ = selection;
41 }, 41 },
42 42
43 get selection() { 43 get selection() {
44 return this.currentSelection_; 44 return this.currentSelection_;
45 } 45 }
46 }); 46 });
47 </script> 47 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698