| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 size_t count = quads.size(); | 462 size_t count = quads.size(); |
| 463 if (!count) | 463 if (!count) |
| 464 return IntRect(); | 464 return IntRect(); |
| 465 | 465 |
| 466 IntRect result; | 466 IntRect result; |
| 467 for (size_t i = 0; i < count; ++i) { | 467 for (size_t i = 0; i < count; ++i) { |
| 468 IntRect r = quads[i].enclosingBoundingBox(); | 468 IntRect r = quads[i].enclosingBoundingBox(); |
| 469 if (!r.isEmpty()) { | 469 if (!r.isEmpty()) { |
| 470 if (obj->style()->hasAppearance()) | 470 if (obj->style()->hasAppearance()) |
| 471 RenderTheme::theme().adjustRepaintRect(obj, r); | 471 RenderTheme::theme().adjustPaintInvalidationRect(obj, r); |
| 472 result.unite(r); | 472 result.unite(r); |
| 473 } | 473 } |
| 474 } | 474 } |
| 475 return result; | 475 return result; |
| 476 } | 476 } |
| 477 | 477 |
| 478 AXObject* AXObject::elementAccessibilityHitTest(const IntPoint& point) const | 478 AXObject* AXObject::elementAccessibilityHitTest(const IntPoint& point) const |
| 479 { | 479 { |
| 480 // Send the hit test back into the sub-frame if necessary. | 480 // Send the hit test back into the sub-frame if necessary. |
| 481 if (isAttachment()) { | 481 if (isAttachment()) { |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 return ToggleButtonRole; | 893 return ToggleButtonRole; |
| 894 if (ariaHasPopup()) | 894 if (ariaHasPopup()) |
| 895 return PopUpButtonRole; | 895 return PopUpButtonRole; |
| 896 // We don't contemplate RadioButtonRole, as it depends on the input | 896 // We don't contemplate RadioButtonRole, as it depends on the input |
| 897 // type. | 897 // type. |
| 898 | 898 |
| 899 return ButtonRole; | 899 return ButtonRole; |
| 900 } | 900 } |
| 901 | 901 |
| 902 } // namespace blink | 902 } // namespace blink |
| OLD | NEW |