Changeset 117958 in webkit
- Timestamp:
- May 22, 2012 5:22:10 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r117957 r117958 1 2012-05-22 Alexander Pavlov <apavlov@chromium.org> 2 3 Web Inspector: [Styles] Odd synthetic shorthands may appear in the style 4 https://bugs.webkit.org/show_bug.cgi?id=87081 5 6 Reviewed by Vsevolod Vlasov. 7 8 * inspector/elements/elements-panel-styles-expected.txt: 9 * inspector/elements/resources/elements-panel-styles.css: 10 (.foo): 11 1 12 2012-05-22 Hayato Ito <hayato@chromium.org> 2 13 -
trunk/LayoutTests/inspector/elements/elements-panel-styles-expected.txt
r107220 r117958 11 11 .foo - 5px elements-panel-styles.css:14 12 12 color: blue; 13 .foo, .foo::before - blue elements-panel-styles.css:2 113 .foo, .foo::before - blue elements-panel-styles.css:22 14 14 /-- overloaded --/ .foo - black elements-panel-styles.css:14 15 15 display: none; … … 27 27 .foo - 2px elements-panel-styles.css:14 28 28 margin-left: 0px; 29 .foo - 0px elements-panel-styles.css:1429 .foo - 1px elements-panel-styles.css:14 30 30 margin-right: 0px; 31 31 .foo - 0px elements-panel-styles.css:14 … … 45 45 46 46 [expanded] 47 .foo { (elements-panel-styles.css: 39)47 .foo { (elements-panel-styles.css:40) 48 48 49 49 [expanded] 50 .foo, .foo::before { (elements-panel-styles.css:2 1)50 .foo, .foo::before { (elements-panel-styles.css:22) 51 51 content: "[before Foo]"; 52 52 color: blue; … … 55 55 .foo { (elements-panel-styles.css:14) 56 56 /-- overloaded --/ color: black; 57 margin-left: 1px; 57 58 margin: 10px 0 2px; 59 margin-left: 1px; 58 60 margin-top: 10px; 59 61 margin-right: 0px; 60 62 margin-bottom: 2px; 61 margin-left: 0px;62 63 border-radius: 5px; 63 64 border-top-left-radius: 5px; … … 89 90 ======== Pseudo ::before element ======== 90 91 [expanded] 91 .foo::before { (elements-panel-styles.css:4 3)92 .foo::before { (elements-panel-styles.css:44) 92 93 93 94 [expanded] 94 .foo::before { (elements-panel-styles.css:2 6)95 .foo::before { (elements-panel-styles.css:27) 95 96 color: red; 96 97 97 98 [expanded] 98 .foo, .foo::before { (elements-panel-styles.css:2 1)99 .foo, .foo::before { (elements-panel-styles.css:22) 99 100 content: "[before Foo]"; 100 101 /-- overloaded --/ color: blue; … … 103 104 ======== Pseudo ::after element ======== 104 105 [expanded] 105 .foo::after { (elements-panel-styles.css:3 4)106 .foo::after { (elements-panel-styles.css:35) 106 107 font-family: courier; 107 108 content: "[after Foo 2]"; 108 109 109 110 [expanded] 110 .foo::after { (elements-panel-styles.css:3 0)111 .foo::after { (elements-panel-styles.css:31) 111 112 /-- overloaded --/ content: "[after Foo]"; 112 113 color: green; -
trunk/LayoutTests/inspector/elements/resources/elements-panel-styles.css
r90630 r117958 14 14 .foo { 15 15 color: black; 16 margin-left: 1px; 16 17 margin: 10px 0 2px; 17 18 border-radius: 5px; -
trunk/Source/WebCore/ChangeLog
r117957 r117958 1 2012-05-22 Alexander Pavlov <apavlov@chromium.org> 2 3 Web Inspector: [Styles] Odd synthetic shorthands may appear in the style 4 https://bugs.webkit.org/show_bug.cgi?id=87081 5 6 Reviewed by Vsevolod Vlasov. 7 8 * inspector/front-end/StylesSidebarPane.js: 9 (WebInspector.StylePropertiesSection.prototype.onpopulate): 10 1 11 2012-05-22 Hayato Ito <hayato@chromium.org> 2 12 -
trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js
r117794 r117958 1141 1141 for (var i = 0; i < this.uniqueProperties.length; ++i) { 1142 1142 var property = this.uniqueProperties[i]; 1143 var disabled = property.disabled; 1144 var shorthand = !disabled ? property.shorthand : null; 1145 1146 if (shorthand && shorthand in handledProperties) 1147 continue; 1143 var shorthand = !property.disabled && !property.inactive ? property.shorthand : null; 1148 1144 1149 1145 if (shorthand) { 1150 property = style.getLiveProperty(shorthand); 1151 if (!property) 1146 if (shorthand in handledProperties) 1147 continue; 1148 // We should only create synthetic shorthands if they are not present in the style source (i.e. we are dealing with a source-less style). 1149 if (!style.getLiveProperty(shorthand)) 1152 1150 property = new WebInspector.CSSProperty(style, style.allProperties.length, shorthand, style.getShorthandValue(shorthand), style.getShorthandPriority(shorthand), "style", true, true, "", undefined); 1151 else 1152 shorthand = null; 1153 1153 } 1154 1154 … … 1158 1158 1159 1159 var isShorthand = !!(property.isLive && (shorthand || shorthandNames[property.name])); 1160 if (isShorthand && (property.name in handledProperties)) 1161 continue; 1160 1162 var inherited = this.isPropertyInherited(property.name); 1161 1163 var overloaded = this.isPropertyOverloaded(property.name, isShorthand);
Note: See TracChangeset
for help on using the changeset viewer.