+2014-02-21 Ryosuke Niwa <rniwa@webkit.org>
+
+ Disallow the use of -webkit-user-modify on shadow pseudo elements
+ https://bugs.webkit.org/show_bug.cgi?id=129144
+
+ Reviewed by Geoffrey Garen.
+
+ Completely disallow -webkit-user-modify on user agent (builtin) pseudo elements.
+
+ We've already had rules to do this in html.css but just hard code it into the engine
+ in order to eliminate the all uses of -webkit-user-modify in html.css.
+
+ * css/StyleResolver.cpp:
+ (WebCore::StyleResolver::adjustRenderStyle):
+ * css/html.css:
+ (input::-webkit-textfield-decoration-container):
+ (input::-webkit-clear-button):
+ (input[type="search"]::-webkit-search-cancel-button):
+ (input[type="search"]::-webkit-search-decoration):
+ (input[type="search"]::-webkit-search-results-decoration):
+ (input[type="search"]::-webkit-search-results-button):
+ (input::-webkit-inner-spin-button):
+ (input::-webkit-input-speech-button):
+ (input::-webkit-input-placeholder, isindex::-webkit-input-placeholder):
+ (input[type="file"]::-webkit-file-upload-button):
+ (input[type="range"]::-webkit-slider-container, input[type="range"]::-webkit-media-slider-container):
+ (input[type="range"]::-webkit-slider-runnable-track):
+ (input[type="range"]::-webkit-slider-thumb, input[type="range"]::-webkit-media-slider-thumb):
+ (input[type="color"]::-webkit-color-swatch-wrapper):
+ (input[type="color"]::-webkit-color-swatch):
+ (::-webkit-validation-bubble):
+ (::-webkit-validation-bubble-message):
+ (::-webkit-validation-bubble-text-block):
+ (::-webkit-validation-bubble-heading):
+ (::-webkit-validation-bubble-arrow):
+ (::-webkit-validation-bubble-arrow-clipper):
+ (meter::-webkit-meter-inner-element):
+ (meter::-webkit-meter-bar):
+ (meter::-webkit-meter-optimum-value):
+ (meter::-webkit-meter-suboptimum-value):
+ (meter::-webkit-meter-even-less-good-value):
+ (progress::-webkit-progress-inner-element):
+ (progress::-webkit-progress-bar):
+ (progress::-webkit-progress-value):
+
2014-02-21 Eric Carlson <eric.carlson@apple.com>
Fix TimeRanges layering violations
input::-webkit-textfield-decoration-container {
display: -webkit-flex;
-webkit-align-items: center;
- -webkit-user-modify: read-only !important;
content: none !important;
}
-webkit-appearance: searchfield-cancel-button;
display: inline-block;
-webkit-flex: none;
- -webkit-user-modify: read-only !important;
margin-left: 2px;
}
-webkit-appearance: searchfield-cancel-button;
display: block;
-webkit-flex: none;
- -webkit-user-modify: read-only !important;
-webkit-align-self: flex-start;
margin: auto 0;
}
-webkit-appearance: searchfield-decoration;
display: block;
-webkit-flex: none;
- -webkit-user-modify: read-only !important;
-webkit-align-self: flex-start;
margin: auto 0;
}
-webkit-appearance: searchfield-results-decoration;
display: block;
-webkit-flex: none;
- -webkit-user-modify: read-only !important;
-webkit-align-self: flex-start;
margin: auto 0;
}
-webkit-appearance: searchfield-results-button;
display: block;
-webkit-flex: none;
- -webkit-user-modify: read-only !important;
}
#if defined(ENABLE_DATALIST_ELEMENT) && ENABLE_DATALIST_ELEMENT
vertical-align: top;
-webkit-flex: none;
-webkit-user-select: none;
- -webkit-user-modify: read-only !important;
}
#if defined(ENABLE_INPUT_SPEECH) && ENABLE_INPUT_SPEECH
display: block;
vertical-align: top;
-webkit-flex: none;
- -webkit-user-modify: read-only !important;
-webkit-align-self: flex-start;
margin: auto 0;
}
white-space: pre;
word-wrap: normal;
overflow: hidden;
- -webkit-user-modify: read-only !important;
}
input[type="password"] {
input[type="file"]::-webkit-file-upload-button {
-webkit-appearance: push-button;
- -webkit-user-modify: read-only !important;
white-space: nowrap;
margin: 0;
font-size: inherit;
input[type="range"]::-webkit-slider-container, input[type="range"]::-webkit-media-slider-container {
-webkit-flex: 1;
box-sizing: border-box;
- -webkit-user-modify: read-only !important;
display: -webkit-flex;
-webkit-align-contents: center;
}
-webkit-align-self: center;
box-sizing: border-box;
- -webkit-user-modify: read-only !important;
display: block;
}
input[type="range"]::-webkit-slider-thumb, input[type="range"]::-webkit-media-slider-thumb {
-webkit-appearance: sliderthumb-horizontal;
box-sizing: border-box;
- -webkit-user-modify: read-only !important;
display: block;
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS
background-color: white;
display:-webkit-flex;
padding: 4px 2px;
box-sizing: border-box;
- -webkit-user-modify: read-only !important;
width: 100%;
height: 100%
}
background-color: #000000;
border: 1px solid #777777;
-webkit-flex: 1;
- -webkit-user-modify: read-only !important;
}
#if defined(ENABLE_DATALIST_ELEMENT) && ENABLE_DATALIST_ELEMENT
margin: 0;
-webkit-text-security: none;
-webkit-transition: opacity 05.5s ease;
- -webkit-user-modify: read-only !important;
}
::-webkit-validation-bubble-message {
-webkit-box-shadow: 4px 4px 4px rgba(100,100,100,0.6),
inset -2px -2px 1px #d0c4c4,
inset 2px 2px 1px white;
- -webkit-user-modify: read-only !important;
line-height: normal;
white-space: normal;
z-index: 2147483644;
::-webkit-validation-bubble-text-block {
-webkit-flex: 1;
- -webkit-user-modify: read-only !important;
}
::-webkit-validation-bubble-heading {
font-weight: bold;
- -webkit-user-modify: read-only !important;
}
::-webkit-validation-bubble-arrow {
box-shadow: inset 2px 2px 1px white;
-webkit-transform-origin: 0 0;
-webkit-transform: rotate(45deg);
- -webkit-user-modify: read-only !important;
z-index: 2147483645;
}
display: block;
overflow: hidden;
height: 16px;
- -webkit-user-modify: read-only !important;
}
#if defined(ENABLE_METER_ELEMENT) && ENABLE_METER_ELEMENT
meter::-webkit-meter-inner-element {
-webkit-appearance: inherit;
box-sizing: inherit;
- -webkit-user-modify: read-only !important;
height: 100%;
width: 100%;
}
background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#ddd), color-stop(0.20, #eee), color-stop(0.45, #ccc), color-stop(0.55, #ccc));
height: 100%;
width: 100%;
- -webkit-user-modify: read-only !important;
box-sizing: border-box;
}
meter::-webkit-meter-optimum-value {
background: -webkit-gradient(linear, left top, left bottom, from(#ad7), to(#ad7), color-stop(0.20, #cea), color-stop(0.45, #7a3), color-stop(0.55, #7a3));
height: 100%;
- -webkit-user-modify: read-only !important;
box-sizing: border-box;
}
meter::-webkit-meter-suboptimum-value {
background: -webkit-gradient(linear, left top, left bottom, from(#fe7), to(#fe7), color-stop(0.20, #ffc), color-stop(0.45, #db3), color-stop(0.55, #db3));
height: 100%;
- -webkit-user-modify: read-only !important;
box-sizing: border-box;
}
meter::-webkit-meter-even-less-good-value {
background: -webkit-gradient(linear, left top, left bottom, from(#f77), to(#f77), color-stop(0.20, #fcc), color-stop(0.45, #d44), color-stop(0.55, #d44));
height: 100%;
- -webkit-user-modify: read-only !important;
box-sizing: border-box;
}
#endif
progress::-webkit-progress-inner-element {
-webkit-appearance: inherit;
box-sizing: inherit;
- -webkit-user-modify: read-only;
height: 100%;
width: 100%;
}
background-color: gray;
height: 100%;
width: 100%;
- -webkit-user-modify: read-only !important;
box-sizing: border-box;
}
background-color: green;
height: 100%;
width: 50%; /* should be removed later */
- -webkit-user-modify: read-only !important;
box-sizing: border-box;
}
#endif