| 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 710     // ignore images seemingly used as spacers | 710     // ignore images seemingly used as spacers | 
| 711     if (isImage()) { | 711     if (isImage()) { | 
| 712         // If the image can take focus, it should not be ignored, lest the user 
      not be able to interact with something important. | 712         // If the image can take focus, it should not be ignored, lest the user 
      not be able to interact with something important. | 
| 713         if (canSetFocusAttribute()) | 713         if (canSetFocusAttribute()) | 
| 714             return false; | 714             return false; | 
| 715 | 715 | 
| 716         if (node && node->isElementNode()) { | 716         if (node && node->isElementNode()) { | 
| 717             Element* elt = toElement(node); | 717             Element* elt = toElement(node); | 
| 718             const AtomicString& alt = elt->getAttribute(altAttr); | 718             const AtomicString& alt = elt->getAttribute(altAttr); | 
| 719             // don't ignore an image that has an alt tag | 719             // don't ignore an image that has an alt tag | 
| 720             if (!alt.string().containsOnlyWhitespace()) | 720             if (!alt.getString().containsOnlyWhitespace()) | 
| 721                 return false; | 721                 return false; | 
| 722             // informal standard is to ignore images with zero-length alt string
      s | 722             // informal standard is to ignore images with zero-length alt string
      s | 
| 723             if (!alt.isNull()) { | 723             if (!alt.isNull()) { | 
| 724                 if (ignoredReasons) | 724                 if (ignoredReasons) | 
| 725                     ignoredReasons->append(IgnoredReason(AXEmptyAlt)); | 725                     ignoredReasons->append(IgnoredReason(AXEmptyAlt)); | 
| 726                 return true; | 726                 return true; | 
| 727             } | 727             } | 
| 728         } | 728         } | 
| 729 | 729 | 
| 730         if (isNativeImage() && m_layoutObject->isImage()) { | 730         if (isNativeImage() && m_layoutObject->isImage()) { | 
| (...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2508         if (label && label->layoutObject()) { | 2508         if (label && label->layoutObject()) { | 
| 2509             LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
      ct(); | 2509             LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
      ct(); | 
| 2510             result.unite(labelRect); | 2510             result.unite(labelRect); | 
| 2511         } | 2511         } | 
| 2512     } | 2512     } | 
| 2513 | 2513 | 
| 2514     return result; | 2514     return result; | 
| 2515 } | 2515 } | 
| 2516 | 2516 | 
| 2517 } // namespace blink | 2517 } // namespace blink | 
| OLD | NEW | 
|---|