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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js

Issue 2940683002: DevTools: Don't blend Network highlight color (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
index 09f65a37ac6b7df51a20302a6bb1687299acff31..b2c8e893b90c9c230474023c36f223ecaf6e84d9 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
@@ -99,6 +99,8 @@ Network.NetworkNode = class extends DataGrid.SortableDataGridNode {
*/
backgroundColor() {
var bgColors = Network.NetworkNode._themedBackgroundColors();
+ if (this.selected)
+ return /** @type {string} */ (bgColors.Selected.asString(Common.Color.Format.HEX));
var color = this.isStriped() ? bgColors.Stripe : bgColors.Default;
if (this.isNavigationRequest())
color = color.blendWith(bgColors.Navigation);
@@ -108,8 +110,6 @@ Network.NetworkNode = class extends DataGrid.SortableDataGridNode {
color = color.blendWith(bgColors.InitiatorPath);
if (this.isOnInitiatedPath())
color = color.blendWith(bgColors.InitiatedPath);
- if (this.selected)
- color = color.blendWith(bgColors.Selected);
return /** @type {string} */ (color.asString(Common.Color.Format.HEX));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698