Changeset 222749 in webkit


Ignore:
Timestamp:
Oct 2, 2017 3:00:58 PM (7 years ago)
Author:
Adrian Perez de Castro
Message:

[GTK] Do not hardcode font family in served remote inspector HTML snippets
https://bugs.webkit.org/show_bug.cgi?id=177742

Reviewed by Carlos Garcia Campos.

Instead of hardcoding Cantarell as the font used for the HTML snippets served
by the remote inspector handler, use "font: menu" to obtain the system UI
font, plus a "font-size" rule for adjusting the size.

  • UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp:

(WebKit::RemoteInspectorProtocolHandler::handleRequest): Change the
CSS rules in the served snippet.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r222739 r222749  
     12017-10-02  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [GTK] Do not hardcode font family in served remote inspector HTML snippets
     4        https://bugs.webkit.org/show_bug.cgi?id=177742
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Instead of hardcoding Cantarell as the font used for the HTML snippets served
     9        by the remote inspector handler, use "font: menu" to obtain the system UI
     10        font, plus a "font-size" rule for adjusting the size.
     11
     12        * UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp:
     13        (WebKit::RemoteInspectorProtocolHandler::handleRequest): Change the
     14        CSS rules in the served snippet.
     15
    1162017-10-02  Joseph Pecoraro  <pecoraro@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp

    r215683 r222749  
    120120        "<style>"
    121121        "  h1 { color: #babdb6; text-shadow: 0 1px 0 white; margin-bottom: 0; }"
    122         "  html { font-family: Cantarell, sans-serif; font: 11pt cantarell; color: #2e3436; padding: 20px 20px 0 20px; background-color: #f6f6f4; "
     122        "  html { font-family: menu; font-size: 11pt; color: #2e3436; padding: 20px 20px 0 20px; background-color: #f6f6f4; "
    123123        "         background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eeeeec), color-stop(1, #f6f6f4));"
    124124        "         background-size: 100% 5em; background-repeat: no-repeat; }"
Note: See TracChangeset for help on using the changeset viewer.