Title: [276463] trunk/Source/WebCore
- Revision
- 276463
- Author
- [email protected]
- Date
- 2021-04-22 14:56:07 -0700 (Thu, 22 Apr 2021)
Log Message
[WebXR] Optional button test is incorrect
https://bugs.webkit.org/show_bug.cgi?id=224945
Reviewed by Tim Horton.
Fix a conditional test that was always true.
* testing/WebFakeXRInputController.cpp:
(WebCore::WebFakeXRInputController::getButtonOrPlaceholder const):
(A != B || A != C) -> (A != B && A != C)
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (276462 => 276463)
--- trunk/Source/WebCore/ChangeLog 2021-04-22 21:50:13 UTC (rev 276462)
+++ trunk/Source/WebCore/ChangeLog 2021-04-22 21:56:07 UTC (rev 276463)
@@ -1,5 +1,18 @@
2021-04-22 Dean Jackson <[email protected]>
+ [WebXR] Optional button test is incorrect
+ https://bugs.webkit.org/show_bug.cgi?id=224945
+
+ Reviewed by Tim Horton.
+
+ Fix a conditional test that was always true.
+
+ * testing/WebFakeXRInputController.cpp:
+ (WebCore::WebFakeXRInputController::getButtonOrPlaceholder const):
+ (A != B || A != C) -> (A != B && A != C)
+
+2021-04-22 Dean Jackson <[email protected]>
+
[WebXR] Closure is capturing this unnecessarily
https://bugs.webkit.org/show_bug.cgi?id=224946
Modified: trunk/Source/WebCore/testing/WebFakeXRInputController.cpp (276462 => 276463)
--- trunk/Source/WebCore/testing/WebFakeXRInputController.cpp 2021-04-22 21:50:13 UTC (rev 276462)
+++ trunk/Source/WebCore/testing/WebFakeXRInputController.cpp 2021-04-22 21:56:07 UTC (rev 276463)
@@ -157,7 +157,7 @@
// Add a placeholder if needed
// Devices that lack one of the optional inputs listed in the tables above MUST preserve their place in the
// buttons or axes array, reporting a placeholder button or placeholder axis, respectively.
- if (buttonType != ButtonType::OptionalButton || buttonType != ButtonType::OptionalThumbstick) {
+ if (buttonType != ButtonType::OptionalButton && buttonType != ButtonType::OptionalThumbstick) {
auto priority = std::find(XR_STANDARD_BUTTONS.begin(), XR_STANDARD_BUTTONS.end(), buttonType);
ASSERT(priority != XR_STANDARD_BUTTONS.end());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes