| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 return viewRect.isEmpty(); | 487 return viewRect.isEmpty(); |
| 488 } | 488 } |
| 489 | 489 |
| 490 bool AXLayoutObject::isReadOnly() const | 490 bool AXLayoutObject::isReadOnly() const |
| 491 { | 491 { |
| 492 ASSERT(m_layoutObject); | 492 ASSERT(m_layoutObject); |
| 493 | 493 |
| 494 if (isWebArea()) { | 494 if (isWebArea()) { |
| 495 Document& document = m_layoutObject->document(); | 495 Document& document = m_layoutObject->document(); |
| 496 HTMLElement* body = document.body(); | 496 HTMLElement* body = document.body(); |
| 497 if (body && body->hasEditableStyle()) | 497 if (body && hasEditableStyle(*body)) |
| 498 return false; | 498 return false; |
| 499 | 499 |
| 500 return !document.hasEditableStyle(); | 500 return !hasEditableStyle(document); |
| 501 } | 501 } |
| 502 | 502 |
| 503 return AXNodeObject::isReadOnly(); | 503 return AXNodeObject::isReadOnly(); |
| 504 } | 504 } |
| 505 | 505 |
| 506 bool AXLayoutObject::isVisited() const | 506 bool AXLayoutObject::isVisited() const |
| 507 { | 507 { |
| 508 // FIXME: Is it a privacy violation to expose visited information to accessi
bility APIs? | 508 // FIXME: Is it a privacy violation to expose visited information to accessi
bility APIs? |
| 509 return m_layoutObject->style()->isLink() && m_layoutObject->style()->insideL
ink() == InsideVisitedLink; | 509 return m_layoutObject->style()->isLink() && m_layoutObject->style()->insideL
ink() == InsideVisitedLink; |
| 510 } | 510 } |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2570 result.unite(labelRect); | 2570 result.unite(labelRect); |
| 2571 } | 2571 } |
| 2572 } | 2572 } |
| 2573 } | 2573 } |
| 2574 } | 2574 } |
| 2575 | 2575 |
| 2576 return result; | 2576 return result; |
| 2577 } | 2577 } |
| 2578 | 2578 |
| 2579 } // namespace blink | 2579 } // namespace blink |
| OLD | NEW |