| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| 4 * (http://www.torchmobile.com/) | 4 * (http://www.torchmobile.com/) |
| 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 28 matching lines...) Expand all Loading... |
| 39 PassRefPtr<ComputedStyle> createInnerEditorStyle( | 39 PassRefPtr<ComputedStyle> createInnerEditorStyle( |
| 40 const ComputedStyle& startStyle) const final; | 40 const ComputedStyle& startStyle) const final; |
| 41 | 41 |
| 42 void capsLockStateMayHaveChanged(); | 42 void capsLockStateMayHaveChanged(); |
| 43 | 43 |
| 44 protected: | 44 protected: |
| 45 Element* containerElement() const; | 45 Element* containerElement() const; |
| 46 Element* editingViewPortElement() const; | 46 Element* editingViewPortElement() const; |
| 47 HTMLInputElement* inputElement() const; | 47 HTMLInputElement* inputElement() const; |
| 48 | 48 |
| 49 char objectSize() const override { return sizeof(this); } |
| 50 |
| 49 private: | 51 private: |
| 50 bool hasControlClip() const final; | 52 bool hasControlClip() const final; |
| 51 LayoutRect controlClipRect(const LayoutPoint&) const final; | 53 LayoutRect controlClipRect(const LayoutPoint&) const final; |
| 52 bool isOfType(LayoutObjectType type) const override { | 54 bool isOfType(LayoutObjectType type) const override { |
| 53 return type == LayoutObjectTextField || LayoutTextControl::isOfType(type); | 55 return type == LayoutObjectTextField || LayoutTextControl::isOfType(type); |
| 54 } | 56 } |
| 55 | 57 |
| 56 void paint(const PaintInfo&, const LayoutPoint&) const override; | 58 void paint(const PaintInfo&, const LayoutPoint&) const override; |
| 57 void layout() override; | 59 void layout() override; |
| 58 | 60 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControlSingleLine, isTextField()); | 93 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControlSingleLine, isTextField()); |
| 92 | 94 |
| 93 // ---------------------------- | 95 // ---------------------------- |
| 94 | 96 |
| 95 class LayoutTextControlInnerEditor : public LayoutBlockFlow { | 97 class LayoutTextControlInnerEditor : public LayoutBlockFlow { |
| 96 public: | 98 public: |
| 97 LayoutTextControlInnerEditor(Element* element) : LayoutBlockFlow(element) {} | 99 LayoutTextControlInnerEditor(Element* element) : LayoutBlockFlow(element) {} |
| 98 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { | 100 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { |
| 99 return true; | 101 return true; |
| 100 } | 102 } |
| 103 char objectSize() const override { return sizeof(this); } |
| 101 | 104 |
| 102 private: | 105 private: |
| 103 bool isIntrinsicallyScrollable( | 106 bool isIntrinsicallyScrollable( |
| 104 ScrollbarOrientation orientation) const override { | 107 ScrollbarOrientation orientation) const override { |
| 105 return orientation == HorizontalScrollbar; | 108 return orientation == HorizontalScrollbar; |
| 106 } | 109 } |
| 107 bool scrollsOverflowX() const override { return hasOverflowClip(); } | 110 bool scrollsOverflowX() const override { return hasOverflowClip(); } |
| 108 bool scrollsOverflowY() const override { return false; } | 111 bool scrollsOverflowY() const override { return false; } |
| 109 bool hasLineIfEmpty() const override { return true; } | 112 bool hasLineIfEmpty() const override { return true; } |
| 110 }; | 113 }; |
| 111 | 114 |
| 112 } // namespace blink | 115 } // namespace blink |
| 113 | 116 |
| 114 #endif | 117 #endif |
| OLD | NEW |