Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: Source/WebCore/rendering/RenderObject.h

Issue 6949014: Merge 85964 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/platform/mac/fast/block/positioning/hiding-inside-relpositioned-inline-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/platform/mac/fast/block/positioning/hiding-inside-relpositioned-inline-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698