| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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| is lazily created when constructed by the parser to avoid | 128 // |m_inputType| is lazily created when constructed by the parser to avoid |
| 129 // constructing unnecessarily a text inputType and its shadow subtree, just | 129 // constructing unnecessarily a text inputType and its shadow subtree, just |
| 130 // to destroy them when the |type| attribute gets set by the parser to | 130 // to destroy them when the |type| attribute gets set by the parser to |
| 131 // something else than 'text'. | 131 // something else than 'text'. |
| 132 , m_inputType(createdByParser ? nullptr : InputType::createText(*this)) | 132 , m_inputType(createdByParser ? nullptr : InputType::createText(*this)) |
| 133 , m_inputTypeView(m_inputType) | 133 , m_inputTypeView(m_inputType) |
| 134 { | 134 { |
| 135 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | |
| 136 setHasCustomStyleCallbacks(); | 135 setHasCustomStyleCallbacks(); |
| 137 #endif | |
| 138 } | 136 } |
| 139 | 137 |
| 140 PassRefPtrWillBeRawPtr<HTMLInputElement> HTMLInputElement::create(Document& docu
ment, HTMLFormElement* form, bool createdByParser) | 138 PassRefPtrWillBeRawPtr<HTMLInputElement> HTMLInputElement::create(Document& docu
ment, HTMLFormElement* form, bool createdByParser) |
| 141 { | 139 { |
| 142 RefPtrWillBeRawPtr<HTMLInputElement> inputElement = adoptRefWillBeNoop(new H
TMLInputElement(document, form, createdByParser)); | 140 RefPtrWillBeRawPtr<HTMLInputElement> inputElement = adoptRefWillBeNoop(new H
TMLInputElement(document, form, createdByParser)); |
| 143 if (!createdByParser) | 141 if (!createdByParser) |
| 144 inputElement->ensureUserAgentShadowRoot(); | 142 inputElement->ensureUserAgentShadowRoot(); |
| 145 return inputElement.release(); | 143 return inputElement.release(); |
| 146 } | 144 } |
| 147 | 145 |
| (...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 bool HTMLInputElement::isInteractiveContent() const | 1867 bool HTMLInputElement::isInteractiveContent() const |
| 1870 { | 1868 { |
| 1871 return m_inputType->isInteractiveContent(); | 1869 return m_inputType->isInteractiveContent(); |
| 1872 } | 1870 } |
| 1873 | 1871 |
| 1874 bool HTMLInputElement::supportsAutofocus() const | 1872 bool HTMLInputElement::supportsAutofocus() const |
| 1875 { | 1873 { |
| 1876 return m_inputType->isInteractiveContent(); | 1874 return m_inputType->isInteractiveContent(); |
| 1877 } | 1875 } |
| 1878 | 1876 |
| 1879 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | |
| 1880 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1877 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1881 { | 1878 { |
| 1882 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1879 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1883 } | 1880 } |
| 1884 #endif | |
| 1885 | 1881 |
| 1886 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) | 1882 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) |
| 1887 { | 1883 { |
| 1888 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; | 1884 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; |
| 1889 } | 1885 } |
| 1890 | 1886 |
| 1891 void HTMLInputElement::didNotifySubtreeInsertionsToDocument() | 1887 void HTMLInputElement::didNotifySubtreeInsertionsToDocument() |
| 1892 { | 1888 { |
| 1893 listAttributeTargetChanged(); | 1889 listAttributeTargetChanged(); |
| 1894 } | 1890 } |
| 1895 | 1891 |
| 1896 AXObject* HTMLInputElement::popupRootAXObject() | 1892 AXObject* HTMLInputElement::popupRootAXObject() |
| 1897 { | 1893 { |
| 1898 return m_inputTypeView->popupRootAXObject(); | 1894 return m_inputTypeView->popupRootAXObject(); |
| 1899 } | 1895 } |
| 1900 | 1896 |
| 1897 void HTMLInputElement::ensureFallbackContent() |
| 1898 { |
| 1899 m_inputTypeView->ensureFallbackContent(); |
| 1900 } |
| 1901 |
| 1902 void HTMLInputElement::ensurePrimaryContent() |
| 1903 { |
| 1904 m_inputTypeView->ensurePrimaryContent(); |
| 1905 } |
| 1906 |
| 1907 bool HTMLInputElement::hasFallbackContent() const |
| 1908 { |
| 1909 return m_inputTypeView->hasFallbackContent(); |
| 1910 } |
| 1901 } // namespace | 1911 } // namespace |
| OLD | NEW |