| Index: ios/chrome/browser/ui/fade_truncated_label.mm
|
| diff --git a/ios/chrome/browser/ui/fade_truncated_label.mm b/ios/chrome/browser/ui/fade_truncated_label.mm
|
| index 8aa4d7da478e54673e0707afc929259c1aa844aa..837c23a4b1b992040abb903b714557b0ebdeced3 100644
|
| --- a/ios/chrome/browser/ui/fade_truncated_label.mm
|
| +++ b/ios/chrome/browser/ui/fade_truncated_label.mm
|
| @@ -5,7 +5,7 @@
|
| #import "ios/chrome/browser/ui/fade_truncated_label.h"
|
|
|
| #include <algorithm>
|
| -#include "base/mac/objc_property_releaser.h"
|
| +#include "base/mac/objc_release_properties.h"
|
| #import "ios/chrome/browser/ui/animation_util.h"
|
| #import "ios/chrome/browser/ui/reversed_animation.h"
|
| #import "ui/gfx/ios/uikit_util.h"
|
| @@ -16,9 +16,7 @@ NSString* const kFadeTruncatedLabelAnimationKey =
|
| @"FadeTruncatedLabelAnimationKey";
|
| }
|
|
|
| -@interface FadeTruncatedLabel () {
|
| - base::mac::ObjCPropertyReleaser _propertyReleaser_FadeTruncatedLabel;
|
| -}
|
| +@interface FadeTruncatedLabel ()
|
|
|
| // Layer used to apply fade truncation to label.
|
| @property(nonatomic, retain) CAGradientLayer* maskLayer;
|
| @@ -42,9 +40,6 @@ NSString* const kFadeTruncatedLabelAnimationKey =
|
| - (instancetype)initWithFrame:(CGRect)frame {
|
| self = [super initWithFrame:frame];
|
| if (self) {
|
| - // Initialize property releaser.
|
| - _propertyReleaser_FadeTruncatedLabel.Init(self, [FadeTruncatedLabel class]);
|
| -
|
| // Set background color and line break mode.
|
| self.backgroundColor = [UIColor clearColor];
|
| self.lineBreakMode = NSLineBreakByClipping;
|
| @@ -60,6 +55,11 @@ NSString* const kFadeTruncatedLabelAnimationKey =
|
| return self;
|
| }
|
|
|
| +- (void)dealloc {
|
| + base::mac::ReleaseProperties(self);
|
| + [super dealloc];
|
| +}
|
| +
|
| #pragma mark - UILabel overrides
|
|
|
| - (void)drawTextInRect:(CGRect)rect {
|
|
|