| 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 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1833 | 1833 |
| 1834 StepRange stepRange = createStepRange(RejectAny); | 1834 StepRange stepRange = createStepRange(RejectAny); |
| 1835 if (stepRange.hasStep()) { | 1835 if (stepRange.hasStep()) { |
| 1836 parameters.step = stepRange.step().toDouble(); | 1836 parameters.step = stepRange.step().toDouble(); |
| 1837 parameters.stepBase = stepRange.stepBase().toDouble(); | 1837 parameters.stepBase = stepRange.stepBase().toDouble(); |
| 1838 } else { | 1838 } else { |
| 1839 parameters.step = 1.0; | 1839 parameters.step = 1.0; |
| 1840 parameters.stepBase = 0; | 1840 parameters.stepBase = 0; |
| 1841 } | 1841 } |
| 1842 | 1842 |
| 1843 parameters.anchorRectInRootView = document().view()->contentsToRootView(pixe
lSnappedBoundingBox()); | 1843 parameters.anchorRectInRootFrame = document().view()->contentsToRootFrame(pi
xelSnappedBoundingBox()); |
| 1844 parameters.anchorRectInScreen = document().view()->contentsToScreen(pixelSna
ppedBoundingBox()); |
| 1844 parameters.currentValue = value(); | 1845 parameters.currentValue = value(); |
| 1845 parameters.doubleValue = m_inputType->valueAsDouble(); | 1846 parameters.doubleValue = m_inputType->valueAsDouble(); |
| 1846 parameters.isAnchorElementRTL = m_inputType->computedTextDirection() == RTL; | 1847 parameters.isAnchorElementRTL = m_inputType->computedTextDirection() == RTL; |
| 1847 if (HTMLDataListElement* dataList = this->dataList()) { | 1848 if (HTMLDataListElement* dataList = this->dataList()) { |
| 1848 RefPtrWillBeRawPtr<HTMLDataListOptionsCollection> options = dataList->op
tions(); | 1849 RefPtrWillBeRawPtr<HTMLDataListOptionsCollection> options = dataList->op
tions(); |
| 1849 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i)
{ | 1850 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i)
{ |
| 1850 if (!isValidValue(option->value())) | 1851 if (!isValidValue(option->value())) |
| 1851 continue; | 1852 continue; |
| 1852 DateTimeSuggestion suggestion; | 1853 DateTimeSuggestion suggestion; |
| 1853 suggestion.value = m_inputType->parseToNumber(option->value(), Decim
al::nan()).toDouble(); | 1854 suggestion.value = m_inputType->parseToNumber(option->value(), Decim
al::nan()).toDouble(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1912 void HTMLInputElement::ensurePrimaryContent() | 1913 void HTMLInputElement::ensurePrimaryContent() |
| 1913 { | 1914 { |
| 1914 m_inputTypeView->ensurePrimaryContent(); | 1915 m_inputTypeView->ensurePrimaryContent(); |
| 1915 } | 1916 } |
| 1916 | 1917 |
| 1917 bool HTMLInputElement::hasFallbackContent() const | 1918 bool HTMLInputElement::hasFallbackContent() const |
| 1918 { | 1919 { |
| 1919 return m_inputTypeView->hasFallbackContent(); | 1920 return m_inputTypeView->hasFallbackContent(); |
| 1920 } | 1921 } |
| 1921 } // namespace | 1922 } // namespace |
| OLD | NEW |