Changeset 188570 in webkit
- Timestamp:
- Aug 17, 2015 9:08:47 PM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r188557 r188570 1 2015-08-17 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: web fonts or unknown fonts show up as Times in visual sidebar 4 https://bugs.webkit.org/show_bug.cgi?id=148103 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Views/VisualStyleFontFamilyTreeElement.js: 9 (WebInspector.VisualStyleFontFamilyTreeElement.prototype.updateMainTitle): 10 Fonts now fall back to sans-serif and -apple-system if they do not exist. 11 1 12 2015-08-17 Myles C. Maxfield <mmaxfield@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleFontFamilyTreeElement.js
r188483 r188570 52 52 updateMainTitle(text) 53 53 { 54 this.mainTitle = this._listItemNode.style.fontFamily = this._keywordEditor.value = text; 54 this.mainTitle = this._keywordEditor.value = text; 55 this._listItemNode.style.fontFamily = text + ", " + WebInspector.VisualStyleFontFamilyTreeElement.FontFamilyFallback; 55 56 56 57 let hasText = text && text.length; … … 161 162 }; 162 163 164 WebInspector.VisualStyleFontFamilyTreeElement.FontFamilyFallback = "-apple-system, sans-serif"; 165 163 166 WebInspector.VisualStyleFontFamilyTreeElement.Event = { 164 167 KeywordChanged: "visual-style-font-family-tree-element-keyword-changed",
Note: See TracChangeset
for help on using the changeset viewer.