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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 | 863 |
864 unsigned unmaskedTextLength = AXNodeObject::text().length(); | 864 unsigned unmaskedTextLength = AXNodeObject::text().length(); |
865 if (!unmaskedTextLength) | 865 if (!unmaskedTextLength) |
866 return String(); | 866 return String(); |
867 | 867 |
868 UChar maskCharacter = 0; | 868 UChar maskCharacter = 0; |
869 switch (style->textSecurity()) { | 869 switch (style->textSecurity()) { |
870 case TSNONE: | 870 case TSNONE: |
871 break; // Fall through to the non-password branch. | 871 break; // Fall through to the non-password branch. |
872 case TSDISC: | 872 case TSDISC: |
873 maskCharacter = bullet; | 873 maskCharacter = bulletCharacter; |
874 break; | 874 break; |
875 case TSCIRCLE: | 875 case TSCIRCLE: |
876 maskCharacter = whiteBullet; | 876 maskCharacter = whiteBulletCharacter; |
877 break; | 877 break; |
878 case TSSQUARE: | 878 case TSSQUARE: |
879 maskCharacter = blackSquare; | 879 maskCharacter = blackSquareCharacter; |
880 break; | 880 break; |
881 } | 881 } |
882 if (maskCharacter) { | 882 if (maskCharacter) { |
883 StringBuilder maskedText; | 883 StringBuilder maskedText; |
884 maskedText.reserveCapacity(unmaskedTextLength); | 884 maskedText.reserveCapacity(unmaskedTextLength); |
885 for (unsigned i = 0; i < unmaskedTextLength; ++i) | 885 for (unsigned i = 0; i < unmaskedTextLength; ++i) |
886 maskedText.append(maskCharacter); | 886 maskedText.append(maskCharacter); |
887 return maskedText.toString(); | 887 return maskedText.toString(); |
888 } | 888 } |
889 } | 889 } |
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2488 if (label && label->layoutObject()) { | 2488 if (label && label->layoutObject()) { |
2489 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2489 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2490 result.unite(labelRect); | 2490 result.unite(labelRect); |
2491 } | 2491 } |
2492 } | 2492 } |
2493 | 2493 |
2494 return result; | 2494 return result; |
2495 } | 2495 } |
2496 | 2496 |
2497 } // namespace blink | 2497 } // namespace blink |
OLD | NEW |