| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * 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. |
| 10 * | 10 * |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 virtual RenderObjectChildList* virtualChildren() override { return children(
); } | 102 virtual RenderObjectChildList* virtualChildren() override { return children(
); } |
| 103 virtual const RenderObjectChildList* virtualChildren() const override { retu
rn children(); } | 103 virtual const RenderObjectChildList* virtualChildren() const override { retu
rn children(); } |
| 104 | 104 |
| 105 virtual const char* renderName() const override { return "RenderFrameSet"; } | 105 virtual const char* renderName() const override { return "RenderFrameSet"; } |
| 106 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectFrameSet || RenderBox::isOfType(type); } | 106 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectFrameSet || RenderBox::isOfType(type); } |
| 107 | 107 |
| 108 virtual void layout() override; | 108 virtual void layout() override; |
| 109 virtual void paint(const PaintInfo&, const LayoutPoint&) override; | 109 virtual void paint(const PaintInfo&, const LayoutPoint&) override; |
| 110 virtual void computePreferredLogicalWidths() override; | 110 virtual void computePreferredLogicalWidths() override; |
| 111 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override; | 111 virtual bool isChildAllowed(RenderObject*, const RenderStyle*) const overrid
e; |
| 112 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const overrid
e; | 112 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const overrid
e; |
| 113 | 113 |
| 114 void setIsResizing(bool); | 114 void setIsResizing(bool); |
| 115 | 115 |
| 116 void layOutAxis(GridAxis&, const Vector<HTMLDimension>&, int availableSpace)
; | 116 void layOutAxis(GridAxis&, const Vector<HTMLDimension>&, int availableSpace)
; |
| 117 void computeEdgeInfo(); | 117 void computeEdgeInfo(); |
| 118 void fillFromEdgeInfo(const FrameEdgeInfo& edgeInfo, int r, int c); | 118 void fillFromEdgeInfo(const FrameEdgeInfo& edgeInfo, int r, int c); |
| 119 void positionFrames(); | 119 void positionFrames(); |
| 120 | 120 |
| 121 int splitPosition(const GridAxis&, int split) const; | 121 int splitPosition(const GridAxis&, int split) const; |
| 122 int hitTestSplit(const GridAxis&, int position) const; | 122 int hitTestSplit(const GridAxis&, int position) const; |
| 123 | 123 |
| 124 void startResizing(GridAxis&, int position); | 124 void startResizing(GridAxis&, int position); |
| 125 void continueResizing(GridAxis&, int position); | 125 void continueResizing(GridAxis&, int position); |
| 126 | 126 |
| 127 RenderObjectChildList m_children; | 127 RenderObjectChildList m_children; |
| 128 | 128 |
| 129 GridAxis m_rows; | 129 GridAxis m_rows; |
| 130 GridAxis m_cols; | 130 GridAxis m_cols; |
| 131 | 131 |
| 132 bool m_isResizing; | 132 bool m_isResizing; |
| 133 bool m_isChildResizing; | 133 bool m_isChildResizing; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFrameSet, isFrameSet()); | 136 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFrameSet, isFrameSet()); |
| 137 | 137 |
| 138 } // namespace blink | 138 } // namespace blink |
| 139 | 139 |
| 140 #endif // RenderFrameSet_h | 140 #endif // RenderFrameSet_h |
| OLD | NEW |