OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple 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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 17 matching lines...) Expand all Loading... |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #include "config.h" | 32 #include "config.h" |
33 #include "core/html/TextFieldInputType.h" | 33 #include "core/html/TextFieldInputType.h" |
34 | 34 |
35 #include "HTMLNames.h" | 35 #include "HTMLNames.h" |
36 #include "core/dom/BeforeTextInsertedEvent.h" | 36 #include "core/dom/BeforeTextInsertedEvent.h" |
37 #include "core/dom/KeyboardEvent.h" | 37 #include "core/dom/KeyboardEvent.h" |
38 #include "core/dom/NodeRenderStyle.h" | |
39 #include "core/dom/TextEvent.h" | 38 #include "core/dom/TextEvent.h" |
40 #include "core/dom/WheelEvent.h" | |
41 #include "core/dom/shadow/ElementShadow.h" | |
42 #include "core/dom/shadow/ShadowRoot.h" | 39 #include "core/dom/shadow/ShadowRoot.h" |
43 #include "core/editing/Editor.h" | 40 #include "core/editing/Editor.h" |
44 #include "core/editing/FrameSelection.h" | 41 #include "core/editing/FrameSelection.h" |
45 #include "core/editing/TextIterator.h" | 42 #include "core/editing/TextIterator.h" |
46 #include "core/html/FormDataList.h" | 43 #include "core/html/FormDataList.h" |
47 #include "core/html/HTMLInputElement.h" | 44 #include "core/html/HTMLInputElement.h" |
48 #include "core/html/shadow/TextControlInnerElements.h" | 45 #include "core/html/shadow/TextControlInnerElements.h" |
49 #include "core/page/Chrome.h" | 46 #include "core/page/Chrome.h" |
50 #include "core/page/ChromeClient.h" | 47 #include "core/page/ChromeClient.h" |
51 #include "core/page/Frame.h" | 48 #include "core/page/Frame.h" |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 { | 512 { |
516 return !element()->isDisabledOrReadOnly(); | 513 return !element()->isDisabledOrReadOnly(); |
517 } | 514 } |
518 | 515 |
519 bool TextFieldInputType::shouldSpinButtonRespondToWheelEvents() | 516 bool TextFieldInputType::shouldSpinButtonRespondToWheelEvents() |
520 { | 517 { |
521 return shouldSpinButtonRespondToMouseEvents() && element()->focused(); | 518 return shouldSpinButtonRespondToMouseEvents() && element()->focused(); |
522 } | 519 } |
523 | 520 |
524 } // namespace WebCore | 521 } // namespace WebCore |
OLD | NEW |