summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_folder_controller.mm
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 16:19:07 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 16:19:07 +0000
commit9a862589370681281d9e2875b7250e1e7d394903 (patch)
tree8f37d7b06fe6f8d109c367397d5447cec8f6462a /chrome/browser/cocoa/bookmark_bar_folder_controller.mm
parente8014aa57edec7e8e237af510200259a762088a8 (diff)
downloadchromium_src-9a862589370681281d9e2875b7250e1e7d394903.zip
chromium_src-9a862589370681281d9e2875b7250e1e7d394903.tar.gz
chromium_src-9a862589370681281d9e2875b7250e1e7d394903.tar.bz2
Base coordinate system != Window base coordinate system. Fixing.
BUG=http://crbug.com/36485 TEST=everything should still work Review URL: http://codereview.chromium.org/661322 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_folder_controller.mm')
-rw-r--r--chrome/browser/cocoa/bookmark_bar_folder_controller.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_folder_controller.mm b/chrome/browser/cocoa/bookmark_bar_folder_controller.mm
index 64488cf..7dedb21 100644
--- a/chrome/browser/cocoa/bookmark_bar_folder_controller.mm
+++ b/chrome/browser/cocoa/bookmark_bar_folder_controller.mm
@@ -140,11 +140,11 @@
NSPoint buttonBottomLeftInScreen =
[[parentButton_ window]
convertBaseToScreen:[parentButton_
- convertPointToBase:NSZeroPoint]];
+ convertPoint:NSZeroPoint toView:nil]];
NSPoint bookmarkBarBottomLeftInScreen =
[[parentButton_ window]
convertBaseToScreen:[[parentButton_ superview]
- convertPointToBase:NSMakePoint(0,0)]];
+ convertPoint:NSZeroPoint toView:nil]];
newWindowTopLeft = NSMakePoint(buttonBottomLeftInScreen.x,
bookmarkBarBottomLeftInScreen.y);
} else {
@@ -159,7 +159,7 @@
NSPoint topOfWindow =
[[parentButton_ window]
convertBaseToScreen:[[parentButton_ superview]
- convertPointToBase:top]];
+ convertPoint:top toView:nil]];
newWindowTopLeft.y = topOfWindow.y;
}
return newWindowTopLeft;