| 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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 9 * Copyright (C) 2010 Google Inc. All rights reserved. | 9 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| (...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1816 } else { | 1816 } else { |
| 1817 parameters.step = 1.0; | 1817 parameters.step = 1.0; |
| 1818 parameters.stepBase = 0; | 1818 parameters.stepBase = 0; |
| 1819 } | 1819 } |
| 1820 | 1820 |
| 1821 parameters.anchorRectInScreen = | 1821 parameters.anchorRectInScreen = |
| 1822 document().view()->contentsToScreen(pixelSnappedBoundingBox()); | 1822 document().view()->contentsToScreen(pixelSnappedBoundingBox()); |
| 1823 parameters.currentValue = value(); | 1823 parameters.currentValue = value(); |
| 1824 parameters.doubleValue = m_inputType->valueAsDouble(); | 1824 parameters.doubleValue = m_inputType->valueAsDouble(); |
| 1825 parameters.isAnchorElementRTL = | 1825 parameters.isAnchorElementRTL = |
| 1826 m_inputTypeView->computedTextDirection() == RTL; | 1826 m_inputTypeView->computedTextDirection() == TextDirection::Rtl; |
| 1827 if (HTMLDataListElement* dataList = this->dataList()) { | 1827 if (HTMLDataListElement* dataList = this->dataList()) { |
| 1828 HTMLDataListOptionsCollection* options = dataList->options(); | 1828 HTMLDataListOptionsCollection* options = dataList->options(); |
| 1829 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i) { | 1829 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i) { |
| 1830 if (!isValidValue(option->value())) | 1830 if (!isValidValue(option->value())) |
| 1831 continue; | 1831 continue; |
| 1832 DateTimeSuggestion suggestion; | 1832 DateTimeSuggestion suggestion; |
| 1833 suggestion.value = | 1833 suggestion.value = |
| 1834 m_inputType->parseToNumber(option->value(), Decimal::nan()) | 1834 m_inputType->parseToNumber(option->value(), Decimal::nan()) |
| 1835 .toDouble(); | 1835 .toDouble(); |
| 1836 if (std::isnan(suggestion.value)) | 1836 if (std::isnan(suggestion.value)) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1891 | 1891 |
| 1892 bool HTMLInputElement::hasFallbackContent() const { | 1892 bool HTMLInputElement::hasFallbackContent() const { |
| 1893 return m_inputTypeView->hasFallbackContent(); | 1893 return m_inputTypeView->hasFallbackContent(); |
| 1894 } | 1894 } |
| 1895 | 1895 |
| 1896 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { | 1896 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { |
| 1897 return m_inputType->setFilesFromPaths(paths); | 1897 return m_inputType->setFilesFromPaths(paths); |
| 1898 } | 1898 } |
| 1899 | 1899 |
| 1900 } // namespace blink | 1900 } // namespace blink |
| OLD | NEW |