Commit 75cb6213 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

Update "hidden" property in the toolbar buttons

This CL update the hidden property of the toolbar buttons based on the
current size class each time the button checks if it should be
displayed in the current size class, even if the result is the same as
the current hidden property.

Bug: 828767
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Iec39f2bb5ca80c78d7a04e0225a9f048c09d0f28
Reviewed-on: https://chromium-review.googlesource.com/1013527Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551325}
parent a0d2adff
...@@ -107,10 +107,10 @@ const CGFloat kDimmedAlpha = 0.5; ...@@ -107,10 +107,10 @@ const CGFloat kDimmedAlpha = 0.5;
newHiddenValue = !self.enabled; newHiddenValue = !self.enabled;
} }
if (newHiddenValue != self.hiddenInCurrentSizeClass) { // Update the hidden property of the buttons even if it is the same to
self.hiddenInCurrentSizeClass = newHiddenValue; // prevent: https://crbug.com/828767.
[self setHiddenForCurrentStateAndSizeClass]; self.hiddenInCurrentSizeClass = newHiddenValue;
} [self setHiddenForCurrentStateAndSizeClass];
} }
- (void)setHiddenInCurrentState:(BOOL)hiddenInCurrentState { - (void)setHiddenInCurrentState:(BOOL)hiddenInCurrentState {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment