| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |