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 24 matching lines...) Expand all Loading... |
35 #include "Event.h" | 35 #include "Event.h" |
36 #include "EventHandler.h" | 36 #include "EventHandler.h" |
37 #include "EventNames.h" | 37 #include "EventNames.h" |
38 #include "ExceptionCode.h" | 38 #include "ExceptionCode.h" |
39 #include "ExceptionCodePlaceholder.h" | 39 #include "ExceptionCodePlaceholder.h" |
40 #include "FormController.h" | 40 #include "FormController.h" |
41 #include "FormDataList.h" | 41 #include "FormDataList.h" |
42 #include "Frame.h" | 42 #include "Frame.h" |
43 #include "FrameSelection.h" | 43 #include "FrameSelection.h" |
44 #include "HTMLNames.h" | 44 #include "HTMLNames.h" |
45 #include "LocalizedStrings.h" | |
46 #include "RenderTextControlMultiLine.h" | 45 #include "RenderTextControlMultiLine.h" |
47 #include "ShadowRoot.h" | 46 #include "ShadowRoot.h" |
48 #include "Text.h" | 47 #include "Text.h" |
49 #include "TextControlInnerElements.h" | 48 #include "TextControlInnerElements.h" |
50 #include "TextIterator.h" | 49 #include "TextIterator.h" |
| 50 #include "core/platform/LocalizedStrings.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 { |
55 | 55 |
56 using namespace HTMLNames; | 56 using namespace HTMLNames; |
57 | 57 |
58 static const int defaultRows = 2; | 58 static const int defaultRows = 2; |
59 static const int defaultCols = 20; | 59 static const int defaultCols = 20; |
60 | 60 |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 RefPtr<HTMLDivElement> placeholder = HTMLDivElement::create(document()); | 555 RefPtr<HTMLDivElement> placeholder = HTMLDivElement::create(document()); |
556 m_placeholder = placeholder.get(); | 556 m_placeholder = placeholder.get(); |
557 m_placeholder->setPseudo(AtomicString("-webkit-input-placeholder", Atomi
cString::ConstructFromLiteral)); | 557 m_placeholder->setPseudo(AtomicString("-webkit-input-placeholder", Atomi
cString::ConstructFromLiteral)); |
558 userAgentShadowRoot()->insertBefore(m_placeholder, innerTextElement()->n
extSibling(), ASSERT_NO_EXCEPTION); | 558 userAgentShadowRoot()->insertBefore(m_placeholder, innerTextElement()->n
extSibling(), ASSERT_NO_EXCEPTION); |
559 } | 559 } |
560 m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION); | 560 m_placeholder->setInnerText(placeholderText, ASSERT_NO_EXCEPTION); |
561 fixPlaceholderRenderer(m_placeholder, innerTextElement()); | 561 fixPlaceholderRenderer(m_placeholder, innerTextElement()); |
562 } | 562 } |
563 | 563 |
564 } | 564 } |
OLD | NEW |