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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXImageMapLink.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return accessibilityIsIgnoredByDefault(ignoredReasons); 84 return accessibilityIsIgnoredByDefault(ignoredReasons);
85 } 85 }
86 86
87 Element* AXImageMapLink::actionElement() const 87 Element* AXImageMapLink::actionElement() const
88 { 88 {
89 return anchorElement(); 89 return anchorElement();
90 } 90 }
91 91
92 Element* AXImageMapLink::anchorElement() const 92 Element* AXImageMapLink::anchorElement() const
93 { 93 {
94 return node() ? toElement(node()) : nullptr; 94 return getNode() ? toElement(getNode()) : nullptr;
95 } 95 }
96 96
97 KURL AXImageMapLink::url() const 97 KURL AXImageMapLink::url() const
98 { 98 {
99 if (!areaElement()) 99 if (!areaElement())
100 return KURL(); 100 return KURL();
101 101
102 return areaElement()->href(); 102 return areaElement()->href();
103 } 103 }
104 104
105 LayoutRect AXImageMapLink::elementRect() const 105 LayoutRect AXImageMapLink::elementRect() const
106 { 106 {
107 HTMLAreaElement* area = areaElement(); 107 HTMLAreaElement* area = areaElement();
108 HTMLMapElement* map = mapElement(); 108 HTMLMapElement* map = mapElement();
109 if (!area || !map) 109 if (!area || !map)
110 return LayoutRect(); 110 return LayoutRect();
111 111
112 LayoutObject* layoutObject; 112 LayoutObject* layoutObject;
113 if (m_parent && m_parent->isAXLayoutObject()) 113 if (m_parent && m_parent->isAXLayoutObject())
114 layoutObject = toAXLayoutObject(m_parent)->layoutObject(); 114 layoutObject = toAXLayoutObject(m_parent)->getLayoutObject();
115 else 115 else
116 layoutObject = map->layoutObject(); 116 layoutObject = map->layoutObject();
117 117
118 if (!layoutObject) 118 if (!layoutObject)
119 return LayoutRect(); 119 return LayoutRect();
120 120
121 return area->computeRect(layoutObject); 121 return area->computeRect(layoutObject);
122 } 122 }
123 123
124 DEFINE_TRACE(AXImageMapLink) 124 DEFINE_TRACE(AXImageMapLink)
125 { 125 {
126 AXNodeObject::trace(visitor); 126 AXNodeObject::trace(visitor);
127 } 127 }
128 128
129 } // namespace blink 129 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698