| 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 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 | 1205 |
| 1206 if (evt->isKeyboardEvent() && evt->type() == EventTypeNames::keyup) { | 1206 if (evt->isKeyboardEvent() && evt->type() == EventTypeNames::keyup) { |
| 1207 m_inputTypeView->handleKeyupEvent(toKeyboardEvent(evt)); | 1207 m_inputTypeView->handleKeyupEvent(toKeyboardEvent(evt)); |
| 1208 if (evt->defaultHandled()) | 1208 if (evt->defaultHandled()) |
| 1209 return; | 1209 return; |
| 1210 } | 1210 } |
| 1211 | 1211 |
| 1212 if (m_inputTypeView->shouldSubmitImplicitly(evt)) { | 1212 if (m_inputTypeView->shouldSubmitImplicitly(evt)) { |
| 1213 // FIXME: Remove type check. | 1213 // FIXME: Remove type check. |
| 1214 if (type() == InputTypeNames::search) | 1214 if (type() == InputTypeNames::search) |
| 1215 document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInput
Element::onSearch, this)); | 1215 document().postTask(BLINK_FROM_HERE, createSameThreadTask(&HTMLInput
Element::onSearch, wrapPersistent(this))); |
| 1216 // Form submission finishes editing, just as loss of focus does. | 1216 // Form submission finishes editing, just as loss of focus does. |
| 1217 // If there was a change, send the event now. | 1217 // If there was a change, send the event now. |
| 1218 if (wasChangedSinceLastFormControlChangeEvent()) | 1218 if (wasChangedSinceLastFormControlChangeEvent()) |
| 1219 dispatchFormControlChangeEvent(); | 1219 dispatchFormControlChangeEvent(); |
| 1220 | 1220 |
| 1221 HTMLFormElement* formForSubmission = m_inputTypeView->formForSubmission(
); | 1221 HTMLFormElement* formForSubmission = m_inputTypeView->formForSubmission(
); |
| 1222 // Form may never have been present, or may have been destroyed by code
responding to the change event. | 1222 // Form may never have been present, or may have been destroyed by code
responding to the change event. |
| 1223 if (formForSubmission) | 1223 if (formForSubmission) |
| 1224 formForSubmission->submitImplicitly(evt, canTriggerImplicitSubmissio
n()); | 1224 formForSubmission->submitImplicitly(evt, canTriggerImplicitSubmissio
n()); |
| 1225 | 1225 |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 void HTMLInputElement::ensurePrimaryContent() | 1906 void HTMLInputElement::ensurePrimaryContent() |
| 1907 { | 1907 { |
| 1908 m_inputTypeView->ensurePrimaryContent(); | 1908 m_inputTypeView->ensurePrimaryContent(); |
| 1909 } | 1909 } |
| 1910 | 1910 |
| 1911 bool HTMLInputElement::hasFallbackContent() const | 1911 bool HTMLInputElement::hasFallbackContent() const |
| 1912 { | 1912 { |
| 1913 return m_inputTypeView->hasFallbackContent(); | 1913 return m_inputTypeView->hasFallbackContent(); |
| 1914 } | 1914 } |
| 1915 } // namespace blink | 1915 } // namespace blink |
| OLD | NEW |