summaryrefslogtreecommitdiffstats
path: root/chrome/views/text_field.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/text_field.cc')
-rw-r--r--chrome/views/text_field.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/views/text_field.cc b/chrome/views/text_field.cc
index 2991040..517968a 100644
--- a/chrome/views/text_field.cc
+++ b/chrome/views/text_field.cc
@@ -839,17 +839,11 @@ void TextField::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
void TextField::Layout() {
if (native_view_) {
- CRect lb;
- GetLocalBounds(&lb, true);
- native_view_->SetBounds(0, 0, lb.Width(), lb.Height());
+ native_view_->SetBounds(GetLocalBounds(true));
native_view_->UpdateHWNDBounds();
}
}
-void TextField::DidChangeBounds(const CRect& previous, const CRect& current) {
- Layout();
-}
-
gfx::Size TextField::GetPreferredSize() {
gfx::Insets insets;
CalculateInsets(&insets);