OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 | 69 |
70 void AXSpinButton::addChildren() { | 70 void AXSpinButton::addChildren() { |
71 ASSERT(!isDetached()); | 71 ASSERT(!isDetached()); |
72 m_haveChildren = true; | 72 m_haveChildren = true; |
73 | 73 |
74 AXSpinButtonPart* incrementor = | 74 AXSpinButtonPart* incrementor = |
75 toAXSpinButtonPart(axObjectCache().getOrCreate(SpinButtonPartRole)); | 75 toAXSpinButtonPart(axObjectCache().getOrCreate(SpinButtonPartRole)); |
76 incrementor->setIsIncrementor(true); | 76 incrementor->setIsIncrementor(true); |
77 incrementor->setParent(this); | 77 incrementor->setParent(this); |
78 m_children.append(incrementor); | 78 m_children.push_back(incrementor); |
79 | 79 |
80 AXSpinButtonPart* decrementor = | 80 AXSpinButtonPart* decrementor = |
81 toAXSpinButtonPart(axObjectCache().getOrCreate(SpinButtonPartRole)); | 81 toAXSpinButtonPart(axObjectCache().getOrCreate(SpinButtonPartRole)); |
82 decrementor->setIsIncrementor(false); | 82 decrementor->setIsIncrementor(false); |
83 decrementor->setParent(this); | 83 decrementor->setParent(this); |
84 m_children.append(decrementor); | 84 m_children.push_back(decrementor); |
85 } | 85 } |
86 | 86 |
87 void AXSpinButton::step(int amount) { | 87 void AXSpinButton::step(int amount) { |
88 ASSERT(m_spinButtonElement); | 88 ASSERT(m_spinButtonElement); |
89 if (!m_spinButtonElement) | 89 if (!m_spinButtonElement) |
90 return; | 90 return; |
91 | 91 |
92 m_spinButtonElement->step(amount); | 92 m_spinButtonElement->step(amount); |
93 } | 93 } |
94 | 94 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 AXSpinButton* spinButton = toAXSpinButton(parentObject()); | 135 AXSpinButton* spinButton = toAXSpinButton(parentObject()); |
136 if (m_isIncrementor) | 136 if (m_isIncrementor) |
137 spinButton->step(1); | 137 spinButton->step(1); |
138 else | 138 else |
139 spinButton->step(-1); | 139 spinButton->step(-1); |
140 | 140 |
141 return true; | 141 return true; |
142 } | 142 } |
143 | 143 |
144 } // namespace blink | 144 } // namespace blink |
OLD | NEW |