| 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 | 1006 |
| 1007 if (newValue - stepRange.maximum() > acceptableErrorValue) { | 1007 if (newValue - stepRange.maximum() > acceptableErrorValue) { |
| 1008 ec = INVALID_STATE_ERR; | 1008 ec = INVALID_STATE_ERR; |
| 1009 return; | 1009 return; |
| 1010 } | 1010 } |
| 1011 if (newValue > stepRange.maximum()) | 1011 if (newValue > stepRange.maximum()) |
| 1012 newValue = stepRange.maximum(); | 1012 newValue = stepRange.maximum(); |
| 1013 | 1013 |
| 1014 setValueAsDecimal(newValue, eventBehavior, ec); | 1014 setValueAsDecimal(newValue, eventBehavior, ec); |
| 1015 | 1015 |
| 1016 if (AXObjectCache* cache = element()->document()->existingAXObjectCache()) | 1016 if (AXObjectCache::accessibilityEnabled()) |
| 1017 cache->postNotification(element(), AXObjectCache::AXValueChanged, true); | 1017 element()->document()->axObjectCache()->postNotification(element(), AXO
bjectCache::AXValueChanged, true); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 bool InputType::getAllowedValueStep(Decimal* step) const | 1020 bool InputType::getAllowedValueStep(Decimal* step) const |
| 1021 { | 1021 { |
| 1022 StepRange stepRange(createStepRange(RejectAny)); | 1022 StepRange stepRange(createStepRange(RejectAny)); |
| 1023 *step = stepRange.step(); | 1023 *step = stepRange.step(); |
| 1024 return stepRange.hasStep(); | 1024 return stepRange.hasStep(); |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 StepRange InputType::createStepRange(AnyStepHandling) const | 1027 StepRange InputType::createStepRange(AnyStepHandling) const |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 | 1142 |
| 1143 void InputType::observeFeatureIfVisible(FeatureObserver::Feature feature) const | 1143 void InputType::observeFeatureIfVisible(FeatureObserver::Feature feature) const |
| 1144 { | 1144 { |
| 1145 if (RenderStyle* style = element()->renderStyle()) { | 1145 if (RenderStyle* style = element()->renderStyle()) { |
| 1146 if (style->visibility() != HIDDEN) | 1146 if (style->visibility() != HIDDEN) |
| 1147 FeatureObserver::observe(element()->document(), feature); | 1147 FeatureObserver::observe(element()->document(), feature); |
| 1148 } | 1148 } |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 } // namespace WebCore | 1151 } // namespace WebCore |
| OLD | NEW |