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

Side by Side Diff: Source/modules/accessibility/AXSpinButton.cpp

Issue 1269123002: Preparation for combining paths of focus rings and outlines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove debug from fast/css/focus-ring-recursive-continuations.html Created 5 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698