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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 | 1000 |
1001 bool simplifiedNormalFlowLayout = needsSimplifiedNormalFlowLayout() && !self
NeedsLayout() && !normalChildNeedsLayout(); | 1001 bool simplifiedNormalFlowLayout = needsSimplifiedNormalFlowLayout() && !self
NeedsLayout() && !normalChildNeedsLayout(); |
1002 | 1002 |
1003 while (o) { | 1003 while (o) { |
1004 // Don't mark the outermost object of an unrooted subtree. That object w
ill be | 1004 // Don't mark the outermost object of an unrooted subtree. That object w
ill be |
1005 // marked when the subtree is added to the document. | 1005 // marked when the subtree is added to the document. |
1006 RenderObject* container = o->container(); | 1006 RenderObject* container = o->container(); |
1007 if (!container && !o->isRenderView()) | 1007 if (!container && !o->isRenderView()) |
1008 return; | 1008 return; |
1009 if (!last->isText() && (last->style()->position() == FixedPosition || la
st->style()->position() == AbsolutePosition)) { | 1009 if (!last->isText() && (last->style()->position() == FixedPosition || la
st->style()->position() == AbsolutePosition)) { |
1010 if (o->m_posChildNeedsLayout) | 1010 while (o && !o->isRenderBlock()) // Skip relatively positioned inlin
es and get to the enclosing RenderBlock. |
| 1011 o = o->container(); |
| 1012 if (!o || o->m_posChildNeedsLayout) |
1011 return; | 1013 return; |
1012 o->m_posChildNeedsLayout = true; | 1014 o->m_posChildNeedsLayout = true; |
1013 simplifiedNormalFlowLayout = true; | 1015 simplifiedNormalFlowLayout = true; |
1014 ASSERT(!o->isSetNeedsLayoutForbidden()); | 1016 ASSERT(!o->isSetNeedsLayoutForbidden()); |
1015 } else if (simplifiedNormalFlowLayout) { | 1017 } else if (simplifiedNormalFlowLayout) { |
1016 if (o->m_needsSimplifiedNormalFlowLayout) | 1018 if (o->m_needsSimplifiedNormalFlowLayout) |
1017 return; | 1019 return; |
1018 o->m_needsSimplifiedNormalFlowLayout = true; | 1020 o->m_needsSimplifiedNormalFlowLayout = true; |
1019 ASSERT(!o->isSetNeedsLayoutForbidden()); | 1021 ASSERT(!o->isSetNeedsLayoutForbidden()); |
1020 } else { | 1022 } else { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 #ifndef NDEBUG | 1123 #ifndef NDEBUG |
1122 // Outside the WebCore namespace for ease of invocation from gdb. | 1124 // Outside the WebCore namespace for ease of invocation from gdb. |
1123 void showTree(const WebCore::RenderObject*); | 1125 void showTree(const WebCore::RenderObject*); |
1124 void showRenderTree(const WebCore::RenderObject* object1); | 1126 void showRenderTree(const WebCore::RenderObject* object1); |
1125 // We don't make object2 an optional parameter so that showRenderTree | 1127 // We don't make object2 an optional parameter so that showRenderTree |
1126 // can be called from gdb easily. | 1128 // can be called from gdb easily. |
1127 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1129 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1128 #endif | 1130 #endif |
1129 | 1131 |
1130 #endif // RenderObject_h | 1132 #endif // RenderObject_h |
OLD | NEW |