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 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1813 parameters.stepBase = stepRange.stepBase().toDouble(); | 1813 parameters.stepBase = stepRange.stepBase().toDouble(); |
1814 } else { | 1814 } else { |
1815 parameters.step = 1.0; | 1815 parameters.step = 1.0; |
1816 parameters.stepBase = 0; | 1816 parameters.stepBase = 0; |
1817 } | 1817 } |
1818 | 1818 |
1819 parameters.anchorRectInScreen = | 1819 parameters.anchorRectInScreen = |
1820 document().view()->contentsToScreen(pixelSnappedBoundingBox()); | 1820 document().view()->contentsToScreen(pixelSnappedBoundingBox()); |
1821 parameters.doubleValue = m_inputType->valueAsDouble(); | 1821 parameters.doubleValue = m_inputType->valueAsDouble(); |
1822 parameters.isAnchorElementRTL = | 1822 parameters.isAnchorElementRTL = |
1823 m_inputTypeView->computedTextDirection() == TextDirection::Rtl; | 1823 m_inputTypeView->computedTextDirection() == TextDirection::kRtl; |
1824 if (HTMLDataListElement* dataList = this->dataList()) { | 1824 if (HTMLDataListElement* dataList = this->dataList()) { |
1825 HTMLDataListOptionsCollection* options = dataList->options(); | 1825 HTMLDataListOptionsCollection* options = dataList->options(); |
1826 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i) { | 1826 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i) { |
1827 if (!isValidValue(option->value())) | 1827 if (!isValidValue(option->value())) |
1828 continue; | 1828 continue; |
1829 DateTimeSuggestion suggestion; | 1829 DateTimeSuggestion suggestion; |
1830 suggestion.value = | 1830 suggestion.value = |
1831 m_inputType->parseToNumber(option->value(), Decimal::nan()) | 1831 m_inputType->parseToNumber(option->value(), Decimal::nan()) |
1832 .toDouble(); | 1832 .toDouble(); |
1833 if (std::isnan(suggestion.value)) | 1833 if (std::isnan(suggestion.value)) |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 | 1888 |
1889 bool HTMLInputElement::hasFallbackContent() const { | 1889 bool HTMLInputElement::hasFallbackContent() const { |
1890 return m_inputTypeView->hasFallbackContent(); | 1890 return m_inputTypeView->hasFallbackContent(); |
1891 } | 1891 } |
1892 | 1892 |
1893 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { | 1893 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { |
1894 return m_inputType->setFilesFromPaths(paths); | 1894 return m_inputType->setFilesFromPaths(paths); |
1895 } | 1895 } |
1896 | 1896 |
1897 } // namespace blink | 1897 } // namespace blink |
OLD | NEW |