| 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 userAgentShadowRoot()->removeChild(placeholder); | 517 userAgentShadowRoot()->removeChild(placeholder); |
| 518 return; | 518 return; |
| 519 } | 519 } |
| 520 if (!placeholder) { | 520 if (!placeholder) { |
| 521 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document()); | 521 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document()); |
| 522 placeholder = newElement.get(); | 522 placeholder = newElement.get(); |
| 523 placeholder->setPseudo(AtomicString("-webkit-input-placeholder", AtomicS
tring::ConstructFromLiteral)); | 523 placeholder->setPseudo(AtomicString("-webkit-input-placeholder", AtomicS
tring::ConstructFromLiteral)); |
| 524 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder()); | 524 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder()); |
| 525 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex
tSibling()); | 525 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex
tSibling()); |
| 526 } | 526 } |
| 527 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); | 527 placeholder->setTextContent(placeholderText); |
| 528 } | 528 } |
| 529 | 529 |
| 530 bool HTMLTextAreaElement::isInteractiveContent() const | 530 bool HTMLTextAreaElement::isInteractiveContent() const |
| 531 { | 531 { |
| 532 return true; | 532 return true; |
| 533 } | 533 } |
| 534 | 534 |
| 535 } | 535 } |
| OLD | NEW |