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

Side by Side Diff: Source/core/html/forms/NumberInputType.cpp

Issue 196933006: Do not dispatch 'change' events during pressing spin buttons for input[type=number]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid extra change event Created 6 years, 9 months 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 if (element().renderer()) 287 if (element().renderer())
288 element().renderer()->setNeedsLayoutAndPrefWidthsRecalc(); 288 element().renderer()->setNeedsLayoutAndPrefWidthsRecalc();
289 } 289 }
290 290
291 bool NumberInputType::supportsSelectionAPI() const 291 bool NumberInputType::supportsSelectionAPI() const
292 { 292 {
293 return false; 293 return false;
294 } 294 }
295 295
296 String NumberInputType::fallbackValue() const
297 {
298 return emptyString();
299 }
300
296 } // namespace WebCore 301 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698