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