summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/style/basic_shapes.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/style/basic_shapes.h')
-rw-r--r--chromium/third_party/blink/renderer/core/style/basic_shapes.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/style/basic_shapes.h b/chromium/third_party/blink/renderer/core/style/basic_shapes.h
index 932a64a8b65..e423999631b 100644
--- a/chromium/third_party/blink/renderer/core/style/basic_shapes.h
+++ b/chromium/third_party/blink/renderer/core/style/basic_shapes.h
@@ -89,10 +89,9 @@ class BasicShapeCenterCoordinate {
? length
: length.SubtractFromOneHundredPercent()) {}
- BasicShapeCenterCoordinate(const BasicShapeCenterCoordinate& other)
- : direction_(other.GetDirection()),
- length_(other.length()),
- computed_length_(other.computed_length_) {}
+ BasicShapeCenterCoordinate(const BasicShapeCenterCoordinate&) = default;
+ BasicShapeCenterCoordinate& operator=(const BasicShapeCenterCoordinate&) =
+ default;
bool operator==(const BasicShapeCenterCoordinate& other) const {
return direction_ == other.direction_ && length_ == other.length_ &&
@@ -117,8 +116,8 @@ class BasicShapeRadius {
BasicShapeRadius() : type_(kClosestSide) {}
explicit BasicShapeRadius(const Length& v) : value_(v), type_(kValue) {}
explicit BasicShapeRadius(RadiusType t) : type_(t) {}
- BasicShapeRadius(const BasicShapeRadius& other)
- : value_(other.Value()), type_(other.GetType()) {}
+ BasicShapeRadius(const BasicShapeRadius&) = default;
+ BasicShapeRadius& operator=(const BasicShapeRadius&) = default;
bool operator==(const BasicShapeRadius& other) const {
return type_ == other.type_ && value_ == other.value_;
}