Changeset 250912 in webkit
- Timestamp:
- Oct 9, 2019 7:38:45 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r250910 r250912 1 2019-10-09 Chris Dumez <cdumez@apple.com> 2 3 [iOS] REGRESSION (r250398) Layout Test fast/history/page-cache-element-state-focused.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=202712 5 <rdar://problem/56082428> 6 7 Reviewed by Antti Koivisto. 8 9 The test was failing depending on the order in which the tests were executed. The reason is that 10 elements would either use the full UA stylesheet (html.css) or the simple one in CSSDefaultStyleSheets.cpp. 11 Unfortunately, the outline-width was different on iOS between the simple stylesheet and the full one, causing 12 the test output to look different depending on which stylesheet was used. 13 14 Address the issue by making sure that the outline-width is 3px on IOS_FAMILY in the simple stylesheet, to 15 be consistent with the value in the full stylesheet (html.css). 16 17 * css/CSSDefaultStyleSheets.cpp: 18 1 19 2019-10-09 Zalan Bujtas <zalan@apple.com> 2 20 -
trunk/Source/WebCore/css/CSSDefaultStyleSheets.cpp
r248846 r250912 81 81 #endif 82 82 83 #if PLATFORM(IOS_FAMILY) 84 #define DEFAULT_OUTLINE_WIDTH "3px" 85 #else 86 #define DEFAULT_OUTLINE_WIDTH "5px" 87 #endif 88 89 #if HAVE(OS_DARK_MODE_SUPPORT) 90 #define CSS_DARK_MODE_ADDITION "html{color:text}" 91 #else 92 #define CSS_DARK_MODE_ADDITION "" 93 #endif 94 83 95 // FIXME: It would be nice to use some mechanism that guarantees this is in sync with the real UA stylesheet. 84 #if HAVE(OS_DARK_MODE_SUPPORT) 85 // The only difference in the simple style sheet for dark mode is the addition of html{color:text}. 86 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}"; 87 #else 88 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}"; 89 #endif 96 static const char* simpleUserAgentStyleSheet = "html,body,div{display:block}" CSS_DARK_MODE_ADDITION "head{display:none}body{margin:8px}div:focus,span:focus,a:focus{outline:auto " DEFAULT_OUTLINE_WIDTH " -webkit-focus-ring-color}a:any-link{color:-webkit-link;text-decoration:underline}a:any-link:active{color:-webkit-activelink}"; 90 97 91 98 static inline bool elementCanUseSimpleDefaultStyle(const Element& element)
Note: See TracChangeset
for help on using the changeset viewer.