| 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 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2013 AccessibilityExpanded expanded = isExpanded(); | 2013 AccessibilityExpanded expanded = isExpanded(); |
| 2014 if (!expanded) | 2014 if (!expanded) |
| 2015 return; | 2015 return; |
| 2016 | 2016 |
| 2017 if (roleValue() == RowRole || roleValue() == TreeItemRole) { | 2017 if (roleValue() == RowRole || roleValue() == TreeItemRole) { |
| 2018 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo
wExpanded; | 2018 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo
wExpanded; |
| 2019 if (expanded == ExpandedCollapsed) | 2019 if (expanded == ExpandedCollapsed) |
| 2020 notification = AXObjectCacheImpl::AXRowCollapsed; | 2020 notification = AXObjectCacheImpl::AXRowCollapsed; |
| 2021 | 2021 |
| 2022 axObjectCache().postNotification(this, notification); | 2022 axObjectCache().postNotification(this, notification); |
| 2023 } else { |
| 2024 axObjectCache().postNotification(this, AXObjectCacheImpl::AXExpandedChan
ged); |
| 2023 } | 2025 } |
| 2024 } | 2026 } |
| 2025 | 2027 |
| 2026 void AXLayoutObject::textChanged() | 2028 void AXLayoutObject::textChanged() |
| 2027 { | 2029 { |
| 2028 if (!m_layoutObject) | 2030 if (!m_layoutObject) |
| 2029 return; | 2031 return; |
| 2030 | 2032 |
| 2031 Settings* settings = getDocument()->settings(); | 2033 Settings* settings = getDocument()->settings(); |
| 2032 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) | 2034 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2467 if (label && label->layoutObject()) { | 2469 if (label && label->layoutObject()) { |
| 2468 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); | 2470 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); |
| 2469 result.unite(labelRect); | 2471 result.unite(labelRect); |
| 2470 } | 2472 } |
| 2471 } | 2473 } |
| 2472 | 2474 |
| 2473 return result; | 2475 return result; |
| 2474 } | 2476 } |
| 2475 | 2477 |
| 2476 } // namespace blink | 2478 } // namespace blink |
| OLD | NEW |