Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 866aeddf322dda7c322fee68d93e1df4f03688ab
https://github.com/WebKit/WebKit/commit/866aeddf322dda7c322fee68d93e1df4f03688ab
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2024-04-01 (Mon, 01 Apr 2024)
Changed paths:
M Source/WebCore/dom/ViewportArguments.cpp
M Source/WebCore/dom/ViewportArguments.h
Log Message:
-----------
WebCore::ViewportErrorCode should be an enum class
https://bugs.webkit.org/show_bug.cgi?id=271961
rdar://125713140
Reviewed by Sihui Liu.
This patch mechnically transforms ViewportErrorCode to an enum class.
* Source/WebCore/dom/ViewportArguments.cpp:
(WebCore::numericPrefix):
(WebCore::findScaleValue):
(WebCore::parseViewportFitValue):
(WebCore::viewportErrorMessageTemplate):
Use a switch statement instead of mapping the enum cases to array
entries. This is also never slower than the status quo, which is a win.
(WebCore::viewportErrorMessageLevel):
(WebCore::viewportErrorMessage):
(WebCore::setViewportFeature):
* Source/WebCore/dom/ViewportArguments.h:
Canonical link: https://commits.webkit.org/276912@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes