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

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

Issue 10868091: Merge 125353 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 4 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 | « no previous file | 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 3613 matching lines...) Expand 10 before | Expand all | Expand 10 after
3624 if (!descendantsMap) 3624 if (!descendantsMap)
3625 return; 3625 return;
3626 3626
3627 HashSet<RenderBlock*>* containerSet = containerMap->take(descendant); 3627 HashSet<RenderBlock*>* containerSet = containerMap->take(descendant);
3628 if (!containerSet) 3628 if (!containerSet)
3629 return; 3629 return;
3630 3630
3631 HashSet<RenderBlock*>::iterator end = containerSet->end(); 3631 HashSet<RenderBlock*>::iterator end = containerSet->end();
3632 for (HashSet<RenderBlock*>::iterator it = containerSet->begin(); it != end; ++it) { 3632 for (HashSet<RenderBlock*>::iterator it = containerSet->begin(); it != end; ++it) {
3633 RenderBlock* container = *it; 3633 RenderBlock* container = *it;
3634 ASSERT(descendant->isDescendantOf(container)); 3634
3635 // FIXME: Disabling this assert temporarily until we fix the layout
3636 // bugs associated with positioned objects not properly cleared from
3637 // their ancestor chain before being moved. See webkit bug 93766.
3638 // ASSERT(descendant->isDescendantOf(container));
3639
3635 TrackedRendererListHashSet* descendantSet = descendantsMap->get(containe r); 3640 TrackedRendererListHashSet* descendantSet = descendantsMap->get(containe r);
3636 ASSERT(descendantSet); 3641 ASSERT(descendantSet);
3637 if (!descendantSet) 3642 if (!descendantSet)
3638 continue; 3643 continue;
3639 ASSERT(descendantSet->contains(descendant)); 3644 ASSERT(descendantSet->contains(descendant));
3640 descendantSet->remove(descendant); 3645 descendantSet->remove(descendant);
3641 if (descendantSet->isEmpty()) { 3646 if (descendantSet->isEmpty()) {
3642 descendantsMap->remove(container); 3647 descendantsMap->remove(container);
3643 delete descendantSet; 3648 delete descendantSet;
3644 } 3649 }
(...skipping 3828 matching lines...) Expand 10 before | Expand all | Expand 10 after
7473 } 7478 }
7474 7479
7475 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject) 7480 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject)
7476 { 7481 {
7477 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->fr ameRect().pixelSnappedX(), floatingObject->frameRect().pixelSnappedY(), floating Object->frameRect().pixelSnappedMaxX(), floatingObject->frameRect().pixelSnapped MaxY()); 7482 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->fr ameRect().pixelSnappedX(), floatingObject->frameRect().pixelSnappedY(), floating Object->frameRect().pixelSnappedMaxX(), floatingObject->frameRect().pixelSnapped MaxY());
7478 } 7483 }
7479 7484
7480 #endif 7485 #endif
7481 7486
7482 } // namespace WebCore 7487 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698