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

Side by Side Diff: Source/WebCore/rendering/RenderBlock.cpp

Issue 9578001: Merge 109124 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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/fast/css-generated-content/floating-before-content-with-list-marker-crash-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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 // The removal has knocked us down to containing only a single anonymous 1204 // The removal has knocked us down to containing only a single anonymous
1205 // box. We can go ahead and pull the content right back up into our 1205 // box. We can go ahead and pull the content right back up into our
1206 // box. 1206 // box.
1207 collapseAnonymousBoxChild(this, child); 1207 collapseAnonymousBoxChild(this, child);
1208 } else if (((prev && prev->isAnonymousBlock()) || (next && next->isAnonymous Block())) && !isFlexibleBoxIncludingDeprecated()) { 1208 } else if (((prev && prev->isAnonymousBlock()) || (next && next->isAnonymous Block())) && !isFlexibleBoxIncludingDeprecated()) {
1209 // It's possible that the removal has knocked us down to a single anonym ous 1209 // It's possible that the removal has knocked us down to a single anonym ous
1210 // block with pseudo-style element siblings (e.g. first-letter). If thes e 1210 // block with pseudo-style element siblings (e.g. first-letter). If thes e
1211 // are floating, then we need to pull the content up also. 1211 // are floating, then we need to pull the content up also.
1212 RenderBlock* anonBlock = toRenderBlock((prev && prev->isAnonymousBlock() ) ? prev : next); 1212 RenderBlock* anonBlock = toRenderBlock((prev && prev->isAnonymousBlock() ) ? prev : next);
1213 if ((anonBlock->previousSibling() || anonBlock->nextSibling()) 1213 if ((anonBlock->previousSibling() || anonBlock->nextSibling())
1214 && (!anonBlock->previousSibling() || (anonBlock->previousSibling()-> style()->styleType() != NOPSEUDO && anonBlock->previousSibling()->isFloating())) 1214 && (!anonBlock->previousSibling() || (anonBlock->previousSibling()-> style()->styleType() != NOPSEUDO && anonBlock->previousSibling()->isFloating() & & !anonBlock->previousSibling()->previousSibling()))
1215 && (!anonBlock->nextSibling() || (anonBlock->nextSibling()->style()- >styleType() != NOPSEUDO && anonBlock->nextSibling()->isFloating()))) { 1215 && (!anonBlock->nextSibling() || (anonBlock->nextSibling()->style()- >styleType() != NOPSEUDO && anonBlock->nextSibling()->isFloating() && !anonBlock ->nextSibling()->nextSibling()))) {
1216 collapseAnonymousBoxChild(this, anonBlock); 1216 collapseAnonymousBoxChild(this, anonBlock);
1217 } 1217 }
1218 } 1218 }
1219 1219
1220 if (!firstChild() && !documentBeingDestroyed()) { 1220 if (!firstChild() && !documentBeingDestroyed()) {
1221 // If this was our last child be sure to clear out our line boxes. 1221 // If this was our last child be sure to clear out our line boxes.
1222 if (childrenInline()) 1222 if (childrenInline())
1223 deleteLineBoxTree(); 1223 deleteLineBoxTree();
1224 } 1224 }
1225 } 1225 }
(...skipping 5983 matching lines...) Expand 10 before | Expand all | Expand 10 after
7209 } 7209 }
7210 7210
7211 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject) 7211 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject)
7212 { 7212 {
7213 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->x( ), floatingObject->y(), floatingObject->maxX(), floatingObject->maxY()); 7213 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->x( ), floatingObject->y(), floatingObject->maxX(), floatingObject->maxY());
7214 } 7214 }
7215 7215
7216 #endif 7216 #endif
7217 7217
7218 } // namespace WebCore 7218 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/css-generated-content/floating-before-content-with-list-marker-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698