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, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights 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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 void setNeedsPositionedMovementLayout(bool b) { m_bitfields.setNeedsPosition
edMovementLayout(b); } | 1192 void setNeedsPositionedMovementLayout(bool b) { m_bitfields.setNeedsPosition
edMovementLayout(b); } |
1193 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo
ut(b); } | 1193 void setNormalChildNeedsLayout(bool b) { m_bitfields.setNormalChildNeedsLayo
ut(b); } |
1194 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b);
} | 1194 void setPosChildNeedsLayout(bool b) { m_bitfields.setPosChildNeedsLayout(b);
} |
1195 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli
fiedNormalFlowLayout(b); } | 1195 void setNeedsSimplifiedNormalFlowLayout(bool b) { m_bitfields.setNeedsSimpli
fiedNormalFlowLayout(b); } |
1196 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); } | 1196 void setIsDragging(bool b) { m_bitfields.setIsDragging(b); } |
1197 void setEverHadLayout(bool b) { m_bitfields.setEverHadLayout(b); } | 1197 void setEverHadLayout(bool b) { m_bitfields.setEverHadLayout(b); } |
1198 | 1198 |
1199 private: | 1199 private: |
1200 // Store state between styleWillChange and styleDidChange | 1200 // Store state between styleWillChange and styleDidChange |
1201 static bool s_affectsParentBlock; | 1201 static bool s_affectsParentBlock; |
| 1202 |
| 1203 // FIXME: Those variables are here for some performance measurements. |
| 1204 // They shouldn't stick in the tree. If they do, poke jchaffraix! |
| 1205 LayoutRect m_dummyRectThatShouldntStickInTree1; |
| 1206 LayoutRect m_dummyRectThatShouldntStickInTree2; |
1202 }; | 1207 }; |
1203 | 1208 |
1204 inline bool RenderObject::documentBeingDestroyed() const | 1209 inline bool RenderObject::documentBeingDestroyed() const |
1205 { | 1210 { |
1206 return !document().renderer(); | 1211 return !document().renderer(); |
1207 } | 1212 } |
1208 | 1213 |
1209 inline bool RenderObject::isBeforeContent() const | 1214 inline bool RenderObject::isBeforeContent() const |
1210 { | 1215 { |
1211 if (style()->styleType() != BEFORE) | 1216 if (style()->styleType() != BEFORE) |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 void showTree(const WebCore::RenderObject*); | 1398 void showTree(const WebCore::RenderObject*); |
1394 void showLineTree(const WebCore::RenderObject*); | 1399 void showLineTree(const WebCore::RenderObject*); |
1395 void showRenderTree(const WebCore::RenderObject* object1); | 1400 void showRenderTree(const WebCore::RenderObject* object1); |
1396 // We don't make object2 an optional parameter so that showRenderTree | 1401 // We don't make object2 an optional parameter so that showRenderTree |
1397 // can be called from gdb easily. | 1402 // can be called from gdb easily. |
1398 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1403 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1399 | 1404 |
1400 #endif | 1405 #endif |
1401 | 1406 |
1402 #endif // RenderObject_h | 1407 #endif // RenderObject_h |
OLD | NEW |