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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 2452743004: INPUT element: Fix integer overflow in input.stepDown(). (Closed)
Patch Set: Created 4 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) 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 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
9 * Copyright (C) 2010 Google Inc. All rights reserved. 9 * Copyright (C) 2010 Google Inc. All rights reserved.
10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 Decimal HTMLInputElement::findClosestTickMarkValue(const Decimal& value) { 274 Decimal HTMLInputElement::findClosestTickMarkValue(const Decimal& value) {
275 return m_inputType->findClosestTickMarkValue(value); 275 return m_inputType->findClosestTickMarkValue(value);
276 } 276 }
277 277
278 void HTMLInputElement::stepUp(int n, ExceptionState& exceptionState) { 278 void HTMLInputElement::stepUp(int n, ExceptionState& exceptionState) {
279 m_inputType->stepUp(n, exceptionState); 279 m_inputType->stepUp(n, exceptionState);
280 } 280 }
281 281
282 void HTMLInputElement::stepDown(int n, ExceptionState& exceptionState) { 282 void HTMLInputElement::stepDown(int n, ExceptionState& exceptionState) {
283 m_inputType->stepUp(-n, exceptionState); 283 m_inputType->stepUp(-1.0 * n, exceptionState);
284 } 284 }
285 285
286 void HTMLInputElement::blur() { 286 void HTMLInputElement::blur() {
287 m_inputTypeView->blur(); 287 m_inputTypeView->blur();
288 } 288 }
289 289
290 void HTMLInputElement::defaultBlur() { 290 void HTMLInputElement::defaultBlur() {
291 HTMLTextFormControlElement::blur(); 291 HTMLTextFormControlElement::blur();
292 } 292 }
293 293
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 1931
1932 bool HTMLInputElement::hasFallbackContent() const { 1932 bool HTMLInputElement::hasFallbackContent() const {
1933 return m_inputTypeView->hasFallbackContent(); 1933 return m_inputTypeView->hasFallbackContent();
1934 } 1934 }
1935 1935
1936 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { 1936 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) {
1937 return m_inputType->setFilesFromPaths(paths); 1937 return m_inputType->setFilesFromPaths(paths);
1938 } 1938 }
1939 1939
1940 } // namespace blink 1940 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698