diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-20 21:03:45 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-20 21:03:45 +0000 |
commit | 52b7142bdd5895a1f40b563551215d50c60a0182 (patch) | |
tree | ff62910ca172148fa1c197f9f32deceb77a20c38 | |
parent | a1956d69afcb727f2e1b2789893c078efcabad52 (diff) | |
download | chromium_src-52b7142bdd5895a1f40b563551215d50c60a0182.zip chromium_src-52b7142bdd5895a1f40b563551215d50c60a0182.tar.gz chromium_src-52b7142bdd5895a1f40b563551215d50c60a0182.tar.bz2 |
[rAc] Fix erroneous type expectation in the overlay controller.
NSTextView should have been NSTextField.
BUG=none
TEST=no more DCHECK of death
R=groby@chromium.org
Review URL: https://chromiumcodereview.appspot.com/24237011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224487 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm index d571892..e159185 100644 --- a/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm +++ b/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm @@ -72,7 +72,7 @@ SkColor kSubtleBorderColor = 0xffdfdfdf; - (CGFloat)heightForWidth:(CGFloat)width { CGFloat height = kOverlayTextInterlineSpacing; - for (NSTextView* label in [self subviews]) { + for (NSTextField* label in [self subviews]) { height += NSHeight([label frame]); height += kOverlayTextInterlineSpacing; } @@ -108,8 +108,8 @@ SkColor kSubtleBorderColor = 0xffdfdfdf; - (void)performLayout { CGFloat y = NSMaxY([self bounds]) - autofill::kArrowHeight - kOverlayTextInterlineSpacing; - for (NSTextView* label in [self subviews]) { - DCHECK([label isKindOfClass:[NSTextView class]]); + for (NSTextField* label in [self subviews]) { + DCHECK([label isKindOfClass:[NSTextField class]]); CGFloat labelHeight = NSHeight([label frame]); [label setFrame:NSMakeRect(0, y - labelHeight, NSWidth([self bounds]), labelHeight)]; |