| 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 557 |
| 558 bool AXNodeObject::isNativeImage() const | 558 bool AXNodeObject::isNativeImage() const |
| 559 { | 559 { |
| 560 Node* node = this->node(); | 560 Node* node = this->node(); |
| 561 if (!node) | 561 if (!node) |
| 562 return false; | 562 return false; |
| 563 | 563 |
| 564 if (isHTMLImageElement(*node)) | 564 if (isHTMLImageElement(*node)) |
| 565 return true; | 565 return true; |
| 566 | 566 |
| 567 if (isHTMLAppletElement(*node) || isHTMLEmbedElement(*node) || isHTMLObjectE
lement(*node)) | 567 if (isHTMLPlugInElement(*node)) |
| 568 return true; | 568 return true; |
| 569 | 569 |
| 570 if (isHTMLInputElement(*node)) | 570 if (isHTMLInputElement(*node)) |
| 571 return toHTMLInputElement(*node).isImageButton(); | 571 return toHTMLInputElement(*node).isImageButton(); |
| 572 | 572 |
| 573 return false; | 573 return false; |
| 574 } | 574 } |
| 575 | 575 |
| 576 bool AXNodeObject::isNativeTextControl() const | 576 bool AXNodeObject::isNativeTextControl() const |
| 577 { | 577 { |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 float range = maxValueForRange() - minValueForRange(); | 1704 float range = maxValueForRange() - minValueForRange(); |
| 1705 float value = valueForRange(); | 1705 float value = valueForRange(); |
| 1706 | 1706 |
| 1707 value += range * (percentChange / 100); | 1707 value += range * (percentChange / 100); |
| 1708 setValue(String::number(value)); | 1708 setValue(String::number(value)); |
| 1709 | 1709 |
| 1710 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru
e); | 1710 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru
e); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 } // namespace blink | 1713 } // namespace blink |
| OLD | NEW |