OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 return !hasEditableStyle(document); | 417 return !hasEditableStyle(document); |
418 } | 418 } |
419 | 419 |
420 return AXNodeObject::isReadOnly(); | 420 return AXNodeObject::isReadOnly(); |
421 } | 421 } |
422 | 422 |
423 bool AXLayoutObject::isVisited() const { | 423 bool AXLayoutObject::isVisited() const { |
424 // FIXME: Is it a privacy violation to expose visited information to | 424 // FIXME: Is it a privacy violation to expose visited information to |
425 // accessibility APIs? | 425 // accessibility APIs? |
426 return m_layoutObject->style()->isLink() && | 426 return m_layoutObject->style()->isLink() && |
427 m_layoutObject->style()->insideLink() == InsideVisitedLink; | 427 m_layoutObject->style()->insideLink() == |
| 428 EInsideLink::kInsideVisitedLink; |
428 } | 429 } |
429 | 430 |
430 // | 431 // |
431 // Check object state. | 432 // Check object state. |
432 // | 433 // |
433 | 434 |
434 bool AXLayoutObject::isFocused() const { | 435 bool AXLayoutObject::isFocused() const { |
435 if (!getDocument()) | 436 if (!getDocument()) |
436 return false; | 437 return false; |
437 | 438 |
(...skipping 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2489 | 2490 |
2490 bool AXLayoutObject::elementAttributeValue( | 2491 bool AXLayoutObject::elementAttributeValue( |
2491 const QualifiedName& attributeName) const { | 2492 const QualifiedName& attributeName) const { |
2492 if (!m_layoutObject) | 2493 if (!m_layoutObject) |
2493 return false; | 2494 return false; |
2494 | 2495 |
2495 return equalIgnoringCase(getAttribute(attributeName), "true"); | 2496 return equalIgnoringCase(getAttribute(attributeName), "true"); |
2496 } | 2497 } |
2497 | 2498 |
2498 } // namespace blink | 2499 } // namespace blink |
OLD | NEW |