| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { r
eturn true; } | 73 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { r
eturn true; } |
| 74 | 74 |
| 75 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTextControl || LayoutBlockFlow::isOfType(type); } | 75 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTextControl || LayoutBlockFlow::isOfType(type); } |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const final; | 78 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const final; |
| 79 void computePreferredLogicalWidths() final; | 79 void computePreferredLogicalWidths() final; |
| 80 void removeLeftoverAnonymousBlock(LayoutBlock*) final { } | 80 void removeLeftoverAnonymousBlock(LayoutBlock*) final { } |
| 81 bool avoidsFloats() const final { return true; } | 81 bool avoidsFloats() const final { return true; } |
| 82 | 82 |
| 83 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) f
inal; | |
| 84 | |
| 85 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const final; | 83 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const final; |
| 86 | 84 |
| 87 bool canBeProgramaticallyScrolled() const final { return true; } | 85 bool canBeProgramaticallyScrolled() const final { return true; } |
| 88 }; | 86 }; |
| 89 | 87 |
| 90 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControl, isTextControl()); | 88 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControl, isTextControl()); |
| 91 | 89 |
| 92 // LayoutObject for our inner container, for <search> and others. | 90 // LayoutObject for our inner container, for <search> and others. |
| 93 // We can't use LayoutFlexibleBox directly, because flexboxes have a different | 91 // We can't use LayoutFlexibleBox directly, because flexboxes have a different |
| 94 // baseline definition, and then inputs of different types wouldn't line up | 92 // baseline definition, and then inputs of different types wouldn't line up |
| (...skipping 11 matching lines...) Expand all Loading... |
| 106 } | 104 } |
| 107 int firstLineBoxBaseline() const override { return LayoutBlock::firstLineBox
Baseline(); } | 105 int firstLineBoxBaseline() const override { return LayoutBlock::firstLineBox
Baseline(); } |
| 108 int inlineBlockBaseline(LineDirectionMode direction) const override { return
LayoutBlock::inlineBlockBaseline(direction); } | 106 int inlineBlockBaseline(LineDirectionMode direction) const override { return
LayoutBlock::inlineBlockBaseline(direction); } |
| 109 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { r
eturn true; } | 107 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { r
eturn true; } |
| 110 }; | 108 }; |
| 111 | 109 |
| 112 | 110 |
| 113 } // namespace blink | 111 } // namespace blink |
| 114 | 112 |
| 115 #endif // LayoutTextControl_h | 113 #endif // LayoutTextControl_h |
| OLD | NEW |