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

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

Issue 1186523004: Rename adjustPaintInvalidationRect and related to addVisualOverflow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/layout/LayoutThemeMac.mm ('k') | Source/platform/Theme.h » ('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, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 return IntRect(); 875 return IntRect();
876 876
877 size_t count = quads.size(); 877 size_t count = quads.size();
878 if (!count) 878 if (!count)
879 return IntRect(); 879 return IntRect();
880 880
881 IntRect result; 881 IntRect result;
882 for (size_t i = 0; i < count; ++i) { 882 for (size_t i = 0; i < count; ++i) {
883 IntRect r = quads[i].enclosingBoundingBox(); 883 IntRect r = quads[i].enclosingBoundingBox();
884 if (!r.isEmpty()) { 884 if (!r.isEmpty()) {
885 // TODO(pdr): Should this be using visualOverflowRect?
885 if (obj->style()->hasAppearance()) 886 if (obj->style()->hasAppearance())
886 LayoutTheme::theme().adjustPaintInvalidationRect(obj, r); 887 LayoutTheme::theme().addVisualOverflow(*obj, r);
887 result.unite(r); 888 result.unite(r);
888 } 889 }
889 } 890 }
890 return result; 891 return result;
891 } 892 }
892 893
893 AXObject* AXObject::elementAccessibilityHitTest(const IntPoint& point) const 894 AXObject* AXObject::elementAccessibilityHitTest(const IntPoint& point) const
894 { 895 {
895 // Send the hit test back into the sub-frame if necessary. 896 // Send the hit test back into the sub-frame if necessary.
896 if (isAttachment()) { 897 if (isAttachment()) {
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 } 1474 }
1474 1475
1475 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) 1476 const AtomicString& AXObject::internalRoleName(AccessibilityRole role)
1476 { 1477 {
1477 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo leNameVector(); 1478 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo leNameVector();
1478 1479
1479 return internalRoleNameVector->at(role); 1480 return internalRoleNameVector->at(role);
1480 } 1481 }
1481 1482
1482 } // namespace blink 1483 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutThemeMac.mm ('k') | Source/platform/Theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698