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

Side by Side Diff: Source/core/accessibility/AXRenderObject.cpp

Issue 616553002: Revert of Add AX role ,'AXDescriptionList', for dl element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 return HeadingRole; 326 return HeadingRole;
327 327
328 if (m_renderer->isSVGImage()) 328 if (m_renderer->isSVGImage())
329 return ImageRole; 329 return ImageRole;
330 if (m_renderer->isSVGRoot()) 330 if (m_renderer->isSVGRoot())
331 return SVGRootRole; 331 return SVGRootRole;
332 332
333 if (node && node->hasTagName(ddTag)) 333 if (node && node->hasTagName(ddTag))
334 return DescriptionListDetailRole; 334 return DescriptionListDetailRole;
335 335
336 if (node && node->hasTagName(dlTag))
337 return DescriptionListRole;
338
339 if (node && node->hasTagName(dtTag)) 336 if (node && node->hasTagName(dtTag))
340 return DescriptionListTermRole; 337 return DescriptionListTermRole;
341 338
342 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) 339 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag)))
343 return AnnotationRole; 340 return AnnotationRole;
344 341
345 // Table sections should be ignored. 342 // Table sections should be ignored.
346 if (m_renderer->isTableSection()) 343 if (m_renderer->isTableSection())
347 return IgnoredRole; 344 return IgnoredRole;
348 345
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 if (label && label->renderer()) { 2344 if (label && label->renderer()) {
2348 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2345 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2349 result.unite(labelRect); 2346 result.unite(labelRect);
2350 } 2347 }
2351 } 2348 }
2352 2349
2353 return result; 2350 return result;
2354 } 2351 }
2355 2352
2356 } // namespace blink 2353 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698