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

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

Issue 3662002: Merge 69476 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 2 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/flexbox/overhanging-floats-removed-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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 if (documentBeingDestroyed()) 104 if (documentBeingDestroyed())
105 return; 105 return;
106 106
107 if (isFloating()) { 107 if (isFloating()) {
108 RenderBlock* outermostBlock = containingBlock(); 108 RenderBlock* outermostBlock = containingBlock();
109 for (RenderBlock* p = outermostBlock; p && !p->isRenderView(); p = p->co ntainingBlock()) { 109 for (RenderBlock* p = outermostBlock; p && !p->isRenderView(); p = p->co ntainingBlock()) {
110 if (p->containsFloat(this)) 110 if (p->containsFloat(this))
111 outermostBlock = p; 111 outermostBlock = p;
112 } 112 }
113 113
114 if (outermostBlock) 114 if (outermostBlock) {
115 RenderObject* parent = outermostBlock->parent();
116 if (parent && parent->isFlexibleBox())
117 outermostBlock = toRenderBlock(parent);
118
115 outermostBlock->markAllDescendantsWithFloatsForLayout(this, false); 119 outermostBlock->markAllDescendantsWithFloatsForLayout(this, false);
120 }
116 } 121 }
117 122
118 if (isPositioned()) { 123 if (isPositioned()) {
119 RenderObject* p; 124 RenderObject* p;
120 for (p = parent(); p; p = p->parent()) { 125 for (p = parent(); p; p = p->parent()) {
121 if (p->isRenderBlock()) 126 if (p->isRenderBlock())
122 toRenderBlock(p)->removePositionedObject(this); 127 toRenderBlock(p)->removePositionedObject(this);
123 } 128 }
124 } 129 }
125 } 130 }
(...skipping 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 2914
2910 if (visualOverflowRect() == borderBoxRect()) { 2915 if (visualOverflowRect() == borderBoxRect()) {
2911 m_overflow.clear(); 2916 m_overflow.clear();
2912 return; 2917 return;
2913 } 2918 }
2914 2919
2915 m_overflow->resetLayoutOverflow(borderBoxRect()); 2920 m_overflow->resetLayoutOverflow(borderBoxRect());
2916 } 2921 }
2917 2922
2918 } // namespace WebCore 2923 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/flexbox/overhanging-floats-removed-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698