| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 return; | 982 return; |
| 983 | 983 |
| 984 if (!getAttribute(stepAttr).isEmpty()) | 984 if (!getAttribute(stepAttr).isEmpty()) |
| 985 changeValueByStep(increase); | 985 changeValueByStep(increase); |
| 986 else | 986 else |
| 987 changeValueByPercent(increase ? 5 : -5); | 987 changeValueByPercent(increase ? 5 : -5); |
| 988 } | 988 } |
| 989 | 989 |
| 990 void AccessibilityNodeObject::increment() | 990 void AccessibilityNodeObject::increment() |
| 991 { | 991 { |
| 992 UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); | 992 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); |
| 993 alterSliderValue(true); | 993 alterSliderValue(true); |
| 994 } | 994 } |
| 995 | 995 |
| 996 void AccessibilityNodeObject::decrement() | 996 void AccessibilityNodeObject::decrement() |
| 997 { | 997 { |
| 998 UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); | 998 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture); |
| 999 alterSliderValue(false); | 999 alterSliderValue(false); |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 void AccessibilityNodeObject::changeValueByStep(bool increase) | 1002 void AccessibilityNodeObject::changeValueByStep(bool increase) |
| 1003 { | 1003 { |
| 1004 float step = stepValueForRange(); | 1004 float step = stepValueForRange(); |
| 1005 float value = valueForRange(); | 1005 float value = valueForRange(); |
| 1006 | 1006 |
| 1007 value += increase ? step : -step; | 1007 value += increase ? step : -step; |
| 1008 | 1008 |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 bool AccessibilityNodeObject::hasContentEditableAttributeSet() const | 1826 bool AccessibilityNodeObject::hasContentEditableAttributeSet() const |
| 1827 { | 1827 { |
| 1828 if (!hasAttribute(contenteditableAttr)) | 1828 if (!hasAttribute(contenteditableAttr)) |
| 1829 return false; | 1829 return false; |
| 1830 const AtomicString& contentEditableValue = getAttribute(contenteditableAttr)
; | 1830 const AtomicString& contentEditableValue = getAttribute(contenteditableAttr)
; |
| 1831 // Both "true" (case-insensitive) and the empty string count as true. | 1831 // Both "true" (case-insensitive) and the empty string count as true. |
| 1832 return contentEditableValue.isEmpty() || equalIgnoringCase(contentEditableVa
lue, "true"); | 1832 return contentEditableValue.isEmpty() || equalIgnoringCase(contentEditableVa
lue, "true"); |
| 1833 } | 1833 } |
| 1834 | 1834 |
| 1835 } // namespace WebCore | 1835 } // namespace WebCore |
| OLD | NEW |