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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 axorientation = AccessibilityOrientationVertical; | 807 axorientation = AccessibilityOrientationVertical; |
808 return axorientation; | 808 return axorientation; |
809 } | 809 } |
810 | 810 |
811 String AXRenderObject::text() const | 811 String AXRenderObject::text() const |
812 { | 812 { |
813 if (isPasswordFieldAndShouldHideValue()) { | 813 if (isPasswordFieldAndShouldHideValue()) { |
814 if (!m_renderer) | 814 if (!m_renderer) |
815 return String(); | 815 return String(); |
816 | 816 |
817 LayoutStyle* style = m_renderer->style(); | 817 const LayoutStyle* style = m_renderer->style(); |
818 if (!style) | 818 if (!style) |
819 return String(); | 819 return String(); |
820 | 820 |
821 unsigned unmaskedTextLength = AXNodeObject::text().length(); | 821 unsigned unmaskedTextLength = AXNodeObject::text().length(); |
822 if (!unmaskedTextLength) | 822 if (!unmaskedTextLength) |
823 return String(); | 823 return String(); |
824 | 824 |
825 UChar maskCharacter = 0; | 825 UChar maskCharacter = 0; |
826 switch (style->textSecurity()) { | 826 switch (style->textSecurity()) { |
827 case TSNONE: | 827 case TSNONE: |
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2411 if (label && label->renderer()) { | 2411 if (label && label->renderer()) { |
2412 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2412 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2413 result.unite(labelRect); | 2413 result.unite(labelRect); |
2414 } | 2414 } |
2415 } | 2415 } |
2416 | 2416 |
2417 return result; | 2417 return result; |
2418 } | 2418 } |
2419 | 2419 |
2420 } // namespace blink | 2420 } // namespace blink |
OLD | NEW |