Files
chromium-dev/chromium-144-revert_gfx_value_or.patch

30 lines
1.1 KiB
Diff
Raw Normal View History

--- chromium-144.0.7524.0/ui/gfx/paint_vector_icon.cc 2025/11/18 14:33:28 1.1
+++ chromium-144.0.7524.0/ui/gfx/paint_vector_icon.cc 2025/11/18 14:35:00
@@ -235,7 +235,7 @@
break;
case H_LINE_TO: {
- const SkPoint last_point = path.getLastPt().value_or({0, 0});
+ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0});
path.lineTo(arg(0), last_point.fY);
break;
}
@@ -245,7 +246,7 @@
break;
case V_LINE_TO: {
- const SkPoint last_point = path.getLastPt().value_or({0, 0});
+ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0});
path.lineTo(last_point.fX, arg(0));
break;
}
@@ -273,7 +275,7 @@
// details.
// Note that |x1| and |y1| will correspond to the sole control point if
// calculating a quadratic curve.
- const SkPoint last_point = path.getLastPt().value_or({0, 0});
+ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0});
SkScalar delta_x = 0;
SkScalar delta_y = 0;
if (IsCommandTypeCurve(previous_command_type)) {