Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: Source/WebCore/html/shadow/DateTimeFieldElement.cpp

Issue 11420032: Merge 134239 - Refactoring: set read-only values on layout in DateTimeEditElement (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/html/shadow/DateTimeFieldElement.h ('k') | Source/WebCore/html/shadow/DateTimeFieldElements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698