OLD | NEW |
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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 560 } |
561 | 561 |
562 bool InputType::storesValueSeparateFromAttribute() | 562 bool InputType::storesValueSeparateFromAttribute() |
563 { | 563 { |
564 return true; | 564 return true; |
565 } | 565 } |
566 | 566 |
567 void InputType::setValue(const String& sanitizedValue, bool valueChanged, TextFi
eldEventBehavior eventBehavior) | 567 void InputType::setValue(const String& sanitizedValue, bool valueChanged, TextFi
eldEventBehavior eventBehavior) |
568 { | 568 { |
569 element().setValueInternal(sanitizedValue, eventBehavior); | 569 element().setValueInternal(sanitizedValue, eventBehavior); |
570 element().setNeedsStyleRecalc(); | 570 element().setNeedsStyleRecalc(SubtreeStyleChange); |
571 if (!valueChanged) | 571 if (!valueChanged) |
572 return; | 572 return; |
573 switch (eventBehavior) { | 573 switch (eventBehavior) { |
574 case DispatchChangeEvent: | 574 case DispatchChangeEvent: |
575 element().dispatchFormControlChangeEvent(); | 575 element().dispatchFormControlChangeEvent(); |
576 break; | 576 break; |
577 case DispatchInputAndChangeEvent: | 577 case DispatchInputAndChangeEvent: |
578 element().dispatchFormControlInputEvent(); | 578 element().dispatchFormControlInputEvent(); |
579 element().dispatchFormControlChangeEvent(); | 579 element().dispatchFormControlChangeEvent(); |
580 break; | 580 break; |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 StepRange InputType::createStepRange(AnyStepHandling anyStepHandling, const Deci
mal& stepBaseDefault, const Decimal& minimumDefault, const Decimal& maximumDefau
lt, const StepRange::StepDescription& stepDescription) const | 982 StepRange InputType::createStepRange(AnyStepHandling anyStepHandling, const Deci
mal& stepBaseDefault, const Decimal& minimumDefault, const Decimal& maximumDefau
lt, const StepRange::StepDescription& stepDescription) const |
983 { | 983 { |
984 const Decimal stepBase = findStepBase(stepBaseDefault); | 984 const Decimal stepBase = findStepBase(stepBaseDefault); |
985 const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), m
inimumDefault); | 985 const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), m
inimumDefault); |
986 const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), m
aximumDefault); | 986 const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), m
aximumDefault); |
987 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription,
element().fastGetAttribute(stepAttr)); | 987 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription,
element().fastGetAttribute(stepAttr)); |
988 return StepRange(stepBase, minimum, maximum, step, stepDescription); | 988 return StepRange(stepBase, minimum, maximum, step, stepDescription); |
989 } | 989 } |
990 | 990 |
991 } // namespace WebCore | 991 } // namespace WebCore |
OLD | NEW |