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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 { | 51 { |
52 visitor->trace(m_spinButtonElement); | 52 visitor->trace(m_spinButtonElement); |
53 AXMockObject::trace(visitor); | 53 AXMockObject::trace(visitor); |
54 } | 54 } |
55 | 55 |
56 LayoutRect AXSpinButton::elementRect() const | 56 LayoutRect AXSpinButton::elementRect() const |
57 { | 57 { |
58 if (!m_spinButtonElement || !m_spinButtonElement->layoutObject()) | 58 if (!m_spinButtonElement || !m_spinButtonElement->layoutObject()) |
59 return LayoutRect(); | 59 return LayoutRect(); |
60 | 60 |
61 return LayoutRect(m_spinButtonElement->layoutObject()->absoluteFocusRingBoun
dingBoxRect()); | 61 return LayoutRect(m_spinButtonElement->layoutObject()->absoluteOutlineBoundi
ngBoxRect()); |
62 } | 62 } |
63 | 63 |
64 void AXSpinButton::detach() | 64 void AXSpinButton::detach() |
65 { | 65 { |
66 AXObject::detach(); | 66 AXObject::detach(); |
67 m_spinButtonElement = nullptr; | 67 m_spinButtonElement = nullptr; |
68 } | 68 } |
69 | 69 |
70 void AXSpinButton::detachFromParent() | 70 void AXSpinButton::detachFromParent() |
71 { | 71 { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 AXSpinButton* spinButton = toAXSpinButton(parentObject()); | 139 AXSpinButton* spinButton = toAXSpinButton(parentObject()); |
140 if (m_isIncrementor) | 140 if (m_isIncrementor) |
141 spinButton->step(1); | 141 spinButton->step(1); |
142 else | 142 else |
143 spinButton->step(-1); | 143 spinButton->step(-1); |
144 | 144 |
145 return true; | 145 return true; |
146 } | 146 } |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
OLD | NEW |