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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual const char* renderName() const { return "RenderFrameSet"; } | 103 virtual const char* renderName() const { return "RenderFrameSet"; } |
104 virtual bool isFrameSet() const { return true; } | 104 virtual bool isFrameSet() const { return true; } |
105 | 105 |
106 virtual void layout(); | 106 virtual void layout(); |
107 virtual void paint(PaintInfo&, const LayoutPoint&); | 107 virtual void paint(PaintInfo&, const LayoutPoint&); |
108 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; | 108 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; |
109 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const; | 109 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const; |
110 | 110 |
111 inline HTMLFrameSetElement* frameSet() const; | 111 inline HTMLFrameSetElement* frameSet() const; |
112 | 112 |
113 bool flattenFrameSet() const; | |
114 | |
115 void setIsResizing(bool); | 113 void setIsResizing(bool); |
116 | 114 |
117 void layOutAxis(GridAxis&, const Length*, int availableSpace); | 115 void layOutAxis(GridAxis&, const Length*, int availableSpace); |
118 void computeEdgeInfo(); | 116 void computeEdgeInfo(); |
119 void fillFromEdgeInfo(const FrameEdgeInfo& edgeInfo, int r, int c); | 117 void fillFromEdgeInfo(const FrameEdgeInfo& edgeInfo, int r, int c); |
120 void positionFrames(); | 118 void positionFrames(); |
121 void positionFramesWithFlattening(); | |
122 | 119 |
123 int splitPosition(const GridAxis&, int split) const; | 120 int splitPosition(const GridAxis&, int split) const; |
124 int hitTestSplit(const GridAxis&, int position) const; | 121 int hitTestSplit(const GridAxis&, int position) const; |
125 | 122 |
126 void startResizing(GridAxis&, int position); | 123 void startResizing(GridAxis&, int position); |
127 void continueResizing(GridAxis&, int position); | 124 void continueResizing(GridAxis&, int position); |
128 | 125 |
129 void paintRowBorder(const PaintInfo&, const IntRect&); | 126 void paintRowBorder(const PaintInfo&, const IntRect&); |
130 void paintColumnBorder(const PaintInfo&, const IntRect&); | 127 void paintColumnBorder(const PaintInfo&, const IntRect&); |
131 | 128 |
(...skipping 12 matching lines...) Expand all Loading... |
144 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrameSet()); | 141 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrameSet()); |
145 return static_cast<RenderFrameSet*>(object); | 142 return static_cast<RenderFrameSet*>(object); |
146 } | 143 } |
147 | 144 |
148 // This will catch anyone doing an unnecessary cast. | 145 // This will catch anyone doing an unnecessary cast. |
149 void toRenderFrameSet(const RenderFrameSet*); | 146 void toRenderFrameSet(const RenderFrameSet*); |
150 | 147 |
151 } // namespace WebCore | 148 } // namespace WebCore |
152 | 149 |
153 #endif // RenderFrameSet_h | 150 #endif // RenderFrameSet_h |
OLD | NEW |