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

Side by Side Diff: Source/core/layout/LayoutBlockFlow.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/LayoutBlockFlow.h ('k') | Source/core/layout/LayoutDeprecatedFlexibleBox.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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 3132 matching lines...) Expand 10 before | Expand all | Expand 10 after
3143 3143
3144 FrameView* frameView = document().view(); 3144 FrameView* frameView = document().view();
3145 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height(); 3145 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height();
3146 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( ); 3146 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( );
3147 if (size().height() < visibleHeight) 3147 if (size().height() < visibleHeight)
3148 top += (visibleHeight - size().height()) / 2; 3148 top += (visibleHeight - size().height()) / 2;
3149 setY(top); 3149 setY(top);
3150 dialog->setCentered(top); 3150 dialog->setCentered(top);
3151 } 3151 }
3152 3152
3153 const char* LayoutBlockFlow::name() const
3154 {
3155 if (style()) {
3156 if (isAnonymousColumnsBlock())
3157 return "LayoutBlockFlow (anonymous multi-column)";
3158 if (isAnonymousColumnSpanBlock())
3159 return "LayoutBlockFlow (anonymous multi-column span)";
3160 if (isAnonymousBlock())
3161 return "LayoutBlockFlow (anonymous)";
3162 }
3163 if (isAnonymous())
3164 return "LayoutBlockFlow (anonymous)";
3165 return "LayoutBlockFlow";
3166 }
3167
3168
3169 } // namespace blink 3153 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.h ('k') | Source/core/layout/LayoutDeprecatedFlexibleBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698