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

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

Issue 1278543002: Include the whole outline into visual overflow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 LayoutBlockFlow::LayoutBlockFlow(ContainerNode* node) 170 LayoutBlockFlow::LayoutBlockFlow(ContainerNode* node)
171 : LayoutBlock(node) 171 : LayoutBlock(node)
172 { 172 {
173 static_assert(sizeof(MarginInfo) == sizeof(SameSizeAsMarginInfo), "MarginInf o should stay small"); 173 static_assert(sizeof(MarginInfo) == sizeof(SameSizeAsMarginInfo), "MarginInf o should stay small");
174 setChildrenInline(true); 174 setChildrenInline(true);
175 } 175 }
176 176
177 LayoutBlockFlow::~LayoutBlockFlow() 177 LayoutBlockFlow::~LayoutBlockFlow()
178 { 178 {
179 removeInlinesWithOutlineAndContinuation();
179 } 180 }
180 181
181 LayoutBlockFlow* LayoutBlockFlow::createAnonymous(Document* document) 182 LayoutBlockFlow* LayoutBlockFlow::createAnonymous(Document* document)
182 { 183 {
183 LayoutBlockFlow* layoutBlockFlow = new LayoutBlockFlow(nullptr); 184 LayoutBlockFlow* layoutBlockFlow = new LayoutBlockFlow(nullptr);
184 layoutBlockFlow->setDocumentForAnonymous(document); 185 layoutBlockFlow->setDocumentForAnonymous(document);
185 return layoutBlockFlow; 186 return layoutBlockFlow;
186 } 187 }
187 188
188 LayoutObject* LayoutBlockFlow::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope& layoutScope) 189 LayoutObject* LayoutBlockFlow::layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope& layoutScope)
(...skipping 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after
3023 FrameView* frameView = document().view(); 3024 FrameView* frameView = document().view();
3024 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height(); 3025 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height();
3025 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( ); 3026 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( );
3026 if (size().height() < visibleHeight) 3027 if (size().height() < visibleHeight)
3027 top += (visibleHeight - size().height()) / 2; 3028 top += (visibleHeight - size().height()) / 2;
3028 setY(top); 3029 setY(top);
3029 dialog->setCentered(top); 3030 dialog->setCentered(top);
3030 } 3031 }
3031 3032
3032 } // namespace blink 3033 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698