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

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

Issue 1798043002: Removed CORE_EXPORT from APIs at NodeTraversal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #include "modules/accessibility/AXRadioInput.h" 6 #include "modules/accessibility/AXRadioInput.h"
7 7
8 #include "core/InputTypeNames.h" 8 #include "core/InputTypeNames.h"
9 #include "core/dom/ElementTraversal.h"
10 #include "core/html/HTMLFormElement.h"
11 #include "core/html/HTMLInputElement.h" 9 #include "core/html/HTMLInputElement.h"
10 #include "core/html/forms/RadioInputType.h"
12 #include "modules/accessibility/AXObjectCacheImpl.h" 11 #include "modules/accessibility/AXObjectCacheImpl.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 namespace {
17
18 HTMLElement* nextElement(const HTMLElement& element, HTMLFormElement* stayWithin , bool forward)
19 {
20 return forward ? Traversal<HTMLElement>::next(element, static_cast<Node*>(st ayWithin)) : Traversal<HTMLElement>::previous(element, static_cast<Node*>(stayWi thin));
21 }
22
23 } // namespace
24
25 using namespace HTMLNames; 15 using namespace HTMLNames;
26 16
27 AXRadioInput::AXRadioInput(LayoutObject* layoutObject, AXObjectCacheImpl& axObje ctCache) 17 AXRadioInput::AXRadioInput(LayoutObject* layoutObject, AXObjectCacheImpl& axObje ctCache)
28 : AXLayoutObject(layoutObject, axObjectCache) 18 : AXLayoutObject(layoutObject, axObjectCache)
29 { 19 {
30 // Updates posInSet and setSize for the current object and the next objects. 20 // Updates posInSet and setSize for the current object and the next objects.
31 if (!calculatePosInSet()) 21 if (!calculatePosInSet())
32 return; 22 return;
33 // When a new object is inserted, it needs to update setSize for the previou s objects. 23 // When a new object is inserted, it needs to update setSize for the previou s objects.
34 requestUpdateToNextNode(false); 24 requestUpdateToNextNode(false);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 int AXRadioInput::sizeOfRadioGroup() const 137 int AXRadioInput::sizeOfRadioGroup() const
148 { 138 {
149 int size = element()->sizeOfRadioGroup(); 139 int size = element()->sizeOfRadioGroup();
150 // If it has no size in Group, it means that there is only itself. 140 // If it has no size in Group, it means that there is only itself.
151 if (!size) 141 if (!size)
152 return 1; 142 return 1;
153 return size; 143 return size;
154 } 144 }
155 145
156 } // namespace blink 146 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698