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 22 matching lines...) Expand all Loading... |
33 #include "core/dom/BeforeTextInsertedEvent.h" | 33 #include "core/dom/BeforeTextInsertedEvent.h" |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/dom/Event.h" | 35 #include "core/dom/Event.h" |
36 #include "core/dom/EventNames.h" | 36 #include "core/dom/EventNames.h" |
37 #include "core/dom/ExceptionCode.h" | 37 #include "core/dom/ExceptionCode.h" |
38 #include "core/dom/Text.h" | 38 #include "core/dom/Text.h" |
39 #include "core/dom/shadow/ShadowRoot.h" | 39 #include "core/dom/shadow/ShadowRoot.h" |
40 #include "core/editing/Editor.h" | 40 #include "core/editing/Editor.h" |
41 #include "core/editing/FrameSelection.h" | 41 #include "core/editing/FrameSelection.h" |
42 #include "core/editing/TextIterator.h" | 42 #include "core/editing/TextIterator.h" |
43 #include "core/html/FormController.h" | |
44 #include "core/html/FormDataList.h" | 43 #include "core/html/FormDataList.h" |
| 44 #include "core/html/forms/FormController.h" |
45 #include "core/html/shadow/ShadowElementNames.h" | 45 #include "core/html/shadow/ShadowElementNames.h" |
46 #include "core/html/shadow/TextControlInnerElements.h" | 46 #include "core/html/shadow/TextControlInnerElements.h" |
47 #include "core/page/Frame.h" | 47 #include "core/page/Frame.h" |
48 #include "core/platform/LocalizedStrings.h" | 48 #include "core/platform/LocalizedStrings.h" |
49 #include "core/platform/text/PlatformLocale.h" | 49 #include "core/platform/text/PlatformLocale.h" |
50 #include "core/rendering/RenderTextControlMultiLine.h" | 50 #include "core/rendering/RenderTextControlMultiLine.h" |
51 #include "wtf/StdLibExtras.h" | 51 #include "wtf/StdLibExtras.h" |
52 #include "wtf/text/StringBuilder.h" | 52 #include "wtf/text/StringBuilder.h" |
53 | 53 |
54 namespace WebCore { | 54 namespace WebCore { |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document()); | 538 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document()); |
539 placeholder = newElement.get(); | 539 placeholder = newElement.get(); |
540 placeholder->setPart(AtomicString("-webkit-input-placeholder", AtomicStr
ing::ConstructFromLiteral)); | 540 placeholder->setPart(AtomicString("-webkit-input-placeholder", AtomicStr
ing::ConstructFromLiteral)); |
541 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder()); | 541 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder()); |
542 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex
tSibling()); | 542 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex
tSibling()); |
543 } | 543 } |
544 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); | 544 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); |
545 } | 545 } |
546 | 546 |
547 } | 547 } |
OLD | NEW |