| 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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 960 | 960 | 
| 961     const AtomicString& ariaAutoComplete = getAttribute(aria_autocompleteAttr).l
      ower(); | 961     const AtomicString& ariaAutoComplete = getAttribute(aria_autocompleteAttr).l
      ower(); | 
| 962 | 962 | 
| 963     if (ariaAutoComplete == "inline" || ariaAutoComplete == "list" | 963     if (ariaAutoComplete == "inline" || ariaAutoComplete == "list" | 
| 964         || ariaAutoComplete == "both") | 964         || ariaAutoComplete == "both") | 
| 965         return ariaAutoComplete; | 965         return ariaAutoComplete; | 
| 966 | 966 | 
| 967     return String(); | 967     return String(); | 
| 968 } | 968 } | 
| 969 | 969 | 
|  | 970 String AXNodeObject::placeholder() const | 
|  | 971 { | 
|  | 972     String placeholder; | 
|  | 973     if (node()) { | 
|  | 974         if (isHTMLInputElement(*node())) { | 
|  | 975             HTMLInputElement* inputElement = toHTMLInputElement(node()); | 
|  | 976             placeholder = inputElement->strippedPlaceholder(); | 
|  | 977         } else if (isHTMLTextAreaElement(*node())) { | 
|  | 978             HTMLTextAreaElement* textAreaElement = toHTMLTextAreaElement(node())
      ; | 
|  | 979             placeholder = textAreaElement->strippedPlaceholder(); | 
|  | 980         } | 
|  | 981     } | 
|  | 982     return placeholder; | 
|  | 983 } | 
|  | 984 | 
| 970 String AXNodeObject::text() const | 985 String AXNodeObject::text() const | 
| 971 { | 986 { | 
| 972     // If this is a user defined static text, use the accessible name computatio
      n. | 987     // If this is a user defined static text, use the accessible name computatio
      n. | 
| 973     if (ariaRoleAttribute() == StaticTextRole) | 988     if (ariaRoleAttribute() == StaticTextRole) | 
| 974         return ariaAccessibilityDescription(); | 989         return ariaAccessibilityDescription(); | 
| 975 | 990 | 
| 976     if (!isTextControl()) | 991     if (!isTextControl()) | 
| 977         return String(); | 992         return String(); | 
| 978 | 993 | 
| 979     Node* node = this->node(); | 994     Node* node = this->node(); | 
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1929     float range = maxValueForRange() - minValueForRange(); | 1944     float range = maxValueForRange() - minValueForRange(); | 
| 1930     float value = valueForRange(); | 1945     float value = valueForRange(); | 
| 1931 | 1946 | 
| 1932     value += range * (percentChange / 100); | 1947     value += range * (percentChange / 100); | 
| 1933     setValue(String::number(value)); | 1948     setValue(String::number(value)); | 
| 1934 | 1949 | 
| 1935     axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
       true); | 1950     axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
       true); | 
| 1936 } | 1951 } | 
| 1937 | 1952 | 
| 1938 } // namespace blink | 1953 } // namespace blink | 
| OLD | NEW | 
|---|