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

Side by Side Diff: Source/core/layout/LayoutDeprecatedFlexibleBox.cpp

Issue 1106693002: Move the anonymous decoration to decoratedName. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutDeprecatedFlexibleBox.h ('k') | Source/core/layout/LayoutGrid.h » ('j') | 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 * This file is part of the render object implementation for KHTML. 2 * This file is part of the render object implementation for KHTML.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) 5 * (C) 1999 Antti Koivisto (koivisto@kde.org)
6 * Copyright (C) 2003 Apple Computer, Inc. 6 * Copyright (C) 2003 Apple Computer, Inc.
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 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 Length minHeight = child->style()->minHeight(); 1001 Length minHeight = child->style()->minHeight();
1002 if (minHeight.isFixed() || minHeight.isAuto()) { 1002 if (minHeight.isFixed() || minHeight.isAuto()) {
1003 LayoutUnit minHeight = child->style()->minHeight().value(); 1003 LayoutUnit minHeight = child->style()->minHeight().value();
1004 LayoutUnit height = contentHeightForChild(child); 1004 LayoutUnit height = contentHeightForChild(child);
1005 LayoutUnit allowedShrinkage = std::min<LayoutUnit>(0, minHeight - height ); 1005 LayoutUnit allowedShrinkage = std::min<LayoutUnit>(0, minHeight - height );
1006 return allowedShrinkage; 1006 return allowedShrinkage;
1007 } 1007 }
1008 return 0; 1008 return 0;
1009 } 1009 }
1010 1010
1011 const char* LayoutDeprecatedFlexibleBox::name() const
1012 {
1013 if (isAnonymous())
1014 return "LayoutDeprecatedFlexibleBox (anonymous)";
1015 return "LayoutDeprecatedFlexibleBox";
1016 }
1017
1018 } // namespace blink 1011 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutDeprecatedFlexibleBox.h ('k') | Source/core/layout/LayoutGrid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698