Changeset 239289 in webkit
- Timestamp:
- Dec 17, 2018 1:47:53 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r239288 r239289 1 2018-12-17 Daniel Bates <dabates@apple.com> 2 3 Make DocumentMarker::allMarkers() constexpr 4 https://bugs.webkit.org/show_bug.cgi?id=192634 5 6 Reviewed by Simon Fraser. 7 8 The result of DocumentMarker::allMarkers() can be computed at compile time. We should annotate 9 it constexpr to do just that. 10 11 * dom/DocumentMarker.h: 12 (WebCore::DocumentMarker::allMarkers): 13 1 14 2018-12-17 Justin Fan <justin_fan@apple.com> 2 15 -
trunk/Source/WebCore/dom/DocumentMarker.h
r237266 r239289 83 83 }; 84 84 85 static OptionSet<MarkerType> allMarkers();85 static constexpr OptionSet<MarkerType> allMarkers(); 86 86 87 87 using IsActiveMatchData = bool; … … 142 142 }; 143 143 144 inlineauto DocumentMarker::allMarkers() -> OptionSet<MarkerType>145 { 146 OptionSet<MarkerType> markers{144 constexpr auto DocumentMarker::allMarkers() -> OptionSet<MarkerType> 145 { 146 return { 147 147 AcceptedCandidate, 148 148 Autocorrected, … … 165 165 #endif 166 166 }; 167 return markers;168 167 } 169 168
Note: See TracChangeset
for help on using the changeset viewer.