| Index: ui/views/corewm/tooltip_aura.cc
|
| diff --git a/ui/views/corewm/tooltip_aura.cc b/ui/views/corewm/tooltip_aura.cc
|
| index 256a4fbfebb78e00a78dce44c0024e6939d722ad..170a7dd01c9006677d432879af8abb125ac3d79f 100644
|
| --- a/ui/views/corewm/tooltip_aura.cc
|
| +++ b/ui/views/corewm/tooltip_aura.cc
|
| @@ -141,11 +141,13 @@ class TooltipAura::TooltipView : public views::View {
|
| ResetDisplayRect();
|
| }
|
|
|
| + size_t GetLineSizeForTest() const {
|
| + return render_text_->line_size_for_test();
|
| + }
|
| +
|
| private:
|
| void ResetDisplayRect() {
|
| - gfx::Insets insets = border()->GetInsets();
|
| - int max_text_width = max_width_ - insets.width();
|
| - render_text_->SetDisplayRect(gfx::Rect(0, 0, max_text_width, 100000));
|
| + render_text_->SetDisplayRect(gfx::Rect(0, 0, max_width_, 100000));
|
| }
|
|
|
| std::unique_ptr<gfx::RenderText> render_text_;
|
| @@ -164,6 +166,10 @@ TooltipAura::~TooltipAura() {
|
| DestroyWidget();
|
| }
|
|
|
| +size_t TooltipAura::GetLineSizeForTest() const {
|
| + return tooltip_view_->GetLineSizeForTest();
|
| +}
|
| +
|
| void TooltipAura::SetTooltipBounds(const gfx::Point& mouse_pos,
|
| const gfx::Size& tooltip_size) {
|
| gfx::Rect tooltip_rect(mouse_pos, tooltip_size);
|
|
|