| 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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 HTMLTextFormControlElement::defaultEventHandler(evt); | 1152 HTMLTextFormControlElement::defaultEventHandler(evt); |
| 1153 if (evt->defaultHandled()) | 1153 if (evt->defaultHandled()) |
| 1154 return; | 1154 return; |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 // DOMActivate events cause the input to be "activated" - in the case of ima
ge and submit inputs, this means | 1157 // DOMActivate events cause the input to be "activated" - in the case of ima
ge and submit inputs, this means |
| 1158 // actually submitting the form. For reset inputs, the form is reset. These
events are sent when the user clicks | 1158 // actually submitting the form. For reset inputs, the form is reset. These
events are sent when the user clicks |
| 1159 // on the element, or presses enter while it is the active element. JavaScri
pt code wishing to activate the element | 1159 // on the element, or presses enter while it is the active element. JavaScri
pt code wishing to activate the element |
| 1160 // must dispatch a DOMActivate event - a click event will not do the job. | 1160 // must dispatch a DOMActivate event - a click event will not do the job. |
| 1161 if (evt->type() == eventNames().DOMActivateEvent) { | 1161 if (evt->type() == eventNames().DOMActivateEvent) { |
| 1162 m_inputTypeView->handleDOMActivateEvent(evt); | 1162 m_inputType->handleDOMActivateEvent(evt); |
| 1163 if (evt->defaultHandled()) | 1163 if (evt->defaultHandled()) |
| 1164 return; | 1164 return; |
| 1165 } | 1165 } |
| 1166 | 1166 |
| 1167 // Use key press event here since sending simulated mouse events | 1167 // Use key press event here since sending simulated mouse events |
| 1168 // on key down blocks the proper sending of the key press event. | 1168 // on key down blocks the proper sending of the key press event. |
| 1169 if (evt->isKeyboardEvent() && evt->type() == eventNames().keypressEvent) { | 1169 if (evt->isKeyboardEvent() && evt->type() == eventNames().keypressEvent) { |
| 1170 m_inputTypeView->handleKeypressEvent(toKeyboardEvent(evt)); | 1170 m_inputTypeView->handleKeypressEvent(toKeyboardEvent(evt)); |
| 1171 if (evt->defaultHandled()) | 1171 if (evt->defaultHandled()) |
| 1172 return; | 1172 return; |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 1886 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 1887 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() | 1887 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() |
| 1888 { | 1888 { |
| 1889 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1889 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
| 1890 } | 1890 } |
| 1891 #endif | 1891 #endif |
| 1892 | 1892 |
| 1893 } // namespace | 1893 } // namespace |
| OLD | NEW |