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

Side by Side Diff: Source/WebCore/html/InputType.cpp

Issue 10695026: Merge 121019 - REGRESSION(r117738):[Forms] validationMessage IDL attribute should not have range ov… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « LayoutTests/fast/forms/range/input-range-validation-message-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 9 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
10 * 10 *
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 const Decimal numericValue = parseToNumberOrNaN(value); 368 const Decimal numericValue = parseToNumberOrNaN(value);
369 if (!numericValue.isFinite()) 369 if (!numericValue.isFinite())
370 return emptyString(); 370 return emptyString();
371 371
372 StepRange stepRange(createStepRange(RejectAny)); 372 StepRange stepRange(createStepRange(RejectAny));
373 373
374 if (numericValue < stepRange.minimum()) 374 if (numericValue < stepRange.minimum())
375 return validationMessageRangeUnderflowText(serialize(stepRange.minimum() )); 375 return validationMessageRangeUnderflowText(serialize(stepRange.minimum() ));
376 376
377 if (numericValue < stepRange.maximum()) 377 if (numericValue > stepRange.maximum())
378 return validationMessageRangeOverflowText(serialize(stepRange.maximum()) ); 378 return validationMessageRangeOverflowText(serialize(stepRange.maximum()) );
379 379
380 if (stepRange.stepMismatch(numericValue)) { 380 if (stepRange.stepMismatch(numericValue)) {
381 const String stepString = stepRange.hasStep() ? serializeForNumberType(s tepRange.step() / stepRange.stepScaleFactor()) : emptyString(); 381 const String stepString = stepRange.hasStep() ? serializeForNumberType(s tepRange.step() / stepRange.stepScaleFactor()) : emptyString();
382 return validationMessageStepMismatchText(serialize(stepRange.stepBase()) , stepString); 382 return validationMessageStepMismatchText(serialize(stepRange.stepBase()) , stepString);
383 } 383 }
384 384
385 return emptyString(); 385 return emptyString();
386 } 386 }
387 387
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 } 1190 }
1191 1191
1192 const AtomicString& week() 1192 const AtomicString& week()
1193 { 1193 {
1194 DEFINE_STATIC_LOCAL(AtomicString, name, ("week")); 1194 DEFINE_STATIC_LOCAL(AtomicString, name, ("week"));
1195 return name; 1195 return name;
1196 } 1196 }
1197 1197
1198 } // namespace WebCore::InputTypeNames 1198 } // namespace WebCore::InputTypeNames
1199 } // namespace WebCore 1199 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/range/input-range-validation-message-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698