| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 LayoutRect AXSpinButton::elementRect() const | 48 LayoutRect AXSpinButton::elementRect() const |
| 49 { | 49 { |
| 50 ASSERT(m_spinButtonElement); | 50 ASSERT(m_spinButtonElement); |
| 51 | 51 |
| 52 if (!m_spinButtonElement || !m_spinButtonElement->renderer()) | 52 if (!m_spinButtonElement || !m_spinButtonElement->renderer()) |
| 53 return LayoutRect(); | 53 return LayoutRect(); |
| 54 | 54 |
| 55 Vector<FloatQuad> quads; | 55 return m_spinButtonElement->renderer()->absoluteFocusRingBoundingBoxRect(); |
| 56 m_spinButtonElement->renderer()->absoluteFocusRingQuads(quads); | |
| 57 | |
| 58 return boundingBoxForQuads(m_spinButtonElement->renderer(), quads); | |
| 59 } | 56 } |
| 60 | 57 |
| 61 void AXSpinButton::addChildren() | 58 void AXSpinButton::addChildren() |
| 62 { | 59 { |
| 63 m_haveChildren = true; | 60 m_haveChildren = true; |
| 64 | 61 |
| 65 AXSpinButtonPart* incrementor = toAXSpinButtonPart(axObjectCache()->getOrCre
ate(SpinButtonPartRole)); | 62 AXSpinButtonPart* incrementor = toAXSpinButtonPart(axObjectCache()->getOrCre
ate(SpinButtonPartRole)); |
| 66 incrementor->setIsIncrementor(true); | 63 incrementor->setIsIncrementor(true); |
| 67 incrementor->setParent(this); | 64 incrementor->setParent(this); |
| 68 m_children.append(incrementor); | 65 m_children.append(incrementor); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 AXSpinButton* spinButton = toAXSpinButton(parentObject()); | 115 AXSpinButton* spinButton = toAXSpinButton(parentObject()); |
| 119 if (m_isIncrementor) | 116 if (m_isIncrementor) |
| 120 spinButton->step(1); | 117 spinButton->step(1); |
| 121 else | 118 else |
| 122 spinButton->step(-1); | 119 spinButton->step(-1); |
| 123 | 120 |
| 124 return true; | 121 return true; |
| 125 } | 122 } |
| 126 | 123 |
| 127 } // namespace blink | 124 } // namespace blink |
| OLD | NEW |