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

Unified Diff: tracing/tracing/ui/extras/chrome/cc/layer_view.html

Issue 3017523002: Fix uses of /deep/ in trace viewer. (Closed)
Patch Set: fix tests Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/ui/extras/chrome/cc/layer_view.html
diff --git a/tracing/tracing/ui/extras/chrome/cc/layer_view.html b/tracing/tracing/ui/extras/chrome/cc/layer_view.html
index ba68d5687cc91de624db4aa2dd2d312c79c2b2bb..948d3ee29968a84c7560911ea6d416d96f4daf64 100644
--- a/tracing/tracing/ui/extras/chrome/cc/layer_view.html
+++ b/tracing/tracing/ui/extras/chrome/cc/layer_view.html
@@ -5,8 +5,6 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<link rel="stylesheet" href="/tracing/ui/extras/chrome/cc/layer_view.css">
-
<link rel="import" href="/tracing/base/raf.html">
<link rel="import" href="/tracing/base/settings.html">
<link rel="import" href="/tracing/extras/chrome/cc/constants.html">
@@ -34,11 +32,19 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
__proto__: HTMLDivElement.prototype,
decorate() {
+ this.style.flexDirection = 'column';
+ this.style.display = 'flex';
+ this.style.left = 0;
+ this.style.position = 'relative';
+ this.style.top = 0;
+
this.layerTreeQuadStackView_ =
new tr.ui.e.chrome.cc.LayerTreeQuadStackView();
this.dragBar_ = document.createElement('tr-ui-b-drag-handle');
this.analysisEl_ =
document.createElement('tr-ui-e-chrome-cc-layer-view-analysis');
+ this.analysisEl_.style.height = '150px';
+ this.analysisEl_.style.overflowY = 'auto';
this.analysisEl_.addEventListener('requestSelectionChange',
this.onRequestSelectionChangeFromAnalysisEl_.bind(this));
@@ -94,6 +100,9 @@ tr.exportTo('tr.ui.e.chrome.cc', function() {
const analysis = selection.createAnalysis();
Polymer.dom(this.analysisEl_).appendChild(analysis);
+ for (const child of this.analysisEl_.children) {
+ child.style.userSelect = 'text';
+ }
} else {
this.dragBar_.style.display = 'none';
this.analysisEl_.style.display = 'none';
« no previous file with comments | « tracing/tracing/ui/extras/chrome/cc/layer_view.css ('k') | tracing/tracing/ui/extras/chrome/cc/picture_debugger.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698