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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 } | 1171 } |
1172 return ToLayoutMenuList(layout_object_)->GetText(); | 1172 return ToLayoutMenuList(layout_object_)->GetText(); |
1173 } | 1173 } |
1174 | 1174 |
1175 if (IsWebArea()) { | 1175 if (IsWebArea()) { |
1176 // FIXME: Why would a layoutObject exist when the Document isn't attached to | 1176 // FIXME: Why would a layoutObject exist when the Document isn't attached to |
1177 // a frame? | 1177 // a frame? |
1178 if (layout_object_->GetFrame()) | 1178 if (layout_object_->GetFrame()) |
1179 return String(); | 1179 return String(); |
1180 | 1180 |
1181 ASSERT_NOT_REACHED(); | 1181 NOTREACHED(); |
1182 } | 1182 } |
1183 | 1183 |
1184 if (IsTextControl()) | 1184 if (IsTextControl()) |
1185 return GetText(); | 1185 return GetText(); |
1186 | 1186 |
1187 if (layout_object_->IsFileUploadControl()) | 1187 if (layout_object_->IsFileUploadControl()) |
1188 return ToLayoutFileUploadControl(layout_object_)->FileTextValue(); | 1188 return ToLayoutFileUploadControl(layout_object_)->FileTextValue(); |
1189 | 1189 |
1190 // Handle other HTML input elements that aren't text controls, like date and | 1190 // Handle other HTML input elements that aren't text controls, like date and |
1191 // time controls, by returning the string value, with the exception of | 1191 // time controls, by returning the string value, with the exception of |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 | 2511 |
2512 bool AXLayoutObject::ElementAttributeValue( | 2512 bool AXLayoutObject::ElementAttributeValue( |
2513 const QualifiedName& attribute_name) const { | 2513 const QualifiedName& attribute_name) const { |
2514 if (!layout_object_) | 2514 if (!layout_object_) |
2515 return false; | 2515 return false; |
2516 | 2516 |
2517 return EqualIgnoringASCIICase(GetAttribute(attribute_name), "true"); | 2517 return EqualIgnoringASCIICase(GetAttribute(attribute_name), "true"); |
2518 } | 2518 } |
2519 | 2519 |
2520 } // namespace blink | 2520 } // namespace blink |
OLD | NEW |