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

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

Issue 7253035: Merge 89836 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 5 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
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 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 if (cb->style()->position() == RelativePosition && cb->isInline( ) && !cb->isReplaced()) { 212 if (cb->style()->position() == RelativePosition && cb->isInline( ) && !cb->isReplaced()) {
213 cb = cb->containingBlock(); 213 cb = cb->containingBlock();
214 break; 214 break;
215 } 215 }
216 cb = cb->parent(); 216 cb = cb->parent();
217 } 217 }
218 218
219 if (cb->isRenderBlock()) 219 if (cb->isRenderBlock())
220 toRenderBlock(cb)->removePositionedObjects(this); 220 toRenderBlock(cb)->removePositionedObjects(this);
221 } 221 }
222
223 if (containsFloats() && !isFloating() && !isPositioned() && (newStyle->p osition() == AbsolutePosition || newStyle->position() == FixedPosition))
224 markAllDescendantsWithFloatsForLayout();
222 } 225 }
223 226
224 RenderBox::styleWillChange(diff, newStyle); 227 RenderBox::styleWillChange(diff, newStyle);
225 } 228 }
226 229
227 void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldSty le) 230 void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldSty le)
228 { 231 {
229 RenderBox::styleDidChange(diff, oldStyle); 232 RenderBox::styleDidChange(diff, oldStyle);
230 233
231 if (!isAnonymousBlock()) { 234 if (!isAnonymousBlock()) {
(...skipping 6150 matching lines...) Expand 10 before | Expand all | Expand 10 after
6382 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const 6385 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const
6383 { 6386 {
6384 showRenderObject(); 6387 showRenderObject();
6385 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 6388 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
6386 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 6389 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
6387 } 6390 }
6388 6391
6389 #endif 6392 #endif
6390 6393
6391 } // namespace WebCore 6394 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/platform/mac/fast/block/float/overhanging-float-remove-from-fixed-position-block2-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698