Title: [222749] trunk/Source/WebKit
- Revision
- 222749
- Author
- [email protected]
- Date
- 2017-10-02 15:00:58 -0700 (Mon, 02 Oct 2017)
Log 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.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (222748 => 222749)
--- trunk/Source/WebKit/ChangeLog 2017-10-02 21:58:50 UTC (rev 222748)
+++ trunk/Source/WebKit/ChangeLog 2017-10-02 22:00:58 UTC (rev 222749)
@@ -1,3 +1,18 @@
+2017-10-02 Adrian Perez de Castro <[email protected]>
+
+ [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.
+
2017-10-02 Joseph Pecoraro <[email protected]>
Web Inspector: Include Beacon and Ping requests in Network tab
Modified: trunk/Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp (222748 => 222749)
--- trunk/Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp 2017-10-02 21:58:50 UTC (rev 222748)
+++ trunk/Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp 2017-10-02 22:00:58 UTC (rev 222749)
@@ -119,7 +119,7 @@
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"
"<style>"
" h1 { color: #babdb6; text-shadow: 0 1px 0 white; margin-bottom: 0; }"
- " html { font-family: Cantarell, sans-serif; font: 11pt cantarell; color: #2e3436; padding: 20px 20px 0 20px; background-color: #f6f6f4; "
+ " html { font-family: menu; font-size: 11pt; color: #2e3436; padding: 20px 20px 0 20px; background-color: #f6f6f4; "
" background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eeeeec), color-stop(1, #f6f6f4));"
" background-size: 100% 5em; background-repeat: no-repeat; }"
" table { width: 100%; border-collapse: collapse; }"
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes