| OLD | NEW |
| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 { | 368 { |
| 369 updateValue(); | 369 updateValue(); |
| 370 return m_value; | 370 return m_value; |
| 371 } | 371 } |
| 372 | 372 |
| 373 void HTMLTextAreaElement::setValue(const String& value, TextFieldEventBehavior e
ventBehavior) | 373 void HTMLTextAreaElement::setValue(const String& value, TextFieldEventBehavior e
ventBehavior) |
| 374 { | 374 { |
| 375 setValueCommon(value, eventBehavior); | 375 setValueCommon(value, eventBehavior); |
| 376 m_isDirty = true; | 376 m_isDirty = true; |
| 377 if (document().focusedElement() == this) | 377 if (document().focusedElement() == this) |
| 378 document().frameHost()->chromeClient().didUpdateTextOfFocusedElementByNo
nUserInput(); | 378 document().frameHost()->chromeClient().didUpdateTextOfFocusedElementByNo
nUserInput(*document().frame()); |
| 379 } | 379 } |
| 380 | 380 |
| 381 void HTMLTextAreaElement::setNonDirtyValue(const String& value) | 381 void HTMLTextAreaElement::setNonDirtyValue(const String& value) |
| 382 { | 382 { |
| 383 setValueCommon(value, DispatchNoEvent, SetSeletion); | 383 setValueCommon(value, DispatchNoEvent, SetSeletion); |
| 384 m_isDirty = false; | 384 m_isDirty = false; |
| 385 } | 385 } |
| 386 | 386 |
| 387 void HTMLTextAreaElement::setValueCommon(const String& newValue, TextFieldEventB
ehavior eventBehavior, SetValueCommonOption setValueOption) | 387 void HTMLTextAreaElement::setValueCommon(const String& newValue, TextFieldEventB
ehavior eventBehavior, SetValueCommonOption setValueOption) |
| 388 { | 388 { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 | 673 |
| 674 void HTMLTextAreaElement::copyNonAttributePropertiesFromElement(const Element& s
ource) | 674 void HTMLTextAreaElement::copyNonAttributePropertiesFromElement(const Element& s
ource) |
| 675 { | 675 { |
| 676 const HTMLTextAreaElement& sourceElement = static_cast<const HTMLTextAreaEle
ment&>(source); | 676 const HTMLTextAreaElement& sourceElement = static_cast<const HTMLTextAreaEle
ment&>(source); |
| 677 setValueCommon(sourceElement.value(), DispatchNoEvent, SetSeletion); | 677 setValueCommon(sourceElement.value(), DispatchNoEvent, SetSeletion); |
| 678 m_isDirty = sourceElement.m_isDirty; | 678 m_isDirty = sourceElement.m_isDirty; |
| 679 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); | 679 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); |
| 680 } | 680 } |
| 681 | 681 |
| 682 } // namespace blink | 682 } // namespace blink |
| OLD | NEW |