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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js

Issue 2688623007: DevTools: preload treeoutline triangles image (Closed)
Patch Set: use window.devicePixelRatio Created 3 years, 10 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/ui/treeoutline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
index f044821e2059c05596dc68e98919d189a46aa7e6..e96283686b8b751539fc057943b61a12cebc452f 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
@@ -1213,3 +1213,12 @@ UI.TreeElement = class {
/** @const */
UI.TreeElement._ArrowToggleWidth = 10;
+
+(function() {
pfeldman 2017/02/13 18:18:12 Is this temporary? I wish all the generic images w
+ var img = new Image();
+ if (window.devicePixelRatio > 1)
+ img.src = 'Images/treeoutlineTriangles_2x.png';
+ else
+ img.src = 'Images/treeoutlineTriangles.png';
+ UI.TreeElement._imagePreload = img;
+})();
« 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