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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 if (isHTMLParagraphElement(node)) | 376 if (isHTMLParagraphElement(node)) |
377 return ParagraphRole; | 377 return ParagraphRole; |
378 | 378 |
379 if (isHTMLLabelElement(node)) | 379 if (isHTMLLabelElement(node)) |
380 return LabelRole; | 380 return LabelRole; |
381 | 381 |
382 if (isHTMLDivElement(node)) | 382 if (isHTMLDivElement(node)) |
383 return DivRole; | 383 return DivRole; |
384 | 384 |
| 385 if (isHTMLMeterElement(node)) |
| 386 return MeterRole; |
| 387 |
385 if (isHTMLFormElement(node)) | 388 if (isHTMLFormElement(node)) |
386 return FormRole; | 389 return FormRole; |
387 | 390 |
388 if (node && node->hasTagName(articleTag)) | 391 if (node && node->hasTagName(articleTag)) |
389 return ArticleRole; | 392 return ArticleRole; |
390 | 393 |
391 if (node && node->hasTagName(mainTag)) | 394 if (node && node->hasTagName(mainTag)) |
392 return MainRole; | 395 return MainRole; |
393 | 396 |
394 if (node && node->hasTagName(navTag)) | 397 if (node && node->hasTagName(navTag)) |
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2374 if (label && label->renderer()) { | 2377 if (label && label->renderer()) { |
2375 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2378 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2376 result.unite(labelRect); | 2379 result.unite(labelRect); |
2377 } | 2380 } |
2378 } | 2381 } |
2379 | 2382 |
2380 return result; | 2383 return result; |
2381 } | 2384 } |
2382 | 2385 |
2383 } // namespace blink | 2386 } // namespace blink |
OLD | NEW |