Changeset 176711 in webkit
- Timestamp:
- Dec 2, 2014, 10:36:21 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/map-tag-default-display-expected.html (added)
-
LayoutTests/fast/css/map-tag-default-display.html (added)
-
LayoutTests/fast/selectors/map-tag-default-display-expected.txt (added)
-
LayoutTests/fast/selectors/map-tag-default-display.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/html.css (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r176706 r176711 1 2014-12-02 Benjamin Poulain <benjamin@webkit.org> 2 3 Little cleanup of the default stylesheet 4 https://bugs.webkit.org/show_bug.cgi?id=139168 5 6 Reviewed by Antti Koivisto. 7 8 Test the default display type of <map> since it is not longer explicitely set. 9 10 * fast/css/map-tag-default-display-expected.html: Added. 11 * fast/css/map-tag-default-display.html: Added. 12 * fast/selectors/map-tag-default-display-expected.txt: Added. 13 * fast/selectors/map-tag-default-display.html: Added. 14 1 15 2014-12-02 Joanmarie Diggs <jdiggs@igalia.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r176709 r176711 1 2014-12-02 Benjamin Poulain <benjamin@webkit.org> 2 3 Little cleanup of the default stylesheet 4 https://bugs.webkit.org/show_bug.cgi?id=139168 5 6 Reviewed by Antti Koivisto. 7 8 The default stylesheet has a lot of historical junk that need cleaning. This patch addresses 9 only the bits that do not change behaviors and have positive perf and readability impact. 10 11 I have limited :matches() to attributes for now. The idea is to only target 12 simple selectors that are not used for filtering by the collectors. 13 We should eventually clean up more cases, one thing at a time. 14 15 Tests: fast/css/map-tag-default-display.html 16 fast/selectors/map-tag-default-display.html 17 18 * css/html.css: 19 (map): Deleted. 20 map was explicitely setting its display to inline. Remove that since it is the default. 21 22 (head): Deleted. 23 (meta): Deleted. 24 (title): Deleted. 25 (link): Deleted. 26 (style): Deleted. 27 (script): Deleted. 28 (div): Deleted. 29 (layer): Deleted. 30 (article, aside, footer, header, hgroup, main, nav, section): Deleted. 31 (address): Deleted. 32 (head, link, meta, script, style, title): 33 (address, article, aside, div, footer, header, hgroup, layer, main, nav, section): 34 Group the standard blocks in a single rule. 35 36 (input:matches([type="hidden"], [type="image"], [type="file"])): 37 (input:matches([type="radio"], [type="checkbox"])): 38 (input:matches([type="button"], [type="submit"], [type="reset"])): 39 (input:matches([type="button"], [type="submit"], [type="reset"]), input[type="file"]::-webkit-file-upload-button, button): 40 (input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]::-webkit-file-upload-button:active, button:active): 41 (input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]:active::-webkit-file-upload-button, button:active): 42 (input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled): 43 (input:matches([type="checkbox"], [type="radio"]):checked): 44 (input:matches([type="checkbox"], [type="radio"]):checked:disabled): 45 (select:matches([size], [multiple], [size][multiple])): 46 (select:matches([size="0"], [size="1"])): 47 (input[type="hidden"], input[type="image"], input[type="file"]): Deleted. 48 (input[type="radio"], input[type="checkbox"]): Deleted. 49 (input[type="button"], input[type="submit"], input[type="reset"]): Deleted. 50 (input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button): Deleted. 51 (input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]::-webkit-file-upload-button:active, button:active): Deleted. 52 (input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active): Deleted. 53 (input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled): Deleted. 54 (input[type="checkbox"]:checked, input[type="radio"]:checked): Deleted. 55 (input[type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled): Deleted. 56 (select[size][multiple]): Deleted. 57 (select[size="1"]): Deleted. 58 Group every selector lists that only differentiates complex selectors through attributes 59 into a simple complex selector with :matches(). 60 1 61 2014-12-02 Mark Lam <mark.lam@apple.com> 2 62 -
trunk/Source/WebCore/css/html.css
r173928 r176711 29 29 30 30 /* children of the <head> element all have display:none */ 31 head { 32 display: none 33 } 34 35 meta { 36 display: none 37 } 38 39 title { 40 display: none 41 } 42 43 link { 44 display: none 45 } 46 47 style { 48 display: none 49 } 50 51 script { 31 head, link, meta, script, style, title { 52 32 display: none 53 33 } … … 68 48 } 69 49 70 div { 71 display: block 72 } 73 74 layer { 75 display: block 76 } 77 78 article, aside, footer, header, hgroup, main, nav, section { 50 address, article, aside, div, footer, header, hgroup, layer, main, nav, section { 79 51 display: block 80 52 } … … 83 55 display: inline-block; 84 56 overflow: -webkit-marquee 85 }86 87 address {88 display: block89 57 } 90 58 … … 135 103 border-style: inset; 136 104 border-width: 1px 137 }138 139 map {140 display: inline141 105 } 142 106 … … 413 377 414 378 input, 415 input[type="password"], 416 input[type="search"], 379 input:matches([type="password"], [type="search"]), 417 380 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS 418 381 textarea, … … 625 588 } 626 589 627 input [type="hidden"], input[type="image"], input[type="file"]{590 input:matches([type="hidden"], [type="image"], [type="file"]) { 628 591 -webkit-appearance: initial; 629 592 padding: initial; … … 648 611 } 649 612 650 input [type="radio"], input[type="checkbox"]{613 input:matches([type="radio"], [type="checkbox"]) { 651 614 margin: 3px 2px; 652 615 #if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS … … 660 623 } 661 624 662 input [type="button"], input[type="submit"], input[type="reset"]{625 input:matches([type="button"], [type="submit"], [type="reset"]) { 663 626 -webkit-appearance: push-button; 664 627 white-space: pre … … 672 635 } 673 636 674 input [type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {637 input:matches([type="button"], [type="submit"], [type="reset"]), input[type="file"]::-webkit-file-upload-button, button { 675 638 -webkit-align-items: flex-start; 676 639 text-align: center; … … 691 654 } 692 655 693 input [type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]::-webkit-file-upload-button:active, button:active {656 input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]::-webkit-file-upload-button:active, button:active { 694 657 color: ActiveButtonText; 695 658 } … … 747 710 #endif 748 711 749 input [type="button"]:disabled, input[type="submit"]:disabled, input[type="reset"]:disabled,712 input:matches([type="button"], [type="submit"], [type="reset"]):disabled, 750 713 input[type="file"]:disabled::-webkit-file-upload-button, button:disabled, 751 714 select:disabled, keygen:disabled, optgroup:disabled, option:disabled, … … 755 718 756 719 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 757 input [type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active {720 input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]:active::-webkit-file-upload-button, button:active { 758 721 border-style: inset 759 722 } 760 723 761 input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled { 724 input:matches([type="button"], [type="submit"], [type="reset"]):active:disabled, 725 input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled { 762 726 border-style: outset 763 727 } … … 793 757 } 794 758 795 input [type="checkbox"]:checked, input[type="radio"]:checked {759 input:matches([type="checkbox"], [type="radio"]):checked { 796 760 background:rgba(0, 0, 0, 0.8); 797 761 border-color:rgba(255, 255, 255, 0.0); 798 762 } 799 763 800 input [type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled {764 input:matches([type="checkbox"], [type="radio"]):checked:disabled { 801 765 opacity:0.4; 802 766 background:rgba(0, 0, 0, 0.8); … … 885 849 886 850 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS) 887 select[size], 888 select[multiple], 889 select[size][multiple] { 851 select:matches([size], [multiple], [size][multiple]) { 890 852 -webkit-appearance: listbox; 891 853 -webkit-align-items: flex-start; … … 895 857 } 896 858 897 select[size="0"], 898 select[size="1"] { 859 select:matches([size="0"], [size="1"]) { 899 860 -webkit-appearance: menulist; 900 861 -webkit-align-items: center; … … 1132 1093 } 1133 1094 1134 input[type="button"]:focus, 1135 input[type="checkbox"]:focus, 1136 input[type="file"]:focus, 1137 input[type="hidden"]:focus, 1138 input[type="image"]:focus, 1139 input[type="radio"]:focus, 1140 input[type="reset"]:focus, 1141 input[type="search"]:focus, 1142 input[type="submit"]:focus, 1095 input:matches([type="button"], [type="checkbox"], [type="file"], [type="hidden"], [type="image"], [type="radio"], [type="reset"], [type="search"], [type="submit"]):focus, 1143 1096 input[type="file"]:focus::-webkit-file-upload-button { 1144 1097 outline-offset: 0
Note:
See TracChangeset
for help on using the changeset viewer.