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

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

Issue 1898403002: [WIP] Implement :dir() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase... other changes too probably Created 4 years, 7 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
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 setChangedSinceLastFormControlChangeEvent(true); 289 setChangedSinceLastFormControlChangeEvent(true);
290 m_valueIsUpToDate = false; 290 m_valueIsUpToDate = false;
291 setNeedsValidityCheck(); 291 setNeedsValidityCheck();
292 setAutofilled(false); 292 setAutofilled(false);
293 updatePlaceholderVisibility(); 293 updatePlaceholderVisibility();
294 294
295 if (!focused()) 295 if (!focused())
296 return; 296 return;
297 297
298 // When typing in a textarea, childrenChanged is not called, so we need to f orce the directionality check. 298 // When typing in a textarea, childrenChanged is not called, so we need to f orce the directionality check.
299 calculateAndAdjustDirectionality(); 299 updateForDirAuto();
300 300
301 ASSERT(document().isActive()); 301 ASSERT(document().isActive());
302 document().frameHost()->chromeClient().didChangeValueInTextField(*this); 302 document().frameHost()->chromeClient().didChangeValueInTextField(*this);
303 } 303 }
304 304
305 void HTMLTextAreaElement::handleBeforeTextInsertedEvent(BeforeTextInsertedEvent* event) const 305 void HTMLTextAreaElement::handleBeforeTextInsertedEvent(BeforeTextInsertedEvent* event) const
306 { 306 {
307 ASSERT(event); 307 ASSERT(event);
308 ASSERT(layoutObject()); 308 ASSERT(layoutObject());
309 int signedMaxLength = maxLength(); 309 int signedMaxLength = maxLength();
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 670
671 void HTMLTextAreaElement::copyNonAttributePropertiesFromElement(const Element& s ource) 671 void HTMLTextAreaElement::copyNonAttributePropertiesFromElement(const Element& s ource)
672 { 672 {
673 const HTMLTextAreaElement& sourceElement = static_cast<const HTMLTextAreaEle ment&>(source); 673 const HTMLTextAreaElement& sourceElement = static_cast<const HTMLTextAreaEle ment&>(source);
674 setValueCommon(sourceElement.value(), DispatchNoEvent, SetSeletion); 674 setValueCommon(sourceElement.value(), DispatchNoEvent, SetSeletion);
675 m_isDirty = sourceElement.m_isDirty; 675 m_isDirty = sourceElement.m_isDirty;
676 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); 676 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source);
677 } 677 }
678 678
679 } // namespace blink 679 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698