Title: [238295] trunk/Source/WebCore
- Revision
- 238295
- Author
- timo...@apple.com
- Date
- 2018-11-16 12:13:24 -0800 (Fri, 16 Nov 2018)
Log Message
Add html{color:text} to the simpleUserAgentStyleSheet on macOS.
https://bugs.webkit.org/show_bug.cgi?id=191760
Reviewed by Antti Koivisto.
* css/CSSDefaultStyleSheets.cpp: Added html{color:text} to simpleUserAgentStyleSheet inside
a PLATFORM(MAC) copy of the string.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (238294 => 238295)
--- trunk/Source/WebCore/ChangeLog 2018-11-16 20:11:48 UTC (rev 238294)
+++ trunk/Source/WebCore/ChangeLog 2018-11-16 20:13:24 UTC (rev 238295)
@@ -1,3 +1,13 @@
+2018-11-16 Timothy Hatcher <timo...@apple.com>
+
+ Add html{color:text} to the simpleUserAgentStyleSheet on macOS.
+ https://bugs.webkit.org/show_bug.cgi?id=191760
+
+ Reviewed by Antti Koivisto.
+
+ * css/CSSDefaultStyleSheets.cpp: Added html{color:text} to simpleUserAgentStyleSheet inside
+ a PLATFORM(MAC) copy of the string.
+
2018-11-16 Jer Noble <jer.no...@apple.com>
An early return from updateSchedulingInfo can leave some variables uninitialized.
Modified: trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp (238294 => 238295)
--- trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp 2018-11-16 20:11:48 UTC (rev 238294)
+++ trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp 2018-11-16 20:13:24 UTC (rev 238295)
@@ -80,7 +80,12 @@
#endif
// FIXME: It would be nice to use some mechanism that guarantees this is in sync with the real UA stylesheet.
+#if PLATFORM(MAC)
+// The only difference in the simple style sheet for macOS is the addition of html{color:text}.
+static const char* simpleUserAgentStyleSheet = "html,body,div{display:block}html{color:text}head{display:none}body{margin:8px}div:focus,span:focus,a:focus{outline:auto 5px -webkit-focus-ring-color}a:any-link{color:-webkit-link;text-decoration:underline}a:any-link:active{color:-webkit-activelink}";
+#else
static const char* simpleUserAgentStyleSheet = "html,body,div{display:block}head{display:none}body{margin:8px}div:focus,span:focus,a:focus{outline:auto 5px -webkit-focus-ring-color}a:any-link{color:-webkit-link;text-decoration:underline}a:any-link:active{color:-webkit-activelink}";
+#endif
static inline bool elementCanUseSimpleDefaultStyle(const Element& element)
{
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes