Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: ui/views/controls/textfield/textfield.cc

Issue 25039002: Always aligns text at vertically center (Textfield, Label). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 56e52ae14c715cd2e8a1bc449145e840db043b19..bd0cfe14e9d836faf3a016216dc091d0e734b51e 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -91,7 +91,6 @@ Textfield::Textfield()
use_default_background_color_(true),
horizontal_margins_were_set_(false),
vertical_margins_were_set_(false),
- vertical_alignment_(gfx::ALIGN_VCENTER),
placeholder_text_color_(kDefaultPlaceholderTextColor),
text_input_type_(ui::TEXT_INPUT_TYPE_TEXT),
weak_ptr_factory_(this) {
@@ -117,7 +116,6 @@ Textfield::Textfield(StyleFlags style)
use_default_background_color_(true),
horizontal_margins_were_set_(false),
vertical_margins_were_set_(false),
- vertical_alignment_(gfx::ALIGN_VCENTER),
placeholder_text_color_(kDefaultPlaceholderTextColor),
text_input_type_(ui::TEXT_INPUT_TYPE_TEXT),
weak_ptr_factory_(this) {
@@ -307,12 +305,6 @@ void Textfield::SetVerticalMargins(int top, int bottom) {
PreferredSizeChanged();
}
-void Textfield::SetVerticalAlignment(gfx::VerticalAlignment alignment) {
- vertical_alignment_ = alignment;
- if (native_wrapper_)
- native_wrapper_->UpdateVerticalAlignment();
-}
-
void Textfield::RemoveBorder() {
if (!draw_border_)
return;
@@ -356,7 +348,6 @@ void Textfield::UpdateAllProperties() {
native_wrapper_->UpdateIsObscured();
native_wrapper_->UpdateHorizontalMargins();
native_wrapper_->UpdateVerticalMargins();
- native_wrapper_->UpdateVerticalAlignment();
}
}
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698