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

Unified Diff: third_party/polymer/v1_0/chromium.patch

Issue 1766433002: Roll Polymer to 1.3.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 | third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/.bower.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/polymer/v1_0/chromium.patch
diff --git a/third_party/polymer/v1_0/chromium.patch b/third_party/polymer/v1_0/chromium.patch
index a38a4d2c01c13617fa6aaa3c5f8798e7981fc9a7..d67b3e7384969dd41764db054535b2ec1fc57f84 100644
--- a/third_party/polymer/v1_0/chromium.patch
+++ b/third_party/polymer/v1_0/chromium.patch
@@ -74,14 +74,14 @@ index 6577627..e5bb409 100644
@@ -20,11 +31,11 @@ Polymer({
state.value = state.value || '';
- // Account for the textarea's new lines.
-- var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length;
-+ var str = state.value.replace(/(\r\n|\n|\r)/g, '--').length.toString();
+- var counter = state.value.length;
++ var counter = state.value.length.toString();
if (state.inputElement.hasAttribute('maxlength')) {
- str += '/' + state.inputElement.getAttribute('maxlength');
+ counter += '/' + state.inputElement.getAttribute('maxlength');
}
- this._charCounterStr = str;
+
+ this._charCounterStr = counter;
}
- });
\ No newline at end of file
« no previous file with comments | « no previous file | third_party/polymer/v1_0/components-chromium/iron-autogrow-textarea/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698