Make DocumentMarker::allMarkers() constexpr
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2018 21:47:53 +0000 (21:47 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Dec 2018 21:47:53 +0000 (21:47 +0000)
commita2db2acd16102b685d39bc2d44272e0e4b7ea209
tree26813da2475d384ff5cbf395c863e8cbff26c096
parent9c6da46db5f6c6f20b93f1aa9d363a2322ffd3bd
Make DocumentMarker::allMarkers() constexpr
https://bugs.webkit.org/show_bug.cgi?id=192634

Reviewed by Simon Fraser.

The result of DocumentMarker::allMarkers() can be computed at compile time. We should annotate
it constexpr to do just that.

* dom/DocumentMarker.h:
(WebCore::DocumentMarker::allMarkers):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/DocumentMarker.h