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

Unified Diff: ui/webui/resources/js/cr/ui/focus_outline_manager.js

Issue 657493003: history: remove focus outline when using touch on mobile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops Created 5 years, 11 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 | « chrome/browser/resources/history/history_mobile.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/focus_outline_manager.js
diff --git a/ui/webui/resources/js/cr/ui/focus_outline_manager.js b/ui/webui/resources/js/cr/ui/focus_outline_manager.js
index 2b5ec9fbf66938ba687f5d0ea7d3bdb96c96b3c4..7f921ab5e6cec7998fbd5d3ecac4a87e40f9ae4e 100644
--- a/ui/webui/resources/js/cr/ui/focus_outline_manager.js
+++ b/ui/webui/resources/js/cr/ui/focus_outline_manager.js
@@ -58,10 +58,7 @@ cr.define('cr.ui', function() {
* @type {boolean}
*/
set visible(visible) {
- if (visible)
- this.classList_.add(CLASS_NAME);
- else
- this.classList_.remove(CLASS_NAME);
+ this.classList_.toggle(CLASS_NAME, visible);
Dan Beam 2015/02/02 23:38:58 not super-related but don't know when else this wo
},
get visible() {
return this.classList_.contains(CLASS_NAME);
« no previous file with comments | « chrome/browser/resources/history/history_mobile.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698