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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 for (unsigned i = 0; i < m_children.size(); ++i) | 502 for (unsigned i = 0; i < m_children.size(); ++i) |
503 m_children[i].get()->markCachedElementRectDirty(); | 503 m_children[i].get()->markCachedElementRectDirty(); |
504 } | 504 } |
505 | 505 |
506 IntPoint AXObject::clickPoint() | 506 IntPoint AXObject::clickPoint() |
507 { | 507 { |
508 LayoutRect rect = elementRect(); | 508 LayoutRect rect = elementRect(); |
509 return roundedIntPoint(LayoutPoint(rect.x() + rect.width() / 2, rect.y() + r
ect.height() / 2)); | 509 return roundedIntPoint(LayoutPoint(rect.x() + rect.width() / 2, rect.y() + r
ect.height() / 2)); |
510 } | 510 } |
511 | 511 |
512 IntRect AXObject::boundingBoxForQuads(RenderObject* obj, const Vector<FloatQuad>
& quads) | 512 IntRect AXObject::boundingBoxForQuads(LayoutObject* obj, const Vector<FloatQuad>
& quads) |
513 { | 513 { |
514 ASSERT(obj); | 514 ASSERT(obj); |
515 if (!obj) | 515 if (!obj) |
516 return IntRect(); | 516 return IntRect(); |
517 | 517 |
518 size_t count = quads.size(); | 518 size_t count = quads.size(); |
519 if (!count) | 519 if (!count) |
520 return IntRect(); | 520 return IntRect(); |
521 | 521 |
522 IntRect result; | 522 IntRect result; |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 } | 984 } |
985 | 985 |
986 const AtomicString& AXObject::roleName(AccessibilityRole role) | 986 const AtomicString& AXObject::roleName(AccessibilityRole role) |
987 { | 987 { |
988 static const Vector<AtomicString>* roleNameVector = createRoleNameVector(); | 988 static const Vector<AtomicString>* roleNameVector = createRoleNameVector(); |
989 | 989 |
990 return roleNameVector->at(role); | 990 return roleNameVector->at(role); |
991 } | 991 } |
992 | 992 |
993 } // namespace blink | 993 } // namespace blink |
OLD | NEW |