summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/cocoa/bubble_view.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bubble_view.mm b/chrome/browser/cocoa/bubble_view.mm
index 685f3bc..c612c6a 100644
--- a/chrome/browser/cocoa/bubble_view.mm
+++ b/chrome/browser/cocoa/bubble_view.mm
@@ -29,12 +29,16 @@ const float kWindowEdge = 0.7f;
// Sets the string displayed in the bubble. A copy of the string is made.
- (void)setContent:(NSString*)content {
+ if ([content_ isEqualToString:content])
+ return;
content_.reset([content copy]);
[self setNeedsDisplay:YES];
}
// Sets which corners will be rounded.
- (void)setCornerFlags:(unsigned long)flags {
+ if (cornerFlags_ == flags)
+ return;
cornerFlags_ = flags;
[self setNeedsDisplay:YES];
}