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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2972943002: DevTools: disable spellcheck for inputs by default (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 return element; 1196 return element;
1197 }; 1197 };
1198 1198
1199 /** 1199 /**
1200 * @param {string=} className 1200 * @param {string=} className
1201 * @param {string=} type 1201 * @param {string=} type
1202 * @return {!Element} 1202 * @return {!Element}
1203 */ 1203 */
1204 UI.createInput = function(className, type) { 1204 UI.createInput = function(className, type) {
1205 var element = createElementWithClass('input', className || ''); 1205 var element = createElementWithClass('input', className || '');
1206 element.spellcheck = false;
1206 element.classList.add('harmony-input'); 1207 element.classList.add('harmony-input');
1207 if (type) 1208 if (type)
1208 element.type = type; 1209 element.type = type;
1209 return element; 1210 return element;
1210 }; 1211 };
1211 1212
1212 /** 1213 /**
1213 * @param {string} name 1214 * @param {string} name
1214 * @param {string} title 1215 * @param {string} title
1215 * @param {boolean=} checked 1216 * @param {boolean=} checked
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 */ 2066 */
2066 UI.createInlineButton = function(toolbarButton) { 2067 UI.createInlineButton = function(toolbarButton) {
2067 var element = createElement('span'); 2068 var element = createElement('span');
2068 var shadowRoot = UI.createShadowRootWithCoreStyles(element, 'ui/inlineButton.c ss'); 2069 var shadowRoot = UI.createShadowRootWithCoreStyles(element, 'ui/inlineButton.c ss');
2069 element.classList.add('inline-button'); 2070 element.classList.add('inline-button');
2070 var toolbar = new UI.Toolbar(''); 2071 var toolbar = new UI.Toolbar('');
2071 toolbar.appendToolbarItem(toolbarButton); 2072 toolbar.appendToolbarItem(toolbarButton);
2072 shadowRoot.appendChild(toolbar.element); 2073 shadowRoot.appendChild(toolbar.element);
2073 return element; 2074 return element;
2074 }; 2075 };
OLDNEW
« 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