| 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 30 matching lines...) Expand all Loading... |
| 41 , m_spinButtonElement(0) | 41 , m_spinButtonElement(0) |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 AXSpinButton::~AXSpinButton() | 45 AXSpinButton::~AXSpinButton() |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 LayoutRect AXSpinButton::elementRect() const | 49 LayoutRect AXSpinButton::elementRect() const |
| 50 { | 50 { |
| 51 if (!m_spinButtonElement || !m_spinButtonElement->renderer()) | 51 if (!m_spinButtonElement || !m_spinButtonElement->layoutObject()) |
| 52 return LayoutRect(); | 52 return LayoutRect(); |
| 53 | 53 |
| 54 return LayoutRect(m_spinButtonElement->renderer()->absoluteFocusRingBounding
BoxRect()); | 54 return LayoutRect(m_spinButtonElement->layoutObject()->absoluteFocusRingBoun
dingBoxRect()); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void AXSpinButton::detach() | 57 void AXSpinButton::detach() |
| 58 { | 58 { |
| 59 AXObject::detach(); | 59 AXObject::detach(); |
| 60 m_spinButtonElement = 0; | 60 m_spinButtonElement = 0; |
| 61 } | 61 } |
| 62 | 62 |
| 63 void AXSpinButton::detachFromParent() | 63 void AXSpinButton::detachFromParent() |
| 64 { | 64 { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 AXSpinButton* spinButton = toAXSpinButton(parentObject()); | 132 AXSpinButton* spinButton = toAXSpinButton(parentObject()); |
| 133 if (m_isIncrementor) | 133 if (m_isIncrementor) |
| 134 spinButton->step(1); | 134 spinButton->step(1); |
| 135 else | 135 else |
| 136 spinButton->step(-1); | 136 spinButton->step(-1); |
| 137 | 137 |
| 138 return true; | 138 return true; |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |