OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 RenderNamedFlowThread* enclosingRenderNamedFlowThread() const; | 231 RenderNamedFlowThread* enclosingRenderNamedFlowThread() const; |
232 | 232 |
233 virtual bool isEmpty() const { return firstChild() == 0; } | 233 virtual bool isEmpty() const { return firstChild() == 0; } |
234 | 234 |
235 #ifndef NDEBUG | 235 #ifndef NDEBUG |
236 void setHasAXObject(bool flag) { m_hasAXObject = flag; } | 236 void setHasAXObject(bool flag) { m_hasAXObject = flag; } |
237 bool hasAXObject() const { return m_hasAXObject; } | 237 bool hasAXObject() const { return m_hasAXObject; } |
238 bool isSetNeedsLayoutForbidden() const { return m_setNeedsLayoutForbidden; } | 238 bool isSetNeedsLayoutForbidden() const { return m_setNeedsLayoutForbidden; } |
239 void setNeedsLayoutIsForbidden(bool flag) { m_setNeedsLayoutForbidden = flag
; } | 239 void setNeedsLayoutIsForbidden(bool flag) { m_setNeedsLayoutForbidden = flag
; } |
| 240 |
| 241 // Helper class forbidding calls to setNeedsLayout() during its lifetime. |
| 242 class SetLayoutNeededForbiddenScope { |
| 243 public: |
| 244 explicit SetLayoutNeededForbiddenScope(RenderObject*); |
| 245 ~SetLayoutNeededForbiddenScope(); |
| 246 private: |
| 247 RenderObject* m_renderObject; |
| 248 bool m_preexistingForbidden; |
| 249 }; |
240 #endif | 250 #endif |
241 | 251 |
242 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline | 252 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline |
243 // children. | 253 // children. |
244 virtual RenderBlock* firstLineBlock() const; | 254 virtual RenderBlock* firstLineBlock() const; |
245 | 255 |
246 // Called when an object that was floating or positioned becomes a normal fl
ow object | 256 // Called when an object that was floating or positioned becomes a normal fl
ow object |
247 // again. We have to make sure the render tree updates as needed to accommo
date the new | 257 // again. We have to make sure the render tree updates as needed to accommo
date the new |
248 // normal flow object. | 258 // normal flow object. |
249 void handleDynamicFloatPositionChange(); | 259 void handleDynamicFloatPositionChange(); |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 // Outside the WebCore namespace for ease of invocation from gdb. | 1268 // Outside the WebCore namespace for ease of invocation from gdb. |
1259 void showTree(const WebCore::RenderObject*); | 1269 void showTree(const WebCore::RenderObject*); |
1260 void showLineTree(const WebCore::RenderObject*); | 1270 void showLineTree(const WebCore::RenderObject*); |
1261 void showRenderTree(const WebCore::RenderObject* object1); | 1271 void showRenderTree(const WebCore::RenderObject* object1); |
1262 // We don't make object2 an optional parameter so that showRenderTree | 1272 // We don't make object2 an optional parameter so that showRenderTree |
1263 // can be called from gdb easily. | 1273 // can be called from gdb easily. |
1264 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1274 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1265 #endif | 1275 #endif |
1266 | 1276 |
1267 #endif // RenderObject_h | 1277 #endif // RenderObject_h |
OLD | NEW |