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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 return document.isContentEditable(); | 378 return document.isContentEditable(); |
379 } | 379 } |
380 | 380 |
381 return AXNodeObject::isEditable(); | 381 return AXNodeObject::isEditable(); |
382 } | 382 } |
383 | 383 |
384 // Requires layoutObject to be present because it relies on style | 384 // Requires layoutObject to be present because it relies on style |
385 // user-modify. Don't move this logic to AXNodeObject. | 385 // user-modify. Don't move this logic to AXNodeObject. |
386 bool AXLayoutObject::isRichlyEditable() const | 386 bool AXLayoutObject::isRichlyEditable() const |
387 { | 387 { |
388 if (isARIATextControl()) | |
389 return false; | |
390 | |
391 if (getNode() && getNode()->isContentRichlyEditable()) | 388 if (getNode() && getNode()->isContentRichlyEditable()) |
392 return true; | 389 return true; |
393 | 390 |
394 if (isWebArea()) { | 391 if (isWebArea()) { |
395 Document& document = m_layoutObject->document(); | 392 Document& document = m_layoutObject->document(); |
396 HTMLElement* body = document.body(); | 393 HTMLElement* body = document.body(); |
397 if (body && body->isContentRichlyEditable()) | 394 if (body && body->isContentRichlyEditable()) |
398 return true; | 395 return true; |
399 | 396 |
400 return document.isContentRichlyEditable(); | 397 return document.isContentRichlyEditable(); |
(...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2508 if (label && label->layoutObject()) { | 2505 if (label && label->layoutObject()) { |
2509 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); | 2506 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); |
2510 result.unite(labelRect); | 2507 result.unite(labelRect); |
2511 } | 2508 } |
2512 } | 2509 } |
2513 | 2510 |
2514 return result; | 2511 return result; |
2515 } | 2512 } |
2516 | 2513 |
2517 } // namespace blink | 2514 } // namespace blink |
OLD | NEW |