Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: Source/modules/accessibility/AXLayoutObject.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/protocol.json ('k') | Source/modules/accessibility/AXSlider.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
807 axorientation = AccessibilityOrientationVertical; 807 axorientation = AccessibilityOrientationVertical;
808 return axorientation; 808 return axorientation;
809 } 809 }
810 810
811 String AXLayoutObject::text() const 811 String AXLayoutObject::text() const
812 { 812 {
813 if (isPasswordFieldAndShouldHideValue()) { 813 if (isPasswordFieldAndShouldHideValue()) {
814 if (!m_layoutObject) 814 if (!m_layoutObject)
815 return String(); 815 return String();
816 816
817 const LayoutStyle* style = m_layoutObject->style(); 817 const ComputedStyle* style = m_layoutObject->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 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 if (label && label->layoutObject()) { 2367 if (label && label->layoutObject()) {
2368 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2368 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2369 result.unite(labelRect); 2369 result.unite(labelRect);
2370 } 2370 }
2371 } 2371 }
2372 2372
2373 return result; 2373 return result;
2374 } 2374 }
2375 2375
2376 } // namespace blink 2376 } // namespace blink
OLDNEW
« no previous file with comments | « Source/devtools/protocol.json ('k') | Source/modules/accessibility/AXSlider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698