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

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

Issue 2570783006: DevTools: convert a few more icons to UI.Icon. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
index 200b299495290906d7bf5477768efdbe4bea12d5..a7a5716923ee5fbe9690a75e5fa097b0ca4f0b4f 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
@@ -200,7 +200,8 @@ Network.BlockedURLsPane = class extends UI.VBox {
countElement.title = Common.UIString(
count === 1 ? '%d request blocked by this pattern' : '%d requests blocked by this pattern', count);
- var removeButton = element.createChild('div', 'remove-button');
+ var removeButton = UI.Icon.create('smallicon-cross', 'remove-icon');
+ element.appendChild(removeButton);
removeButton.title = Common.UIString('Remove');
removeButton.addEventListener('click', this._removeBlockedURL.bind(this, index), false);

Powered by Google App Engine
This is Rietveld 408576698