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

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

Issue 7506003: Merge 91386 (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
« no previous file with comments | « Source/WebCore/rendering/RenderBox.h ('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 3183 matching lines...) Expand 10 before | Expand all | Expand 10 after
3194 // Floating objects don't shrink. Objects that don't avoid floats don't shr ink. Marquees don't shrink. 3194 // Floating objects don't shrink. Objects that don't avoid floats don't shr ink. Marquees don't shrink.
3195 if ((isInline() && !isHTMLMarquee()) || !avoidsFloats() || isFloating()) 3195 if ((isInline() && !isHTMLMarquee()) || !avoidsFloats() || isFloating())
3196 return false; 3196 return false;
3197 3197
3198 // All auto-width objects that avoid floats should always use lineWidth. 3198 // All auto-width objects that avoid floats should always use lineWidth.
3199 return style()->width().isAuto(); 3199 return style()->width().isAuto();
3200 } 3200 }
3201 3201
3202 bool RenderBox::avoidsFloats() const 3202 bool RenderBox::avoidsFloats() const
3203 { 3203 {
3204 return isReplaced() || hasOverflowClip() || isHR() || isLegend() || isWritin gModeRoot(); 3204 return isReplaced() || hasOverflowClip() || isHR() || isLegend() || isWritin gModeRoot() || isDeprecatedFlexItem();
3205 } 3205 }
3206 3206
3207 void RenderBox::addShadowOverflow() 3207 void RenderBox::addShadowOverflow()
3208 { 3208 {
3209 int shadowLeft; 3209 int shadowLeft;
3210 int shadowRight; 3210 int shadowRight;
3211 int shadowTop; 3211 int shadowTop;
3212 int shadowBottom; 3212 int shadowBottom;
3213 style()->getBoxShadowExtent(shadowTop, shadowRight, shadowBottom, shadowLeft ); 3213 style()->getBoxShadowExtent(shadowTop, shadowRight, shadowBottom, shadowLeft );
3214 IntRect borderBox = borderBoxRect(); 3214 IntRect borderBox = borderBoxRect();
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
3477 RenderBlock* containerBlock = containingBlock(); 3477 RenderBlock* containerBlock = containingBlock();
3478 if (!containerBlock || containerBlock == this) 3478 if (!containerBlock || containerBlock == this)
3479 return locationOffset(); 3479 return locationOffset();
3480 3480
3481 IntRect rect(frameRect()); 3481 IntRect rect(frameRect());
3482 containerBlock->flipForWritingMode(rect); // FIXME: This is wrong if we are an absolutely positioned object enclosed by a relative-positioned inline. 3482 containerBlock->flipForWritingMode(rect); // FIXME: This is wrong if we are an absolutely positioned object enclosed by a relative-positioned inline.
3483 return IntSize(rect.x(), rect.y()); 3483 return IntSize(rect.x(), rect.y());
3484 } 3484 }
3485 3485
3486 } // namespace WebCore 3486 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderBox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698