| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 , m_stateRestored(false) | 121 , m_stateRestored(false) |
| 122 , m_parsingInProgress(createdByParser) | 122 , m_parsingInProgress(createdByParser) |
| 123 , m_valueAttributeWasUpdatedAfterParsing(false) | 123 , m_valueAttributeWasUpdatedAfterParsing(false) |
| 124 , m_canReceiveDroppedFiles(false) | 124 , m_canReceiveDroppedFiles(false) |
| 125 , m_hasTouchEventHandler(false) | 125 , m_hasTouchEventHandler(false) |
| 126 , m_shouldRevealPassword(false) | 126 , m_shouldRevealPassword(false) |
| 127 , m_needsToUpdateViewValue(true) | 127 , m_needsToUpdateViewValue(true) |
| 128 , m_inputType(InputType::createText(*this)) | 128 , m_inputType(InputType::createText(*this)) |
| 129 , m_inputTypeView(m_inputType) | 129 , m_inputTypeView(m_inputType) |
| 130 { | 130 { |
| 131 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 131 setHasCustomStyleCallbacks(); | 132 setHasCustomStyleCallbacks(); |
| 133 #endif |
| 132 } | 134 } |
| 133 | 135 |
| 134 PassRefPtrWillBeRawPtr<HTMLInputElement> HTMLInputElement::create(Document& docu
ment, HTMLFormElement* form, bool createdByParser) | 136 PassRefPtrWillBeRawPtr<HTMLInputElement> HTMLInputElement::create(Document& docu
ment, HTMLFormElement* form, bool createdByParser) |
| 135 { | 137 { |
| 136 RefPtrWillBeRawPtr<HTMLInputElement> inputElement = adoptRefWillBeNoop(new H
TMLInputElement(document, form, createdByParser)); | 138 RefPtrWillBeRawPtr<HTMLInputElement> inputElement = adoptRefWillBeNoop(new H
TMLInputElement(document, form, createdByParser)); |
| 137 inputElement->ensureUserAgentShadowRoot(); | 139 inputElement->ensureUserAgentShadowRoot(); |
| 138 return inputElement.release(); | 140 return inputElement.release(); |
| 139 } | 141 } |
| 140 | 142 |
| 141 void HTMLInputElement::trace(Visitor* visitor) | 143 void HTMLInputElement::trace(Visitor* visitor) |
| (...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 bool HTMLInputElement::isInteractiveContent() const | 1824 bool HTMLInputElement::isInteractiveContent() const |
| 1823 { | 1825 { |
| 1824 return m_inputType->isInteractiveContent(); | 1826 return m_inputType->isInteractiveContent(); |
| 1825 } | 1827 } |
| 1826 | 1828 |
| 1827 bool HTMLInputElement::supportsAutofocus() const | 1829 bool HTMLInputElement::supportsAutofocus() const |
| 1828 { | 1830 { |
| 1829 return m_inputType->isInteractiveContent(); | 1831 return m_inputType->isInteractiveContent(); |
| 1830 } | 1832 } |
| 1831 | 1833 |
| 1834 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 1832 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1835 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1833 { | 1836 { |
| 1834 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1837 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1835 } | 1838 } |
| 1839 #endif |
| 1836 | 1840 |
| 1837 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) | 1841 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) |
| 1838 { | 1842 { |
| 1839 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; | 1843 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; |
| 1840 } | 1844 } |
| 1841 | 1845 |
| 1842 void HTMLInputElement::didNotifySubtreeInsertionsToDocument() | 1846 void HTMLInputElement::didNotifySubtreeInsertionsToDocument() |
| 1843 { | 1847 { |
| 1844 listAttributeTargetChanged(); | 1848 listAttributeTargetChanged(); |
| 1845 } | 1849 } |
| 1846 | 1850 |
| 1847 AXObject* HTMLInputElement::popupRootAXObject() | 1851 AXObject* HTMLInputElement::popupRootAXObject() |
| 1848 { | 1852 { |
| 1849 return m_inputTypeView->popupRootAXObject(); | 1853 return m_inputTypeView->popupRootAXObject(); |
| 1850 } | 1854 } |
| 1851 | 1855 |
| 1852 void HTMLInputElement::ensureFallbackContent() | |
| 1853 { | |
| 1854 m_inputTypeView->ensureFallbackContent(); | |
| 1855 } | |
| 1856 | |
| 1857 void HTMLInputElement::ensurePrimaryContent() | |
| 1858 { | |
| 1859 m_inputTypeView->ensurePrimaryContent(); | |
| 1860 } | |
| 1861 | |
| 1862 } // namespace | 1856 } // namespace |
| OLD | NEW |