summaryrefslogtreecommitdiffstats
path: root/chrome/views/tree_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/tree_view.cc')
-rw-r--r--chrome/views/tree_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/views/tree_view.cc b/chrome/views/tree_view.cc
index 0294788..3952ec0 100644
--- a/chrome/views/tree_view.cc
+++ b/chrome/views/tree_view.cc
@@ -290,7 +290,7 @@ HWND TreeView::CreateNativeControl(HWND parent_container) {
WC_TREEVIEW,
L"",
style,
- 0, 0, GetWidth(), GetHeight(),
+ 0, 0, width(), height(),
parent_container, NULL, NULL, NULL);
SetWindowLongPtr(tree_view_, GWLP_USERDATA,
reinterpret_cast<LONG_PTR>(&wrapper_));
@@ -444,8 +444,8 @@ void TreeView::OnContextMenu(const CPoint& location) {
return;
}
if (!valid_loc) {
- x = GetWidth() / 2;
- y = GetHeight() / 2;
+ x = width() / 2;
+ y = height() / 2;
}
CPoint screen_loc(x, y);
ConvertPointToScreen(this, &screen_loc);