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 12 matching lines...) Expand all Loading... |
23 * | 23 * |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "HTMLTextAreaElement.h" | 27 #include "HTMLTextAreaElement.h" |
28 | 28 |
29 #include "Attribute.h" | 29 #include "Attribute.h" |
30 #include "BeforeTextInsertedEvent.h" | 30 #include "BeforeTextInsertedEvent.h" |
31 #include "CSSValueKeywords.h" | 31 #include "CSSValueKeywords.h" |
32 #include "Document.h" | 32 #include "Document.h" |
| 33 #include "Editor.h" |
33 #include "ElementShadow.h" | 34 #include "ElementShadow.h" |
34 #include "Event.h" | 35 #include "Event.h" |
| 36 #include "EventHandler.h" |
35 #include "EventNames.h" | 37 #include "EventNames.h" |
36 #include "ExceptionCode.h" | 38 #include "ExceptionCode.h" |
37 #include "ExceptionCodePlaceholder.h" | 39 #include "ExceptionCodePlaceholder.h" |
38 #include "FormController.h" | 40 #include "FormController.h" |
39 #include "FormDataList.h" | 41 #include "FormDataList.h" |
40 #include "Frame.h" | 42 #include "Frame.h" |
| 43 #include "FrameSelection.h" |
41 #include "HTMLNames.h" | 44 #include "HTMLNames.h" |
42 #include "LocalizedStrings.h" | 45 #include "LocalizedStrings.h" |
43 #include "RenderTextControlMultiLine.h" | 46 #include "RenderTextControlMultiLine.h" |
44 #include "ShadowRoot.h" | 47 #include "ShadowRoot.h" |
45 #include "Text.h" | 48 #include "Text.h" |
46 #include "TextControlInnerElements.h" | 49 #include "TextControlInnerElements.h" |
47 #include "TextIterator.h" | 50 #include "TextIterator.h" |
48 #include <wtf/StdLibExtras.h> | 51 #include <wtf/StdLibExtras.h> |
49 #include <wtf/text/StringBuilder.h> | 52 #include <wtf/text/StringBuilder.h> |
50 | 53 |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 RefPtr<HTMLDivElement> placeholder = HTMLDivElement::create(document()); | 555 RefPtr<HTMLDivElement> placeholder = HTMLDivElement::create(document()); |
553 m_placeholder = placeholder.get(); | 556 m_placeholder = placeholder.get(); |
554 m_placeholder->setPseudo(AtomicString("-webkit-input-placeholder", Atomi
cString::ConstructFromLiteral)); | 557 m_placeholder->setPseudo(AtomicString("-webkit-input-placeholder", Atomi
cString::ConstructFromLiteral)); |
555 userAgentShadowRoot()->insertBefore(m_placeholder, innerTextElement()->n
extSibling(), ASSERT_NO_EXCEPTION); | 558 userAgentShadowRoot()->insertBefore(m_placeholder, innerTextElement()->n
extSibling(), ASSERT_NO_EXCEPTION); |
556 } | 559 } |
557 m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION); | 560 m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION); |
558 fixPlaceholderRenderer(m_placeholder, innerTextElement()); | 561 fixPlaceholderRenderer(m_placeholder, innerTextElement()); |
559 } | 562 } |
560 | 563 |
561 } | 564 } |
OLD | NEW |