OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. |
3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "core/dom/shadow/ShadowRoot.h" | 28 #include "core/dom/shadow/ShadowRoot.h" |
29 #include "core/editing/FrameSelection.h" | 29 #include "core/editing/FrameSelection.h" |
30 #include "core/frame/LocalFrame.h" | 30 #include "core/frame/LocalFrame.h" |
31 #include "core/html/shadow/ShadowElementNames.h" | 31 #include "core/html/shadow/ShadowElementNames.h" |
32 #include "core/rendering/HitTestResult.h" | 32 #include "core/rendering/HitTestResult.h" |
33 #include "core/rendering/RenderLayer.h" | 33 #include "core/rendering/RenderLayer.h" |
34 #include "core/rendering/RenderTheme.h" | 34 #include "core/rendering/RenderTheme.h" |
35 #include "platform/PlatformKeyboardEvent.h" | 35 #include "platform/PlatformKeyboardEvent.h" |
36 #include "platform/fonts/SimpleFontData.h" | 36 #include "platform/fonts/SimpleFontData.h" |
37 | 37 |
38 using namespace std; | |
39 | |
40 namespace WebCore { | 38 namespace WebCore { |
41 | 39 |
42 using namespace HTMLNames; | 40 using namespace HTMLNames; |
43 | 41 |
44 RenderTextControlSingleLine::RenderTextControlSingleLine(HTMLInputElement* eleme
nt) | 42 RenderTextControlSingleLine::RenderTextControlSingleLine(HTMLInputElement* eleme
nt) |
45 : RenderTextControl(element) | 43 : RenderTextControl(element) |
46 , m_shouldDrawCapsLockIndicator(false) | 44 , m_shouldDrawCapsLockIndicator(false) |
47 , m_desiredInnerEditorLogicalHeight(-1) | 45 , m_desiredInnerEditorLogicalHeight(-1) |
48 { | 46 { |
49 } | 47 } |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 if (innerEditorElement()) | 417 if (innerEditorElement()) |
420 innerEditorElement()->setScrollTop(newTop); | 418 innerEditorElement()->setScrollTop(newTop); |
421 } | 419 } |
422 | 420 |
423 HTMLInputElement* RenderTextControlSingleLine::inputElement() const | 421 HTMLInputElement* RenderTextControlSingleLine::inputElement() const |
424 { | 422 { |
425 return toHTMLInputElement(node()); | 423 return toHTMLInputElement(node()); |
426 } | 424 } |
427 | 425 |
428 } | 426 } |
OLD | NEW |