Title: [196610] trunk/Source/WebInspectorUI
- Revision
- 196610
- Author
- [email protected]
- Date
- 2016-02-15 16:50:21 -0800 (Mon, 15 Feb 2016)
Log Message
Web Inspector: Visual sidebar minor regression fixes
https://bugs.webkit.org/show_bug.cgi?id=154237
<rdar://problem/24653135>
Patch by Devin Rousso <[email protected]> on 2016-02-15
Reviewed by Timothy Hatcher.
* UserInterface/Views/VisualStyleCommaSeparatedKeywordEditor.css:
(.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-special-property-placeholder):
Do not display the placeholder, as it is not used in comma separated value
property editors.
(.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-comma-separated-keyword-list > .visual-style-comma-separated-keyword-item > .titles > .subtitle::before):
(.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-comma-separated-keyword-list > .visual-style-comma-separated-keyword-item > .titles > .subtitle): Deleted.
Added ::before to get rid of the "-" on subtitle elements (r196266).
* UserInterface/Views/VisualStyleDetailsPanel.js:
(WebInspector.VisualStyleDetailsPanel.prototype.widthDidChange):
Recalculates the width for all comma separated value elements (r196266).
(WebInspector.VisualStyleDetailsPanel.prototype._updateSections):
Only open/close sections with properties that have values when a new node
or selector item is selected.
(WebInspector.VisualStyleDetailsPanel.prototype._populateBorderSection):
Make copies of the default unit lists to prevent modifying the values used
later in other sections (r194728).
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (196609 => 196610)
--- trunk/Source/WebInspectorUI/ChangeLog 2016-02-16 00:20:46 UTC (rev 196609)
+++ trunk/Source/WebInspectorUI/ChangeLog 2016-02-16 00:50:21 UTC (rev 196610)
@@ -1,3 +1,32 @@
+2016-02-15 Devin Rousso <[email protected]>
+
+ Web Inspector: Visual sidebar minor regression fixes
+ https://bugs.webkit.org/show_bug.cgi?id=154237
+ <rdar://problem/24653135>
+
+ Reviewed by Timothy Hatcher.
+
+ * UserInterface/Views/VisualStyleCommaSeparatedKeywordEditor.css:
+ (.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-special-property-placeholder):
+ Do not display the placeholder, as it is not used in comma separated value
+ property editors.
+
+ (.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-comma-separated-keyword-list > .visual-style-comma-separated-keyword-item > .titles > .subtitle::before):
+ (.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-comma-separated-keyword-list > .visual-style-comma-separated-keyword-item > .titles > .subtitle): Deleted.
+ Added ::before to get rid of the "-" on subtitle elements (r196266).
+
+ * UserInterface/Views/VisualStyleDetailsPanel.js:
+ (WebInspector.VisualStyleDetailsPanel.prototype.widthDidChange):
+ Recalculates the width for all comma separated value elements (r196266).
+
+ (WebInspector.VisualStyleDetailsPanel.prototype._updateSections):
+ Only open/close sections with properties that have values when a new node
+ or selector item is selected.
+
+ (WebInspector.VisualStyleDetailsPanel.prototype._populateBorderSection):
+ Make copies of the default unit lists to prevent modifying the values used
+ later in other sections (r194728).
+
2016-02-15 Matt Baker <[email protected]>
Web Inspector: eliminate the linear and rendering frames TimelineOverview subclasses
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleCommaSeparatedKeywordEditor.css (196609 => 196610)
--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleCommaSeparatedKeywordEditor.css 2016-02-16 00:20:46 UTC (rev 196609)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleCommaSeparatedKeywordEditor.css 2016-02-16 00:50:21 UTC (rev 196610)
@@ -32,6 +32,10 @@
overflow: auto;
}
+.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-special-property-placeholder {
+ display: none;
+}
+
.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-comma-separated-keyword-list {
min-height: 51px;
max-height: 94px;
@@ -90,7 +94,7 @@
color: hsl(0, 0%, 83%);
}
-.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-comma-separated-keyword-list > .visual-style-comma-separated-keyword-item > .titles > .subtitle {
+.visual-style-property-container.comma-separated-keyword-editor > .visual-style-property-value-container > .visual-style-comma-separated-keyword-list > .visual-style-comma-separated-keyword-item > .titles > .subtitle::before {
content: none;
}
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js (196609 => 196610)
--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js 2016-02-16 00:20:46 UTC (rev 196609)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js 2016-02-16 00:50:21 UTC (rev 196610)
@@ -114,6 +114,21 @@
super.refresh();
}
+ widthDidChange()
+ {
+ super.widthDidChange();
+
+ let width = this.element.realOffsetWidth;
+ for (let key in this._groups) {
+ let group = this._groups[key];
+ if (!group.specifiedWidthProperties)
+ continue;
+
+ for (let editor of group.specifiedWidthProperties)
+ editor.specifiedWidth = width;
+ }
+ }
+
// Private
_generateSection(id, displayName)
@@ -158,17 +173,18 @@
for (let key in this._groups)
this._updateProperties(this._groups[key], !!event);
- for (let key in this._sections) {
- let section = this._sections[key];
- let _oneSectionExpanded_ = false;
- for (let group of section.groups) {
- if (!group.collapsed) {
- _oneSectionExpanded_ = true;
- break;
+ if (event) {
+ for (let key in this._sections) {
+ let section = this._sections[key];
+ let _oneSectionExpanded_ = false;
+ for (let group of section.groups) {
+ if (!group.collapsed) {
+ _oneSectionExpanded_ = true;
+ break;
+ }
}
+ section.collapsed = !oneSectionExpanded;
}
-
- section.collapsed = !oneSectionExpanded;
}
}
@@ -1075,12 +1091,12 @@
let nonKeywordUnits = [WebInspector.UIString("Number")];
- let borderImageUnits = this._units.defaults;
+ let borderImageUnits = Object.shallowCopy(this._units.defaults);
borderImageUnits.basic = nonKeywordUnits.concat(borderImageUnits.basic);
let borderImageWidth = generateBorderImagePropertyEditors("border-image-width", this._keywords.boxModel, borderImageUnits);
properties.borderImageWidth = new WebInspector.VisualStylePropertyCombiner("border-image-width", borderImageWidth.properties, true);
- let borderOutsetUnits = this._units.defaultsSansPercent;
+ let borderOutsetUnits = Object.shallowCopy(this._units.defaultsSansPercent);
borderOutsetUnits.basic = nonKeywordUnits.concat(borderOutsetUnits.basic);
let borderImageOutset = generateBorderImagePropertyEditors("border-image-outset", this._keywords.defaults, borderOutsetUnits);
properties.borderImageOutset = new WebInspector.VisualStylePropertyCombiner("border-image-outset", borderImageOutset.properties, true);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes