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

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

Issue 10882045: Merge 125351 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 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) 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 if (parentBlock) { 168 if (parentBlock) {
169 RenderObject* parent = parentBlock->parent(); 169 RenderObject* parent = parentBlock->parent();
170 if (parent && parent->isFlexibleBoxIncludingDeprecated()) 170 if (parent && parent->isFlexibleBoxIncludingDeprecated())
171 parentBlock = toRenderBlock(parent); 171 parentBlock = toRenderBlock(parent);
172 172
173 parentBlock->markSiblingsWithFloatsForLayout(this); 173 parentBlock->markSiblingsWithFloatsForLayout(this);
174 parentBlock->markAllDescendantsWithFloatsForLayout(this, false); 174 parentBlock->markAllDescendantsWithFloatsForLayout(this, false);
175 } 175 }
176 } 176 }
177 177
178 if (isOutOfFlowPositioned()) { 178 if (isOutOfFlowPositioned())
179 for (RenderObject* curr = parent(); curr; curr = curr->parent()) { 179 RenderBlock::removePositionedObject(this);
180 if (curr->isRenderBlock())
181 toRenderBlock(curr)->removePositionedObject(this);
182 }
183 }
184 } 180 }
185 181
186 void RenderBox::styleWillChange(StyleDifference diff, const RenderStyle* newStyl e) 182 void RenderBox::styleWillChange(StyleDifference diff, const RenderStyle* newStyl e)
187 { 183 {
188 s_hadOverflowClip = hasOverflowClip(); 184 s_hadOverflowClip = hasOverflowClip();
189 185
190 RenderStyle* oldStyle = style(); 186 RenderStyle* oldStyle = style();
191 if (oldStyle) { 187 if (oldStyle) {
192 // The background of the root element or the body element could propagat e up to 188 // The background of the root element or the body element could propagat e up to
193 // the canvas. Just dirty the entire canvas when our style changes subs tantially. 189 // the canvas. Just dirty the entire canvas when our style changes subs tantially.
(...skipping 3816 matching lines...) Expand 10 before | Expand all | Expand 10 after
4010 } 4006 }
4011 4007
4012 if (didSplitParentAnonymousBoxes) 4008 if (didSplitParentAnonymousBoxes)
4013 markBoxForRelayoutAfterSplit(this); 4009 markBoxForRelayoutAfterSplit(this);
4014 4010
4015 ASSERT(beforeChild->parent() == this); 4011 ASSERT(beforeChild->parent() == this);
4016 return beforeChild; 4012 return beforeChild;
4017 } 4013 }
4018 4014
4019 } // namespace WebCore 4015 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698