Title: [269815] trunk/Source/WebKit
- Revision
- 269815
- Author
- [email protected]
- Date
- 2020-11-14 03:59:20 -0800 (Sat, 14 Nov 2020)
Log Message
Unreviewed, suppressing GCC compilation warnings.
* UIProcess/API/wpe/ScrollGestureController.cpp:
(WebKit::ScrollGestureController::handleEvent):
Explicitly store the std::abs() results as uint32_t values. This avoids
comparison between the otherwise-signed return values and the unsigned
constants.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (269814 => 269815)
--- trunk/Source/WebKit/ChangeLog 2020-11-14 10:28:55 UTC (rev 269814)
+++ trunk/Source/WebKit/ChangeLog 2020-11-14 11:59:20 UTC (rev 269815)
@@ -1,3 +1,13 @@
+2020-11-14 Zan Dobersek <[email protected]>
+
+ Unreviewed, suppressing GCC compilation warnings.
+
+ * UIProcess/API/wpe/ScrollGestureController.cpp:
+ (WebKit::ScrollGestureController::handleEvent):
+ Explicitly store the std::abs() results as uint32_t values. This avoids
+ comparison between the otherwise-signed return values and the unsigned
+ constants.
+
2020-11-13 Sihui Liu <[email protected]>
Implement basic permission check for SpeechRecognition
Modified: trunk/Source/WebKit/UIProcess/API/wpe/ScrollGestureController.cpp (269814 => 269815)
--- trunk/Source/WebKit/UIProcess/API/wpe/ScrollGestureController.cpp 2020-11-14 10:28:55 UTC (rev 269814)
+++ trunk/Source/WebKit/UIProcess/API/wpe/ScrollGestureController.cpp 2020-11-14 11:59:20 UTC (rev 269815)
@@ -70,8 +70,8 @@
0, 0, 0,
};
- auto xOffset = std::abs(touchPoint->x - m_start.x);
- auto yOffset = std::abs(touchPoint->y - m_start.y);
+ uint32_t xOffset = std::abs(touchPoint->x - m_start.x);
+ uint32_t yOffset = std::abs(touchPoint->y - m_start.y);
if (xOffset >= axisLockReleaseThreshold)
m_xAxisLockBroken = true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes