mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
fix naming of static function intToComparisonResult (#4685)
This commit is contained in:
parent
33b88173f3
commit
3bbc71df69
@ -40,7 +40,7 @@ blink::SemanticsAction GetSemanticsActionForScrollDirection(
|
||||
return blink::SemanticsAction::kScrollUp;
|
||||
}
|
||||
|
||||
NSComparisonResult intToComparisonResult(int32_t value) {
|
||||
NSComparisonResult IntToComparisonResult(int32_t value) {
|
||||
if (value > 0)
|
||||
return (NSComparisonResult)NSOrderedDescending;
|
||||
if (value < 0)
|
||||
@ -475,8 +475,8 @@ void AccessibilityBridge::UpdateSemantics(blink::SemanticsNodeUpdates nodes) {
|
||||
CGRect rectB = [b accessibilityFrame];
|
||||
CGFloat top = rectA.origin.y - rectB.origin.y;
|
||||
if (top == 0.0)
|
||||
return intToComparisonResult(rectA.origin.x - rectB.origin.x < 0.0);
|
||||
return intToComparisonResult(top);
|
||||
return IntToComparisonResult(rectA.origin.x - rectB.origin.x < 0.0);
|
||||
return IntToComparisonResult(top);
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user