| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 private: | 68 private: |
| 69 virtual const char* renderName() const { return "RenderTextControl"; } | 69 virtual const char* renderName() const { return "RenderTextControl"; } |
| 70 virtual bool isTextControl() const { return true; } | 70 virtual bool isTextControl() const { return true; } |
| 71 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 71 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
| 72 virtual void computePreferredLogicalWidths() OVERRIDE; | 72 virtual void computePreferredLogicalWidths() OVERRIDE; |
| 73 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } | 73 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } |
| 74 virtual bool avoidsFloats() const { return true; } | 74 virtual bool avoidsFloats() const { return true; } |
| 75 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; } | 75 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; } |
| 76 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; | 76 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; |
| 77 | 77 |
| 78 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint&); | 78 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; |
| 79 | 79 |
| 80 virtual bool canBeProgramaticallyScrolled() const { return true; } | 80 virtual bool canBeProgramaticallyScrolled() const { return true; } |
| 81 | 81 |
| 82 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } | 82 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 inline RenderTextControl* toRenderTextControl(RenderObject* object) | 85 inline RenderTextControl* toRenderTextControl(RenderObject* object) |
| 86 { | 86 { |
| 87 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl()); | 87 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl()); |
| 88 return static_cast<RenderTextControl*>(object); | 88 return static_cast<RenderTextControl*>(object); |
| 89 } | 89 } |
| 90 | 90 |
| 91 inline const RenderTextControl* toRenderTextControl(const RenderObject* object) | 91 inline const RenderTextControl* toRenderTextControl(const RenderObject* object) |
| 92 { | 92 { |
| 93 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl()); | 93 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl()); |
| 94 return static_cast<const RenderTextControl*>(object); | 94 return static_cast<const RenderTextControl*>(object); |
| 95 } | 95 } |
| 96 | 96 |
| 97 // This will catch anyone doing an unnecessary cast. | 97 // This will catch anyone doing an unnecessary cast. |
| 98 void toRenderTextControl(const RenderTextControl*); | 98 void toRenderTextControl(const RenderTextControl*); |
| 99 | 99 |
| 100 } // namespace WebCore | 100 } // namespace WebCore |
| 101 | 101 |
| 102 #endif // RenderTextControl_h | 102 #endif // RenderTextControl_h |
| OLD | NEW |