Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp |
| index 6d0f1d2d18e18ad9e9e894197a3a07c7756fea03..4055cc0f6a41f74732161f509f3870dc98f7fab9 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp |
| @@ -1718,8 +1718,7 @@ void LayoutText::SecureText(UChar mask) { |
| void LayoutText::SetText(PassRefPtr<StringImpl> text, bool force) { |
| DCHECK(text); |
| - bool equal = Equal(text_.Impl(), text.Get()); |
| - if (equal && !force) |
| + if (!force && Equal(text_.Impl(), text.Get())) |
|
dmazzoni
2017/05/12 06:46:15
Note that the changes in this file are just a reve
|
| return; |
| SetTextInternal(std::move(text)); |
| @@ -1732,14 +1731,8 @@ void LayoutText::SetText(PassRefPtr<StringImpl> text, bool force) { |
| LayoutInvalidationReason::kTextChanged); |
| known_to_have_no_overflow_and_no_fallback_fonts_ = false; |
| - // Don't bother updating the AX tree if there's no change. Otherwise, when |
| - // typing in password fields, we would announce each "dot" twice: once when a |
| - // character is typed, and second when that character is hidden. |
| - if (!equal) { |
| - AXObjectCache* cache = GetDocument().ExistingAXObjectCache(); |
| - if (cache) |
| - cache->TextChanged(this); |
| - } |
| + if (AXObjectCache* cache = GetDocument().ExistingAXObjectCache()) |
| + cache->TextChanged(this); |
| TextAutosizer* text_autosizer = GetDocument().GetTextAutosizer(); |
| if (text_autosizer) |