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, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
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 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 m_isIndeterminate(false), | 111 m_isIndeterminate(false), |
112 m_isActivatedSubmit(false), | 112 m_isActivatedSubmit(false), |
113 m_autocomplete(Uninitialized), | 113 m_autocomplete(Uninitialized), |
114 m_hasNonEmptyList(false), | 114 m_hasNonEmptyList(false), |
115 m_stateRestored(false), | 115 m_stateRestored(false), |
116 m_parsingInProgress(createdByParser), | 116 m_parsingInProgress(createdByParser), |
117 m_valueAttributeWasUpdatedAfterParsing(false), | 117 m_valueAttributeWasUpdatedAfterParsing(false), |
118 m_canReceiveDroppedFiles(false), | 118 m_canReceiveDroppedFiles(false), |
119 m_shouldRevealPassword(false), | 119 m_shouldRevealPassword(false), |
120 m_needsToUpdateViewValue(true), | 120 m_needsToUpdateViewValue(true), |
121 m_isPlaceholderVisible(false) | 121 m_isPlaceholderVisible(false), |
122 // |m_inputType| is lazily created when constructed by the parser to avoid | 122 // |m_inputType| is lazily created when constructed by the parser to avoid |
123 // constructing unnecessarily a text inputType and its shadow subtree, jus
t | 123 // constructing unnecessarily a text inputType and its shadow subtree, jus
t |
124 // to destroy them when the |type| attribute gets set by the parser to | 124 // to destroy them when the |type| attribute gets set by the parser to |
125 // something else than 'text'. | 125 // something else than 'text'. |
126 , | |
127 m_inputType(createdByParser ? nullptr : InputType::createText(*this)), | 126 m_inputType(createdByParser ? nullptr : InputType::createText(*this)), |
128 m_inputTypeView(m_inputType ? m_inputType->createView() : nullptr) { | 127 m_inputTypeView(m_inputType ? m_inputType->createView() : nullptr) { |
129 setHasCustomStyleCallbacks(); | 128 setHasCustomStyleCallbacks(); |
130 } | 129 } |
131 | 130 |
132 HTMLInputElement* HTMLInputElement::create(Document& document, | 131 HTMLInputElement* HTMLInputElement::create(Document& document, |
133 HTMLFormElement* form, | 132 HTMLFormElement* form, |
134 bool createdByParser) { | 133 bool createdByParser) { |
135 HTMLInputElement* inputElement = | 134 HTMLInputElement* inputElement = |
136 new HTMLInputElement(document, form, createdByParser); | 135 new HTMLInputElement(document, form, createdByParser); |
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1902 | 1901 |
1903 bool HTMLInputElement::hasFallbackContent() const { | 1902 bool HTMLInputElement::hasFallbackContent() const { |
1904 return m_inputTypeView->hasFallbackContent(); | 1903 return m_inputTypeView->hasFallbackContent(); |
1905 } | 1904 } |
1906 | 1905 |
1907 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { | 1906 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { |
1908 return m_inputType->setFilesFromPaths(paths); | 1907 return m_inputType->setFilesFromPaths(paths); |
1909 } | 1908 } |
1910 | 1909 |
1911 } // namespace blink | 1910 } // namespace blink |
OLD | NEW |