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:
Valentin Shergin 2018-09-28 14:46:29 -07:00 committed by Facebook Github Bot
parent 9edf63534e
commit 5ce2c0144b
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}
};