Changeset 267009 in webkit
- Timestamp:
- Sep 14, 2020 1:38:53 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r267008 r267009 1 2020-09-14 Chris Lord <clord@igalia.com> 2 3 CSS parsing-related singletons should only be used on the main thread 4 https://bugs.webkit.org/show_bug.cgi?id=216370 5 6 Reviewed by Darin Adler. 7 8 Mark some singletons that aren't safe to use off the main thread as 9 MainThreadNeverDestroyed instead of just NeverDestroyed. 10 11 No new tests because there is no behavior change. 12 13 * css/CSSValuePool.cpp: 14 (WebCore::CSSValuePool::singleton): 15 * css/parser/CSSParserContext.cpp: 16 (WebCore::strictCSSParserContext): 17 * rendering/RenderThemeAdwaita.cpp: 18 (WebCore::RenderTheme::singleton): 19 * rendering/RenderThemeGtk.cpp: 20 (WebCore::RenderTheme::singleton): 21 1 22 2020-09-14 Myles C. Maxfield <mmaxfield@apple.com> 2 23 -
trunk/Source/WebCore/css/CSSValuePool.cpp
r264585 r267009 74 74 CSSValuePool& CSSValuePool::singleton() 75 75 { 76 ASSERT(isMainThread()); 77 static NeverDestroyed<CSSValuePool> pool; 76 static MainThreadNeverDestroyed<CSSValuePool> pool; 78 77 return pool; 79 78 } -
trunk/Source/WebCore/css/parser/CSSParserContext.cpp
r255151 r267009 38 38 const CSSParserContext& strictCSSParserContext() 39 39 { 40 static NeverDestroyed<CSSParserContext> strictContext(HTMLStandardMode);40 static MainThreadNeverDestroyed<CSSParserContext> strictContext(HTMLStandardMode); 41 41 return strictContext; 42 42 } -
trunk/Source/WebCore/rendering/RenderThemeAdwaita.cpp
r264565 r267009 80 80 RenderTheme& RenderTheme::singleton() 81 81 { 82 static NeverDestroyed<RenderThemeAdwaita> theme;82 static MainThreadNeverDestroyed<RenderThemeAdwaita> theme; 83 83 return theme; 84 84 } -
trunk/Source/WebCore/rendering/RenderThemeGtk.cpp
r257299 r267009 33 33 RenderTheme& RenderTheme::singleton() 34 34 { 35 static NeverDestroyed<RenderThemeGtk> theme;35 static MainThreadNeverDestroyed<RenderThemeGtk> theme; 36 36 return theme; 37 37 }
Note: See TracChangeset
for help on using the changeset viewer.