Changeset 188570 in webkit


Ignore:
Timestamp:
Aug 17, 2015 9:08:47 PM (9 years ago)
Author:
Devin Rousso
Message:

Web Inspector: web fonts or unknown fonts show up as Times in visual sidebar
https://bugs.webkit.org/show_bug.cgi?id=148103

Reviewed by Timothy Hatcher.

  • UserInterface/Views/VisualStyleFontFamilyTreeElement.js:

(WebInspector.VisualStyleFontFamilyTreeElement.prototype.updateMainTitle):
Fonts now fall back to sans-serif and -apple-system if they do not exist.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r188557 r188570  
     12015-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
    1122015-08-17  Myles C. Maxfield  <mmaxfield@apple.com>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleFontFamilyTreeElement.js

    r188483 r188570  
    5252    updateMainTitle(text)
    5353    {
    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;
    5556
    5657        let hasText = text && text.length;
     
    161162};
    162163
     164WebInspector.VisualStyleFontFamilyTreeElement.FontFamilyFallback = "-apple-system, sans-serif";
     165
    163166WebInspector.VisualStyleFontFamilyTreeElement.Event = {
    164167    KeywordChanged: "visual-style-font-family-tree-element-keyword-changed",
Note: See TracChangeset for help on using the changeset viewer.