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

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

Issue 6588058: Merge 78775 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 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/block/float/floats-not-cleared-from-grand-parents-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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 if (documentBeingDestroyed()) 218 if (documentBeingDestroyed())
219 return; 219 return;
220 220
221 if (isFloating()) { 221 if (isFloating()) {
222 RenderBlock* parentBlock = 0; 222 RenderBlock* parentBlock = 0;
223 for (RenderObject* curr = parent(); curr && !curr->isRenderView(); curr = curr->parent()) { 223 for (RenderObject* curr = parent(); curr && !curr->isRenderView(); curr = curr->parent()) {
224 if (curr->isRenderBlock()) { 224 if (curr->isRenderBlock()) {
225 RenderBlock* currBlock = toRenderBlock(curr); 225 RenderBlock* currBlock = toRenderBlock(curr);
226 if (currBlock->containsFloat(this)) 226 if (currBlock->containsFloat(this))
227 parentBlock = currBlock; 227 parentBlock = currBlock;
228 else
229 break;
230 } 228 }
231 } 229 }
232 230
233 if (parentBlock) { 231 if (parentBlock) {
234 RenderObject* parent = parentBlock->parent(); 232 RenderObject* parent = parentBlock->parent();
235 if (parent && parent->isFlexibleBox()) 233 if (parent && parent->isFlexibleBox())
236 parentBlock = toRenderBlock(parent); 234 parentBlock = toRenderBlock(parent);
237 235
238 parentBlock->markAllDescendantsWithFloatsForLayout(this, false); 236 parentBlock->markAllDescendantsWithFloatsForLayout(this, false);
239 } 237 }
(...skipping 3099 matching lines...) Expand 10 before | Expand all | Expand 10 after
3339 { 3337 {
3340 if (!parent() || !parent()->isBox()) 3338 if (!parent() || !parent()->isBox())
3341 return locationOffset(); 3339 return locationOffset();
3342 3340
3343 IntRect rect(frameRect()); 3341 IntRect rect(frameRect());
3344 parentBox()->flipForWritingMode(rect); 3342 parentBox()->flipForWritingMode(rect);
3345 return IntSize(rect.x(), rect.y()); 3343 return IntSize(rect.x(), rect.y());
3346 } 3344 }
3347 3345
3348 } // namespace WebCore 3346 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/block/float/floats-not-cleared-from-grand-parents-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698