| 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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 } | 902 } |
| 903 | 903 |
| 904 void HTMLInputElement::copyNonAttributePropertiesFromElement(const Element& sour
ce) | 904 void HTMLInputElement::copyNonAttributePropertiesFromElement(const Element& sour
ce) |
| 905 { | 905 { |
| 906 const HTMLInputElement& sourceElement = static_cast<const HTMLInputElement&>
(source); | 906 const HTMLInputElement& sourceElement = static_cast<const HTMLInputElement&>
(source); |
| 907 | 907 |
| 908 m_valueIfDirty = sourceElement.m_valueIfDirty; | 908 m_valueIfDirty = sourceElement.m_valueIfDirty; |
| 909 setChecked(sourceElement.m_isChecked); | 909 setChecked(sourceElement.m_isChecked); |
| 910 m_reflectsCheckedAttribute = sourceElement.m_reflectsCheckedAttribute; | 910 m_reflectsCheckedAttribute = sourceElement.m_reflectsCheckedAttribute; |
| 911 m_isIndeterminate = sourceElement.m_isIndeterminate; | 911 m_isIndeterminate = sourceElement.m_isIndeterminate; |
| 912 m_inputType->copyNonAttributeProperties(sourceElement); | |
| 913 | 912 |
| 914 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); | 913 HTMLTextFormControlElement::copyNonAttributePropertiesFromElement(source); |
| 915 | 914 |
| 916 m_needsToUpdateViewValue = true; | 915 m_needsToUpdateViewValue = true; |
| 917 m_inputTypeView->updateView(); | 916 m_inputTypeView->updateView(); |
| 918 } | 917 } |
| 919 | 918 |
| 920 String HTMLInputElement::value() const | 919 String HTMLInputElement::value() const |
| 921 { | 920 { |
| 922 String value; | 921 String value; |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 exceptionState.throwDOMException(IndexSizeError, "The value provided is
0, which is an invalid size."); | 1312 exceptionState.throwDOMException(IndexSizeError, "The value provided is
0, which is an invalid size."); |
| 1314 else | 1313 else |
| 1315 setSize(size); | 1314 setSize(size); |
| 1316 } | 1315 } |
| 1317 | 1316 |
| 1318 KURL HTMLInputElement::src() const | 1317 KURL HTMLInputElement::src() const |
| 1319 { | 1318 { |
| 1320 return document().completeURL(fastGetAttribute(srcAttr)); | 1319 return document().completeURL(fastGetAttribute(srcAttr)); |
| 1321 } | 1320 } |
| 1322 | 1321 |
| 1323 FileList* HTMLInputElement::files() const | 1322 FileList* HTMLInputElement::files() |
| 1324 { | 1323 { |
| 1325 return m_inputType->files(); | 1324 return m_inputType->files(); |
| 1326 } | 1325 } |
| 1327 | 1326 |
| 1328 void HTMLInputElement::setFiles(PassRefPtrWillBeRawPtr<FileList> files) | 1327 void HTMLInputElement::setFiles(PassRefPtrWillBeRawPtr<FileList> files) |
| 1329 { | 1328 { |
| 1330 m_inputType->setFiles(files); | 1329 m_inputType->setFiles(files); |
| 1331 } | 1330 } |
| 1332 | 1331 |
| 1333 bool HTMLInputElement::receiveDroppedFiles(const DragData* dragData) | 1332 bool HTMLInputElement::receiveDroppedFiles(const DragData* dragData) |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1877 } | 1876 } |
| 1878 | 1877 |
| 1879 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1878 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 1880 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1879 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1881 { | 1880 { |
| 1882 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1881 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1883 } | 1882 } |
| 1884 #endif | 1883 #endif |
| 1885 | 1884 |
| 1886 } // namespace | 1885 } // namespace |
| OLD | NEW |