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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 | 1829 |
1830 StepRange stepRange = createStepRange(RejectAny); | 1830 StepRange stepRange = createStepRange(RejectAny); |
1831 if (stepRange.hasStep()) { | 1831 if (stepRange.hasStep()) { |
1832 parameters.step = stepRange.step().toDouble(); | 1832 parameters.step = stepRange.step().toDouble(); |
1833 parameters.stepBase = stepRange.stepBase().toDouble(); | 1833 parameters.stepBase = stepRange.stepBase().toDouble(); |
1834 } else { | 1834 } else { |
1835 parameters.step = 1.0; | 1835 parameters.step = 1.0; |
1836 parameters.stepBase = 0; | 1836 parameters.stepBase = 0; |
1837 } | 1837 } |
1838 | 1838 |
1839 parameters.anchorRectInRootFrame = document().view()->contentsToRootFrame(pi
xelSnappedBoundingBox()); | |
1840 parameters.anchorRectInScreen = document().view()->contentsToScreen(pixelSna
ppedBoundingBox()); | 1839 parameters.anchorRectInScreen = document().view()->contentsToScreen(pixelSna
ppedBoundingBox()); |
1841 parameters.currentValue = value(); | 1840 parameters.currentValue = value(); |
1842 parameters.doubleValue = m_inputType->valueAsDouble(); | 1841 parameters.doubleValue = m_inputType->valueAsDouble(); |
1843 parameters.isAnchorElementRTL = m_inputTypeView->computedTextDirection() ==
RTL; | 1842 parameters.isAnchorElementRTL = m_inputTypeView->computedTextDirection() ==
RTL; |
1844 if (HTMLDataListElement* dataList = this->dataList()) { | 1843 if (HTMLDataListElement* dataList = this->dataList()) { |
1845 HTMLDataListOptionsCollection* options = dataList->options(); | 1844 HTMLDataListOptionsCollection* options = dataList->options(); |
1846 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i)
{ | 1845 for (unsigned i = 0; HTMLOptionElement* option = options->item(i); ++i)
{ |
1847 if (!isValidValue(option->value())) | 1846 if (!isValidValue(option->value())) |
1848 continue; | 1847 continue; |
1849 DateTimeSuggestion suggestion; | 1848 DateTimeSuggestion suggestion; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1909 void HTMLInputElement::ensurePrimaryContent() | 1908 void HTMLInputElement::ensurePrimaryContent() |
1910 { | 1909 { |
1911 m_inputTypeView->ensurePrimaryContent(); | 1910 m_inputTypeView->ensurePrimaryContent(); |
1912 } | 1911 } |
1913 | 1912 |
1914 bool HTMLInputElement::hasFallbackContent() const | 1913 bool HTMLInputElement::hasFallbackContent() const |
1915 { | 1914 { |
1916 return m_inputTypeView->hasFallbackContent(); | 1915 return m_inputTypeView->hasFallbackContent(); |
1917 } | 1916 } |
1918 } // namespace blink | 1917 } // namespace blink |
OLD | NEW |