OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 2 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| 3 * (http://www.torchmobile.com/) |
3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2009 Apple Inc. All rights reserved. |
4 * | 5 * |
5 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
9 * | 10 * |
10 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
(...skipping 28 matching lines...) Expand all Loading... |
41 bool nodeAtPoint(HitTestResult&, | 42 bool nodeAtPoint(HitTestResult&, |
42 const HitTestLocation& locationInContainer, | 43 const HitTestLocation& locationInContainer, |
43 const LayoutPoint& accumulatedOffset, | 44 const LayoutPoint& accumulatedOffset, |
44 HitTestAction) override; | 45 HitTestAction) override; |
45 | 46 |
46 float getAvgCharWidth(const AtomicString& family) const override; | 47 float getAvgCharWidth(const AtomicString& family) const override; |
47 LayoutUnit preferredContentLogicalWidth(float charWidth) const override; | 48 LayoutUnit preferredContentLogicalWidth(float charWidth) const override; |
48 LayoutUnit computeControlLogicalHeight( | 49 LayoutUnit computeControlLogicalHeight( |
49 LayoutUnit lineHeight, | 50 LayoutUnit lineHeight, |
50 LayoutUnit nonContentHeight) const override; | 51 LayoutUnit nonContentHeight) const override; |
51 // We override the two baseline functions because we want our baseline to be t
he bottom of our margin box. | 52 // We override the two baseline functions because we want our baseline to be |
| 53 // the bottom of our margin box. |
52 int baselinePosition( | 54 int baselinePosition( |
53 FontBaseline, | 55 FontBaseline, |
54 bool firstLine, | 56 bool firstLine, |
55 LineDirectionMode, | 57 LineDirectionMode, |
56 LinePositionMode = PositionOnContainingLine) const override; | 58 LinePositionMode = PositionOnContainingLine) const override; |
57 int inlineBlockBaseline(LineDirectionMode) const override { return -1; } | 59 int inlineBlockBaseline(LineDirectionMode) const override { return -1; } |
58 | 60 |
59 PassRefPtr<ComputedStyle> createInnerEditorStyle( | 61 PassRefPtr<ComputedStyle> createInnerEditorStyle( |
60 const ComputedStyle& startStyle) const override; | 62 const ComputedStyle& startStyle) const override; |
61 LayoutObject* layoutSpecialExcludedChild(bool relayoutChildren, | 63 LayoutObject* layoutSpecialExcludedChild(bool relayoutChildren, |
62 SubtreeLayoutScope&) override; | 64 SubtreeLayoutScope&) override; |
63 }; | 65 }; |
64 | 66 |
65 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControlMultiLine, isTextArea()); | 67 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControlMultiLine, isTextArea()); |
66 | 68 |
67 } // namespace blink | 69 } // namespace blink |
68 | 70 |
69 #endif | 71 #endif |
OLD | NEW |