| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 17 matching lines...) Expand all Loading... |
| 28 #include "SpinButtonElement.h" | 28 #include "SpinButtonElement.h" |
| 29 | 29 |
| 30 #include "Chrome.h" | 30 #include "Chrome.h" |
| 31 #include "EventHandler.h" | 31 #include "EventHandler.h" |
| 32 #include "EventNames.h" | 32 #include "EventNames.h" |
| 33 #include "Frame.h" | 33 #include "Frame.h" |
| 34 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 35 #include "MouseEvent.h" | 35 #include "MouseEvent.h" |
| 36 #include "Page.h" | 36 #include "Page.h" |
| 37 #include "RenderBox.h" | 37 #include "RenderBox.h" |
| 38 #include "ScrollbarTheme.h" | |
| 39 #include "WheelEvent.h" | 38 #include "WheelEvent.h" |
| 39 #include "core/platform/ScrollbarTheme.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 using namespace HTMLNames; | 43 using namespace HTMLNames; |
| 44 | 44 |
| 45 inline SpinButtonElement::SpinButtonElement(Document* document, SpinButtonOwner&
spinButtonOwner) | 45 inline SpinButtonElement::SpinButtonElement(Document* document, SpinButtonOwner&
spinButtonOwner) |
| 46 : HTMLDivElement(divTag, document) | 46 : HTMLDivElement(divTag, document) |
| 47 , m_spinButtonOwner(&spinButtonOwner) | 47 , m_spinButtonOwner(&spinButtonOwner) |
| 48 , m_capturing(false) | 48 , m_capturing(false) |
| 49 , m_upDownState(Indeterminate) | 49 , m_upDownState(Indeterminate) |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 m_upDownState = Indeterminate; | 255 m_upDownState = Indeterminate; |
| 256 HTMLDivElement::setHovered(flag); | 256 HTMLDivElement::setHovered(flag); |
| 257 } | 257 } |
| 258 | 258 |
| 259 bool SpinButtonElement::shouldRespondToMouseEvents() | 259 bool SpinButtonElement::shouldRespondToMouseEvents() |
| 260 { | 260 { |
| 261 return !m_spinButtonOwner || m_spinButtonOwner->shouldSpinButtonRespondToMou
seEvents(); | 261 return !m_spinButtonOwner || m_spinButtonOwner->shouldSpinButtonRespondToMou
seEvents(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 } | 264 } |
| OLD | NEW |