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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 renderer()->setNeedsLayoutAndPrefWidthsRecalc(); | 197 renderer()->setNeedsLayoutAndPrefWidthsRecalc(); |
198 } | 198 } |
199 } else if (name == accesskeyAttr) { | 199 } else if (name == accesskeyAttr) { |
200 // ignore for the moment | 200 // ignore for the moment |
201 } else if (name == maxlengthAttr) | 201 } else if (name == maxlengthAttr) |
202 setNeedsValidityCheck(); | 202 setNeedsValidityCheck(); |
203 else | 203 else |
204 HTMLTextFormControlElement::parseAttribute(name, value); | 204 HTMLTextFormControlElement::parseAttribute(name, value); |
205 } | 205 } |
206 | 206 |
207 RenderObject* HTMLTextAreaElement::createRenderer(RenderArena* arena, RenderStyl
e*) | 207 RenderObject* HTMLTextAreaElement::createRenderer(RenderStyle*) |
208 { | 208 { |
209 return new (arena) RenderTextControlMultiLine(this); | 209 return new RenderTextControlMultiLine(this); |
210 } | 210 } |
211 | 211 |
212 bool HTMLTextAreaElement::appendFormData(FormDataList& encoding, bool) | 212 bool HTMLTextAreaElement::appendFormData(FormDataList& encoding, bool) |
213 { | 213 { |
214 if (name().isEmpty()) | 214 if (name().isEmpty()) |
215 return false; | 215 return false; |
216 | 216 |
217 document()->updateLayout(); | 217 document()->updateLayout(); |
218 | 218 |
219 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); | 219 const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : valu
e(); |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 RefPtr<HTMLDivElement> placeholder = HTMLDivElement::create(document()); | 549 RefPtr<HTMLDivElement> placeholder = HTMLDivElement::create(document()); |
550 m_placeholder = placeholder.get(); | 550 m_placeholder = placeholder.get(); |
551 m_placeholder->setPseudo(AtomicString("-webkit-input-placeholder", Atomi
cString::ConstructFromLiteral)); | 551 m_placeholder->setPseudo(AtomicString("-webkit-input-placeholder", Atomi
cString::ConstructFromLiteral)); |
552 userAgentShadowRoot()->insertBefore(m_placeholder, innerTextElement()->n
extSibling(), ASSERT_NO_EXCEPTION); | 552 userAgentShadowRoot()->insertBefore(m_placeholder, innerTextElement()->n
extSibling(), ASSERT_NO_EXCEPTION); |
553 } | 553 } |
554 m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION); | 554 m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION); |
555 fixPlaceholderRenderer(m_placeholder, innerTextElement()); | 555 fixPlaceholderRenderer(m_placeholder, innerTextElement()); |
556 } | 556 } |
557 | 557 |
558 } | 558 } |
OLD | NEW |