| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, Layout
Unit nonContentHeight) const = 0; | 60 virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, Layout
Unit nonContentHeight) const = 0; |
| 61 virtual RenderStyle* textBaseStyle() const = 0; | 61 virtual RenderStyle* textBaseStyle() const = 0; |
| 62 | 62 |
| 63 virtual void updateFromElement(); | 63 virtual void updateFromElement(); |
| 64 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; | 64 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const OVERRIDE; |
| 65 virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren, Subt
reeLayoutScope&); | 65 virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren, Subt
reeLayoutScope&); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 virtual const char* renderName() const { return "RenderTextControl"; } | 68 virtual const char* renderName() const { return "RenderTextControl"; } |
| 69 virtual bool isTextControl() const { return true; } | 69 virtual bool isTextControl() const { return true; } |
| 70 virtual bool supportsPartialLayout() const OVERRIDE { return false; } |
| 70 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 71 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
| 71 virtual void computePreferredLogicalWidths() OVERRIDE; | 72 virtual void computePreferredLogicalWidths() OVERRIDE; |
| 72 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } | 73 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } |
| 73 virtual bool avoidsFloats() const { return true; } | 74 virtual bool avoidsFloats() const { return true; } |
| 74 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; } | 75 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; } |
| 75 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; | 76 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; |
| 76 | 77 |
| 77 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; | 78 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; |
| 78 | 79 |
| 79 virtual bool canBeProgramaticallyScrolled() const { return true; } | 80 virtual bool canBeProgramaticallyScrolled() const { return true; } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 106 : RenderFlexibleBox(element) | 107 : RenderFlexibleBox(element) |
| 107 { } | 108 { } |
| 108 virtual ~RenderTextControlInnerContainer() { } | 109 virtual ~RenderTextControlInnerContainer() { } |
| 109 | 110 |
| 110 virtual int baselinePosition(FontBaseline baseline, bool firstLine, LineDire
ctionMode direction, LinePositionMode position) const OVERRIDE | 111 virtual int baselinePosition(FontBaseline baseline, bool firstLine, LineDire
ctionMode direction, LinePositionMode position) const OVERRIDE |
| 111 { | 112 { |
| 112 return RenderBlock::baselinePosition(baseline, firstLine, direction, pos
ition); | 113 return RenderBlock::baselinePosition(baseline, firstLine, direction, pos
ition); |
| 113 } | 114 } |
| 114 virtual int firstLineBoxBaseline() const OVERRIDE { return RenderBlock::firs
tLineBoxBaseline(); } | 115 virtual int firstLineBoxBaseline() const OVERRIDE { return RenderBlock::firs
tLineBoxBaseline(); } |
| 115 virtual int inlineBlockBaseline(LineDirectionMode direction) const OVERRIDE
{ return lastLineBoxBaseline(direction); } | 116 virtual int inlineBlockBaseline(LineDirectionMode direction) const OVERRIDE
{ return lastLineBoxBaseline(direction); } |
| 116 | 117 virtual bool supportsPartialLayout() const OVERRIDE { return false; } |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 | 120 |
| 120 } // namespace WebCore | 121 } // namespace WebCore |
| 121 | 122 |
| 122 #endif // RenderTextControl_h | 123 #endif // RenderTextControl_h |
| OLD | NEW |