summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 22:07:11 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 22:07:11 +0000
commitd7fc97946625fee2c54e18bce4f61608efeeef03 (patch)
treee2033035f58d2342f55cdb677e38d281cc655152 /views/view.cc
parentb12d815dbd8295b3e7f5e4b4a7350aebc580270c (diff)
downloadchromium_src-d7fc97946625fee2c54e18bce4f61608efeeef03.zip
chromium_src-d7fc97946625fee2c54e18bce4f61608efeeef03.tar.gz
chromium_src-d7fc97946625fee2c54e18bce4f61608efeeef03.tar.bz2
Fixes two issues from valgrind, and some cleanup:
. Makes it so observer installed by WidgetGtk is cleaned up and not leaked. . Removes unnecessary static_cast<int> in view. . Fixes some leaks in textfield and button. . Removes AutocompletePopupViewGTK's copy of PangoFontFromGfxFont. BUG=none TEST=none Review URL: http://codereview.chromium.org/420005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32686 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/views/view.cc b/views/view.cc
index 839616e..3450e9a 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -417,8 +417,7 @@ gfx::NativeCursor View::GetCursorForPoint(Event::EventType event_type, int x,
}
bool View::HitTest(const gfx::Point& l) const {
- if (l.x() >= 0 && l.x() < static_cast<int>(width()) &&
- l.y() >= 0 && l.y() < static_cast<int>(height())) {
+ if (l.x() >= 0 && l.x() < width() && l.y() >= 0 && l.y() < height()) {
if (HasHitTestMask()) {
gfx::Path mask;
GetHitTestMask(&mask);