Commit 602d5018 authored by dbeam's avatar dbeam Committed by Commit bot

Drop the -webkit prefix from user-select CSS rule in ui/.

It's been implemented as just "user-select" since Chrome 54.

This was accomplished with:

for type in none text auto; do
  git gs "\-webkit-user-select: $type;" -l | \
      xargs perl -p -i -e "s/-webkit-user-select: $type;/user-select: $type;/g"
done

And a bunch of manual alpha sorting of rules :(.

R=fukino@chromium.org
BUG=none
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2621993006
Cr-Commit-Position: refs/heads/master@{#443151}
parent 0ed8a48c
...@@ -7,13 +7,13 @@ html { ...@@ -7,13 +7,13 @@ html {
} }
body { body {
-webkit-user-select: none;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
user-select: none;
} }
.header { .header {
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
* found in the LICENSE file. */ * found in the LICENSE file. */
.dialog-header button.combobutton { .dialog-header button.combobutton {
-webkit-user-select: none;
align-items: stretch; align-items: stretch;
background: transparent; background: transparent;
border: none; border: none;
...@@ -15,6 +14,7 @@ ...@@ -15,6 +14,7 @@
outline: none; outline: none;
padding: 8px; padding: 8px;
position: relative; position: relative;
user-select: none;
} }
.dialog-header .combobutton > .button { .dialog-header .combobutton > .button {
......
...@@ -112,7 +112,6 @@ cr-menu.chrome-menu > [checked]::before { ...@@ -112,7 +112,6 @@ cr-menu.chrome-menu > [checked]::before {
/* Style for <button>s to have similar style with Polymer's <paper-button>. */ /* Style for <button>s to have similar style with Polymer's <paper-button>. */
.imitate-paper-button, .imitate-paper-button,
.cr-dialog-buttons > button { .cr-dialog-buttons > button {
-webkit-user-select: none;
background: transparent; background: transparent;
border: 0; border: 0;
border-image: none; border-image: none;
...@@ -131,6 +130,7 @@ cr-menu.chrome-menu > [checked]::before { ...@@ -131,6 +130,7 @@ cr-menu.chrome-menu > [checked]::before {
position: relative; position: relative;
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
user-select: none;
z-index: 0; z-index: 0;
} }
...@@ -195,7 +195,6 @@ html[dir='rtl'] .entry-name { ...@@ -195,7 +195,6 @@ html[dir='rtl'] .entry-name {
/* Pop-up dialogs. */ /* Pop-up dialogs. */
.cr-dialog-container { .cr-dialog-container {
-webkit-user-select: none;
align-items: center; align-items: center;
display: flex; display: flex;
height: 100%; height: 100%;
...@@ -205,6 +204,7 @@ html[dir='rtl'] .entry-name { ...@@ -205,6 +204,7 @@ html[dir='rtl'] .entry-name {
position: absolute; position: absolute;
top: 0; top: 0;
transition: opacity 250ms linear; transition: opacity 250ms linear;
user-select: none;
width: 100%; width: 100%;
z-index: 9999; z-index: 9999;
} }
......
...@@ -34,7 +34,6 @@ html.col-resize * { ...@@ -34,7 +34,6 @@ html.col-resize * {
/* Outer frame of the dialog. */ /* Outer frame of the dialog. */
body { body {
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
-webkit-user-select: none;
cursor: default; cursor: default;
display: flex; display: flex;
flex: auto; flex: auto;
...@@ -43,6 +42,7 @@ body { ...@@ -43,6 +42,7 @@ body {
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
user-select: none;
width: 100%; width: 100%;
} }
...@@ -721,7 +721,6 @@ html[dir='rtl'] #search-box .clear { ...@@ -721,7 +721,6 @@ html[dir='rtl'] #search-box .clear {
/* Copy style from paper-button for buttons on the footer. */ /* Copy style from paper-button for buttons on the footer. */
.dialog-footer button { .dialog-footer button {
-webkit-user-select: none;
background: transparent; background: transparent;
border: 0; border: 0;
border-image: none; border-image: none;
...@@ -736,6 +735,7 @@ html[dir='rtl'] #search-box .clear { ...@@ -736,6 +735,7 @@ html[dir='rtl'] #search-box .clear {
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
user-select: none;
z-index: 0; z-index: 0;
} }
......
...@@ -15,9 +15,9 @@ grid { ...@@ -15,9 +15,9 @@ grid {
list > *, list > *,
grid > * { grid > * {
-webkit-user-select: none;
position: relative; /* to allow overlap */ position: relative; /* to allow overlap */
text-overflow: ellipsis; text-overflow: ellipsis;
user-select: none;
white-space: pre; white-space: pre;
} }
......
...@@ -35,11 +35,11 @@ html.col-resize * { ...@@ -35,11 +35,11 @@ html.col-resize * {
} }
.table-header-inner { .table-header-inner {
-webkit-user-select: none;
cursor: default; cursor: default;
display: flex; display: flex;
position: relative; position: relative;
text-align: start; text-align: start;
user-select: none;
} }
.table-header-cell { .table-header-cell {
......
...@@ -11,9 +11,9 @@ tree { ...@@ -11,9 +11,9 @@ tree {
} }
.tree-item > .tree-row { .tree-item > .tree-row {
-webkit-user-select: none;
cursor: default; cursor: default;
position: relative; position: relative;
user-select: none;
white-space: nowrap; white-space: nowrap;
} }
...@@ -84,5 +84,5 @@ html[dir=rtl] .tree-row > .expand-icon { ...@@ -84,5 +84,5 @@ html[dir=rtl] .tree-row > .expand-icon {
.tree-rename > .tree-row > .tree-label { .tree-rename > .tree-row > .tree-label {
-webkit-user-modify: read-write-plaintext-only; -webkit-user-modify: read-write-plaintext-only;
-webkit-user-select: auto; user-select: auto;
} }
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
* found in the LICENSE file. */ * found in the LICENSE file. */
body { body {
-webkit-user-select: none;
background-color: black; background-color: black;
font-size: 84%; font-size: 84%;
margin: 0; margin: 0;
user-select: none;
} }
button { button {
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
* found in the LICENSE file. */ * found in the LICENSE file. */
body { body {
-webkit-user-select: none;
background: black; background: black;
font-size: 84%; font-size: 84%;
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
user-select: none;
} }
#video-player { #video-player {
......
...@@ -38,10 +38,10 @@ p { ...@@ -38,10 +38,10 @@ p {
h1, h1,
h2, h2,
h3 { h3 {
-webkit-user-select: none;
font-weight: normal; font-weight: normal;
/* Makes the vertical size of the text the same for all fonts. */ /* Makes the vertical size of the text the same for all fonts. */
line-height: 1; line-height: 1;
user-select: none;
} }
h1 { h1 {
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
-webkit-box-align: center; -webkit-box-align: center;
-webkit-box-pack: center; -webkit-box-pack: center;
-webkit-transition: opacity 250ms linear; -webkit-transition: opacity 250ms linear;
-webkit-user-select: none;
display: -webkit-box; display: -webkit-box;
height: 100%; height: 100%;
left: 0; left: 0;
overflow: hidden; overflow: hidden;
position: absolute; position: absolute;
top: 0; top: 0;
user-select: none;
width: 100%; width: 100%;
z-index: 9999; z-index: 9999;
} }
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
-webkit-border-image: url(chrome://theme/IDR_APP_NOTIFICATION_SMALL_BUBBLE) -webkit-border-image: url(chrome://theme/IDR_APP_NOTIFICATION_SMALL_BUBBLE)
5 5 7 6 stretch; 5 5 7 6 stretch;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-webkit-user-select: none;
border-width: 5px 5px 7px 6px; border-width: 5px 5px 7px 6px;
color: #444; color: #444;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-size: 12px; font-size: 12px;
position: absolute; position: absolute;
user-select: none;
z-index: 1; z-index: 1;
} }
......
...@@ -13,7 +13,6 @@ grid { ...@@ -13,7 +13,6 @@ grid {
list > *, list > *,
grid > * { grid > * {
-webkit-user-select: none;
background-color: rgba(255, 255, 255, 0); background-color: rgba(255, 255, 255, 0);
border: 1px solid rgba(255, 255, 255, 0); /* transparent white */ border: 1px solid rgba(255, 255, 255, 0); /* transparent white */
border-radius: 2px; border-radius: 2px;
...@@ -24,6 +23,7 @@ grid > * { ...@@ -24,6 +23,7 @@ grid > * {
padding: 0 3px; padding: 0 3px;
position: relative; /* to allow overlap */ position: relative; /* to allow overlap */
text-overflow: ellipsis; text-overflow: ellipsis;
user-select: none;
white-space: pre; white-space: pre;
} }
......
...@@ -99,7 +99,6 @@ html[dir='rtl'] .overlay .page > .close-button { ...@@ -99,7 +99,6 @@ html[dir='rtl'] .overlay .page > .close-button {
.overlay .page h1 { .overlay .page h1 {
-webkit-padding-end: 24px; -webkit-padding-end: 24px;
-webkit-user-select: none;
color: #333; color: #333;
/* 120% of the body's font-size of 84% is 16px. This will keep the relative /* 120% of the body's font-size of 84% is 16px. This will keep the relative
* size between the body and these titles consistent. */ * size between the body and these titles consistent. */
...@@ -111,6 +110,7 @@ html[dir='rtl'] .overlay .page > .close-button { ...@@ -111,6 +110,7 @@ html[dir='rtl'] .overlay .page > .close-button {
margin: 0; margin: 0;
padding: 14px 17px 14px; padding: 14px 17px 14px;
text-shadow: white 0 1px 2px; text-shadow: white 0 1px 2px;
user-select: none;
} }
.overlay .page .content-area { .overlay .page .content-area {
......
...@@ -63,11 +63,11 @@ list > [selected]:hover { ...@@ -63,11 +63,11 @@ list > [selected]:hover {
} }
.table-header-inner { .table-header-inner {
-webkit-user-select: none;
cursor: default; cursor: default;
display: -webkit-box; display: -webkit-box;
position: relative; position: relative;
text-align: start; text-align: start;
user-select: none;
} }
.table-header-cell { .table-header-cell {
......
...@@ -9,7 +9,6 @@ tree { ...@@ -9,7 +9,6 @@ tree {
} }
.tree-item > .tree-row { .tree-item > .tree-row {
-webkit-user-select: none;
background-color: rgba(255, 255, 255, 0); background-color: rgba(255, 255, 255, 0);
border: 1px solid rgba(255, 255, 255, 0); /* transparent white */ border: 1px solid rgba(255, 255, 255, 0); /* transparent white */
border-radius: 2px; border-radius: 2px;
...@@ -18,6 +17,7 @@ tree { ...@@ -18,6 +17,7 @@ tree {
line-height: 28px; line-height: 28px;
padding: 0 3px; padding: 0 3px;
position: relative; position: relative;
user-select: none;
white-space: nowrap; white-space: nowrap;
} }
...@@ -152,10 +152,10 @@ tree[icon-visibility=parent] .tree-row[has-children=false] > .tree-label { ...@@ -152,10 +152,10 @@ tree[icon-visibility=parent] .tree-row[has-children=false] > .tree-label {
.tree-rename > .tree-row > .tree-label { .tree-rename > .tree-row > .tree-label {
-webkit-user-modify: read-write-plaintext-only; -webkit-user-modify: read-write-plaintext-only;
-webkit-user-select: auto;
background: white; background: white;
color: black; color: black;
outline: 1px solid black; outline: 1px solid black;
user-select: auto;
} }
.tree-item[editing] input { .tree-item[editing] input {
......
...@@ -17,7 +17,6 @@ select, ...@@ -17,7 +17,6 @@ select,
input[type='checkbox'], input[type='checkbox'],
input[type='radio'] { input[type='radio'] {
-webkit-appearance: none; -webkit-appearance: none;
-webkit-user-select: none;
background-image: -webkit-linear-gradient(#ededed, #ededed 38%, #dedede); background-image: -webkit-linear-gradient(#ededed, #ededed 38%, #dedede);
border: 1px solid rgba(0, 0, 0, 0.25); border: 1px solid rgba(0, 0, 0, 0.25);
border-radius: 2px; border-radius: 2px;
...@@ -28,6 +27,7 @@ input[type='radio'] { ...@@ -28,6 +27,7 @@ input[type='radio'] {
margin: 0 1px 0 0; margin: 0 1px 0 0;
outline: none; outline: none;
text-shadow: 0 1px 0 rgb(240, 240, 240); text-shadow: 0 1px 0 rgb(240, 240, 240);
user-select: none;
} }
:-webkit-any(button, :-webkit-any(button,
...@@ -118,12 +118,12 @@ input[type='search'] { ...@@ -118,12 +118,12 @@ input[type='search'] {
/* Checked ********************************************************************/ /* Checked ********************************************************************/
input[type='checkbox']:checked::before { input[type='checkbox']:checked::before {
-webkit-user-select: none;
background-image: url(../images/check.png); background-image: url(../images/check.png);
background-size: 100% 100%; background-size: 100% 100%;
content: ''; content: '';
display: block; display: block;
height: 100%; height: 100%;
user-select: none;
width: 100%; width: 100%;
} }
...@@ -256,12 +256,12 @@ input:disabled:-webkit-any([type='password'], ...@@ -256,12 +256,12 @@ input:disabled:-webkit-any([type='password'],
*/ */
:-webkit-any(.checkbox, .radio) label { :-webkit-any(.checkbox, .radio) label {
-webkit-user-select: none;
/* Don't expand horizontally: <http://crbug.com/112091>. */ /* Don't expand horizontally: <http://crbug.com/112091>. */
align-items: center; align-items: center;
display: inline-flex; display: inline-flex;
padding-bottom: 7px; padding-bottom: 7px;
padding-top: 7px; padding-top: 7px;
user-select: none;
} }
:-webkit-any(.checkbox, .radio) label input { :-webkit-any(.checkbox, .radio) label input {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment