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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkWaterfallColumn.js

Issue 2520003006: [Devtools] Fix hover issue with darktheme in network (Closed)
Patch Set: [Devtools] Fix hover issue with darktheme in network Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/network/networkLogView.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Network.NetworkWaterfallColumn = class extends UI.VBox { 7 Network.NetworkWaterfallColumn = class extends UI.VBox {
8 /** 8 /**
9 * @param {number} rowHeight 9 * @param {number} rowHeight
10 * @param {!Network.NetworkTimeCalculator} calculator 10 * @param {!Network.NetworkTimeCalculator} calculator
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 this._decorateRow(context, logEntry, i, rowOffset - this._scrollTop); 294 this._decorateRow(context, logEntry, i, rowOffset - this._scrollTop);
295 if (useTimingBars) 295 if (useTimingBars)
296 this._drawTimingBars(context, logEntry, rowOffset - this._scrollTop); 296 this._drawTimingBars(context, logEntry, rowOffset - this._scrollTop);
297 else 297 else
298 this._drawSimplifiedBars(context, logEntry, rowOffset - this._scrollTop) ; 298 this._drawSimplifiedBars(context, logEntry, rowOffset - this._scrollTop) ;
299 } 299 }
300 this._drawEventDividers(context); 300 this._drawEventDividers(context);
301 context.restore(); 301 context.restore();
302 302
303 const freeZoneAtLeft = 75; 303 const freeZoneAtLeft = 75;
304 UI.TimelineGrid.drawCanvasGrid(context, this._calculator, this._fontSize, fr eeZoneAtLeft); 304 const freeZoneAtRight = 18;
305 context.save();
lushnikov 2016/11/23 00:16:34 You don't need context.save / context.restore - it
allada 2016/11/23 01:06:03 Done.
306 UI.TimelineGrid.drawCanvasGrid(context, this._calculator, this._fontSize, th is._headerHeight, freeZoneAtLeft);
307 context.clearRect(this._offsetWidth - freeZoneAtRight, 0, freeZoneAtRight, t his._headerHeight);
308 context.restore();
305 this._didDrawForTest(); 309 this._didDrawForTest();
306 } 310 }
307 311
308 /** 312 /**
309 * @param {!CanvasRenderingContext2D} context 313 * @param {!CanvasRenderingContext2D} context
310 */ 314 */
311 _drawEventDividers(context) { 315 _drawEventDividers(context) {
312 context.save(); 316 context.save();
313 context.lineWidth = 1; 317 context.lineWidth = 1;
314 for (var color of this._eventDividers.keys()) { 318 for (var color of this._eventDividers.keys()) {
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 font: 'hsl(8, 100%, 80%)', 617 font: 'hsl(8, 100%, 80%)',
614 media: 'hsl(90, 50%, 80%)', 618 media: 'hsl(90, 50%, 80%)',
615 image: 'hsl(90, 50%, 80%)', 619 image: 'hsl(90, 50%, 80%)',
616 script: 'hsl(31, 100%, 80%)', 620 script: 'hsl(31, 100%, 80%)',
617 stylesheet: 'hsl(272, 64%, 80%)', 621 stylesheet: 'hsl(272, 64%, 80%)',
618 texttrack: 'hsl(8, 100%, 80%)', 622 texttrack: 'hsl(8, 100%, 80%)',
619 websocket: 'hsl(0, 0%, 95%)', 623 websocket: 'hsl(0, 0%, 95%)',
620 xhr: 'hsl(53, 100%, 80%)', 624 xhr: 'hsl(53, 100%, 80%)',
621 other: 'hsl(0, 0%, 95%)' 625 other: 'hsl(0, 0%, 95%)'
622 }; 626 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/network/networkLogView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698