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