diff options
Diffstat (limited to 'chrome/views/text_field.cc')
-rw-r--r-- | chrome/views/text_field.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/views/text_field.cc b/chrome/views/text_field.cc index 3c64c3d..072ff76 100644 --- a/chrome/views/text_field.cc +++ b/chrome/views/text_field.cc @@ -22,9 +22,9 @@ #include "chrome/common/l10n_util.h" #include "chrome/common/logging_chrome.h" #include "chrome/common/win_util.h" -#include "chrome/views/container.h" #include "chrome/views/hwnd_view.h" #include "chrome/views/menu.h" +#include "chrome/views/widget.h" #include "generated_resources.h" @@ -267,7 +267,7 @@ TextField::Edit::Edit(TextField* parent, bool draw_border) DWORD ex_style = l10n_util::GetExtendedStyles(); RECT r = {0, 0, parent_->width(), parent_->height()}; - Create(parent_->GetContainer()->GetHWND(), r, NULL, style, ex_style); + Create(parent_->GetWidget()->GetHWND(), r, NULL, style, ex_style); // Set up the text_object_model_. CComPtr<IRichEditOle> ole_interface; @@ -884,9 +884,9 @@ TextField::~TextField() { } void TextField::ViewHierarchyChanged(bool is_add, View* parent, View* child) { - Container* vc; + Widget* widget; - if (is_add && (vc = GetContainer())) { + if (is_add && (widget = GetWidget())) { // This notification is called from the AddChildView call below. Ignore it. if (native_view_ && !edit_) return; |