| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 if (keyIdentifier == "Up") { | 106 if (keyIdentifier == "Up") { |
| 107 keyboardEvent->setDefaultHandled(); | 107 keyboardEvent->setDefaultHandled(); |
| 108 stepUp(); | 108 stepUp(); |
| 109 return; | 109 return; |
| 110 } | 110 } |
| 111 | 111 |
| 112 if (keyIdentifier == "U+0008" || keyIdentifier == "U+007F") { | 112 if (keyIdentifier == "U+0008" || keyIdentifier == "U+007F") { |
| 113 keyboardEvent->setDefaultHandled(); | 113 keyboardEvent->setDefaultHandled(); |
| 114 setEmptyValue(DateComponents(), DispatchEvent); | 114 setEmptyValue(DispatchEvent); |
| 115 return; | 115 return; |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 | 118 |
| 119 void DateTimeFieldElement::didBlur() | 119 void DateTimeFieldElement::didBlur() |
| 120 { | 120 { |
| 121 if (m_fieldOwner) | 121 if (m_fieldOwner) |
| 122 m_fieldOwner->didBlurFromField(); | 122 m_fieldOwner->didBlurFromField(); |
| 123 } | 123 } |
| 124 | 124 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 setAttribute(aria_valuetextAttr, hasValue() ? newVisibleValue : AXDateTimeFi
eldEmptyValueText()); | 193 setAttribute(aria_valuetextAttr, hasValue() ? newVisibleValue : AXDateTimeFi
eldEmptyValueText()); |
| 194 setAttribute(aria_valuenowAttr, newVisibleValue); | 194 setAttribute(aria_valuenowAttr, newVisibleValue); |
| 195 | 195 |
| 196 if (eventBehavior == DispatchEvent && m_fieldOwner) | 196 if (eventBehavior == DispatchEvent && m_fieldOwner) |
| 197 m_fieldOwner->fieldValueChanged(); | 197 m_fieldOwner->fieldValueChanged(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace WebCore | 200 } // namespace WebCore |
| 201 | 201 |
| 202 #endif | 202 #endif |
| OLD | NEW |