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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 : HTMLTextFormControlElement(tagName, document, form) | 102 : HTMLTextFormControlElement(tagName, document, form) |
103 , m_size(defaultSize) | 103 , m_size(defaultSize) |
104 , m_maxLength(maximumLength) | 104 , m_maxLength(maximumLength) |
105 , m_maxResults(-1) | 105 , m_maxResults(-1) |
106 , m_isChecked(false) | 106 , m_isChecked(false) |
107 , m_reflectsCheckedAttribute(true) | 107 , m_reflectsCheckedAttribute(true) |
108 , m_isIndeterminate(false) | 108 , m_isIndeterminate(false) |
109 , m_hasType(false) | 109 , m_hasType(false) |
110 , m_isActivatedSubmit(false) | 110 , m_isActivatedSubmit(false) |
111 , m_autocomplete(Uninitialized) | 111 , m_autocomplete(Uninitialized) |
112 , m_isAutofilled(false) | |
113 , m_hasNonEmptyList(false) | 112 , m_hasNonEmptyList(false) |
114 , m_stateRestored(false) | 113 , m_stateRestored(false) |
115 , m_parsingInProgress(createdByParser) | 114 , m_parsingInProgress(createdByParser) |
116 , m_valueAttributeWasUpdatedAfterParsing(false) | 115 , m_valueAttributeWasUpdatedAfterParsing(false) |
117 , m_wasModifiedByUser(false) | 116 , m_wasModifiedByUser(false) |
118 , m_canReceiveDroppedFiles(false) | 117 , m_canReceiveDroppedFiles(false) |
119 , m_hasTouchEventHandler(false) | 118 , m_hasTouchEventHandler(false) |
120 , m_inputType(InputType::createText(this)) | 119 , m_inputType(InputType::createText(this)) |
121 , m_inputTypeView(m_inputType) | 120 , m_inputTypeView(m_inputType) |
122 { | 121 { |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 void HTMLInputElement::setActivatedSubmit(bool flag) | 832 void HTMLInputElement::setActivatedSubmit(bool flag) |
834 { | 833 { |
835 m_isActivatedSubmit = flag; | 834 m_isActivatedSubmit = flag; |
836 } | 835 } |
837 | 836 |
838 bool HTMLInputElement::appendFormData(FormDataList& encoding, bool multipart) | 837 bool HTMLInputElement::appendFormData(FormDataList& encoding, bool multipart) |
839 { | 838 { |
840 return m_inputType->isFormDataAppendable() && m_inputType->appendFormData(en
coding, multipart); | 839 return m_inputType->isFormDataAppendable() && m_inputType->appendFormData(en
coding, multipart); |
841 } | 840 } |
842 | 841 |
843 void HTMLInputElement::reset() | 842 void HTMLInputElement::resetImpl() |
844 { | 843 { |
845 if (m_inputType->storesValueSeparateFromAttribute()) | 844 if (m_inputType->storesValueSeparateFromAttribute()) |
846 setValue(String()); | 845 setValue(String()); |
847 | 846 |
848 setAutofilled(false); | |
849 setChecked(hasAttribute(checkedAttr)); | 847 setChecked(hasAttribute(checkedAttr)); |
850 m_reflectsCheckedAttribute = true; | 848 m_reflectsCheckedAttribute = true; |
851 } | 849 } |
852 | 850 |
853 bool HTMLInputElement::isTextField() const | 851 bool HTMLInputElement::isTextField() const |
854 { | 852 { |
855 return m_inputType->isTextField(); | 853 return m_inputType->isTextField(); |
856 } | 854 } |
857 | 855 |
858 bool HTMLInputElement::isTextType() const | 856 bool HTMLInputElement::isTextType() const |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1315 es.throwUninformativeAndGenericDOMException(IndexSizeError); | 1313 es.throwUninformativeAndGenericDOMException(IndexSizeError); |
1316 else | 1314 else |
1317 setSize(size); | 1315 setSize(size); |
1318 } | 1316 } |
1319 | 1317 |
1320 KURL HTMLInputElement::src() const | 1318 KURL HTMLInputElement::src() const |
1321 { | 1319 { |
1322 return document().completeURL(fastGetAttribute(srcAttr)); | 1320 return document().completeURL(fastGetAttribute(srcAttr)); |
1323 } | 1321 } |
1324 | 1322 |
1325 void HTMLInputElement::setAutofilled(bool autofilled) | |
1326 { | |
1327 if (autofilled == m_isAutofilled) | |
1328 return; | |
1329 | |
1330 m_isAutofilled = autofilled; | |
1331 setNeedsStyleRecalc(); | |
1332 } | |
1333 | |
1334 FileList* HTMLInputElement::files() | 1323 FileList* HTMLInputElement::files() |
1335 { | 1324 { |
1336 return m_inputType->files(); | 1325 return m_inputType->files(); |
1337 } | 1326 } |
1338 | 1327 |
1339 void HTMLInputElement::setFiles(PassRefPtr<FileList> files) | 1328 void HTMLInputElement::setFiles(PassRefPtr<FileList> files) |
1340 { | 1329 { |
1341 m_inputType->setFiles(files); | 1330 m_inputType->setFiles(files); |
1342 } | 1331 } |
1343 | 1332 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1872 } | 1861 } |
1873 | 1862 |
1874 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1863 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
1875 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1864 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
1876 { | 1865 { |
1877 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1866 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
1878 } | 1867 } |
1879 #endif | 1868 #endif |
1880 | 1869 |
1881 } // namespace | 1870 } // namespace |
OLD | NEW |