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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 bool userResize(MouseEvent*); | 69 bool userResize(MouseEvent*); |
70 | 70 |
71 bool isResizingRow() const; | 71 bool isResizingRow() const; |
72 bool isResizingColumn() const; | 72 bool isResizingColumn() const; |
73 | 73 |
74 bool canResizeRow(const IntPoint&) const; | 74 bool canResizeRow(const IntPoint&) const; |
75 bool canResizeColumn(const IntPoint&) const; | 75 bool canResizeColumn(const IntPoint&) const; |
76 | 76 |
77 void notifyFrameEdgeInfoChanged(); | 77 void notifyFrameEdgeInfoChanged(); |
78 | 78 |
79 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
80 | |
81 private: | 79 private: |
82 static const int noSplit = -1; | 80 static const int noSplit = -1; |
83 | 81 |
84 class GridAxis { | 82 class GridAxis { |
85 WTF_MAKE_NONCOPYABLE(GridAxis); | 83 WTF_MAKE_NONCOPYABLE(GridAxis); |
86 public: | 84 public: |
87 GridAxis(); | 85 GridAxis(); |
88 void resize(int); | 86 void resize(int); |
89 | 87 |
90 void reportMemoryUsage(MemoryObjectInfo*) const; | |
91 | |
92 Vector<int> m_sizes; | 88 Vector<int> m_sizes; |
93 Vector<int> m_deltas; | 89 Vector<int> m_deltas; |
94 Vector<bool> m_preventResize; | 90 Vector<bool> m_preventResize; |
95 Vector<bool> m_allowBorder; | 91 Vector<bool> m_allowBorder; |
96 int m_splitBeingResized; | 92 int m_splitBeingResized; |
97 int m_splitResizeOffset; | 93 int m_splitResizeOffset; |
98 }; | 94 }; |
99 | 95 |
100 virtual RenderObjectChildList* virtualChildren() { return children(); } | 96 virtual RenderObjectChildList* virtualChildren() { return children(); } |
101 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } | 97 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrameSet()); | 140 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrameSet()); |
145 return static_cast<RenderFrameSet*>(object); | 141 return static_cast<RenderFrameSet*>(object); |
146 } | 142 } |
147 | 143 |
148 // This will catch anyone doing an unnecessary cast. | 144 // This will catch anyone doing an unnecessary cast. |
149 void toRenderFrameSet(const RenderFrameSet*); | 145 void toRenderFrameSet(const RenderFrameSet*); |
150 | 146 |
151 } // namespace WebCore | 147 } // namespace WebCore |
152 | 148 |
153 #endif // RenderFrameSet_h | 149 #endif // RenderFrameSet_h |
OLD | NEW |