Fabric: Fixed a bug in LayoutMetrics::operator==
Summary: Trivial. We missed `pointScaleFactor`. Reviewed By: mdvacca Differential Revision: D10112051 fbshipit-source-id: 980b8c310fbb3701008765509dce5b6e61852c0e
This commit is contained in:
parent
9edf63534e
commit
5ce2c0144b
|
@ -31,13 +31,13 @@ struct LayoutMetrics {
|
|||
};
|
||||
}
|
||||
|
||||
bool operator ==(const LayoutMetrics& rhs) const {
|
||||
bool operator==(const LayoutMetrics &rhs) const {
|
||||
return
|
||||
std::tie(this->frame, this->contentInsets, this->borderWidth, this->displayType, this->layoutDirection) ==
|
||||
std::tie(rhs.frame, rhs.contentInsets, rhs.borderWidth, rhs.displayType, rhs.layoutDirection);
|
||||
std::tie(this->frame, this->contentInsets, this->borderWidth, this->displayType, this->layoutDirection, this->pointScaleFactor) ==
|
||||
std::tie(rhs.frame, rhs.contentInsets, rhs.borderWidth, rhs.displayType, rhs.layoutDirection, this->pointScaleFactor);
|
||||
}
|
||||
|
||||
bool operator !=(const LayoutMetrics& rhs) const {
|
||||
bool operator!=(const LayoutMetrics &rhs) const {
|
||||
return !(*this == rhs);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue