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

Side by Side Diff: Source/core/html/HTMLTextAreaElement.cpp

Issue 426593011: Set autofilled property to false when edit the autofilled text in textarea (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: put back the file that was removed by mistake. Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/forms/textarea/edit-autofilled-text-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 { 263 {
264 if (LocalFrame* frame = document().frame()) 264 if (LocalFrame* frame = document().frame())
265 frame->spellChecker().didBeginEditing(this); 265 frame->spellChecker().didBeginEditing(this);
266 } 266 }
267 267
268 void HTMLTextAreaElement::subtreeHasChanged() 268 void HTMLTextAreaElement::subtreeHasChanged()
269 { 269 {
270 setChangedSinceLastFormControlChangeEvent(true); 270 setChangedSinceLastFormControlChangeEvent(true);
271 m_valueIsUpToDate = false; 271 m_valueIsUpToDate = false;
272 setNeedsValidityCheck(); 272 setNeedsValidityCheck();
273 setAutofilled(false);
273 274
274 if (!focused()) 275 if (!focused())
275 return; 276 return;
276 277
277 // When typing in a textarea, childrenChanged is not called, so we need to f orce the directionality check. 278 // When typing in a textarea, childrenChanged is not called, so we need to f orce the directionality check.
278 calculateAndAdjustDirectionality(); 279 calculateAndAdjustDirectionality();
279 280
280 ASSERT(document().isActive()); 281 ASSERT(document().isActive());
281 document().frameHost()->chrome().client().didChangeValueInTextField(*this); 282 document().frameHost()->chrome().client().didChangeValueInTextField(*this);
282 } 283 }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 { 566 {
566 return true; 567 return true;
567 } 568 }
568 569
569 bool HTMLTextAreaElement::supportsAutofocus() const 570 bool HTMLTextAreaElement::supportsAutofocus() const
570 { 571 {
571 return true; 572 return true;
572 } 573 }
573 574
574 } 575 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/textarea/edit-autofilled-text-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698