OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. |
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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 LayoutBox* findInFlowLegend() const; | 35 LayoutBox* findInFlowLegend() const; |
36 | 36 |
37 const char* name() const override { return "LayoutFieldset"; } | 37 const char* name() const override { return "LayoutFieldset"; } |
38 | 38 |
39 private: | 39 private: |
40 void addChild(LayoutObject* newChild, | 40 void addChild(LayoutObject* newChild, |
41 LayoutObject* beforeChild = nullptr) override; | 41 LayoutObject* beforeChild = nullptr) override; |
42 bool avoidsFloats() const override { return true; } | 42 bool avoidsFloats() const override { return true; } |
43 | 43 |
44 // We override the two baseline functions because we want our baseline to be t
he bottom of our margin box. | 44 // We override the two baseline functions because we want our baseline to be |
| 45 // the bottom of our margin box. |
45 int baselinePosition(FontBaseline, | 46 int baselinePosition(FontBaseline, |
46 bool firstLine, | 47 bool firstLine, |
47 LineDirectionMode, | 48 LineDirectionMode, |
48 LinePositionMode) const override; | 49 LinePositionMode) const override; |
49 int inlineBlockBaseline(LineDirectionMode) const override { return -1; } | 50 int inlineBlockBaseline(LineDirectionMode) const override { return -1; } |
50 | 51 |
51 void computeIntrinsicLogicalWidths( | 52 void computeIntrinsicLogicalWidths( |
52 LayoutUnit& minLogicalWidth, | 53 LayoutUnit& minLogicalWidth, |
53 LayoutUnit& maxLogicalWidth) const override; | 54 LayoutUnit& maxLogicalWidth) const override; |
54 bool createsAnonymousWrapper() const override { return true; } | 55 bool createsAnonymousWrapper() const override { return true; } |
(...skipping 14 matching lines...) Expand all Loading... |
69 void removeChild(LayoutObject*) override; | 70 void removeChild(LayoutObject*) override; |
70 | 71 |
71 LayoutBlock* m_innerBlock; | 72 LayoutBlock* m_innerBlock; |
72 }; | 73 }; |
73 | 74 |
74 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFieldset, isFieldset()); | 75 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFieldset, isFieldset()); |
75 | 76 |
76 } // namespace blink | 77 } // namespace blink |
77 | 78 |
78 #endif // LayoutFieldset_h | 79 #endif // LayoutFieldset_h |
OLD | NEW |