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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2620623002: Implement display:flow-root (Closed)
Patch Set: bug 672508 Created 3 years, 11 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
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) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 528 }
529 529
530 DISABLE_CFI_PERF 530 DISABLE_CFI_PERF
531 bool LayoutBlock::createsNewFormattingContext() const { 531 bool LayoutBlock::createsNewFormattingContext() const {
532 return isInlineBlockOrInlineTable() || isFloatingOrOutOfFlowPositioned() || 532 return isInlineBlockOrInlineTable() || isFloatingOrOutOfFlowPositioned() ||
533 hasOverflowClip() || isFlexItemIncludingDeprecated() || 533 hasOverflowClip() || isFlexItemIncludingDeprecated() ||
534 style()->specifiesColumns() || isLayoutFlowThread() || isTableCell() || 534 style()->specifiesColumns() || isLayoutFlowThread() || isTableCell() ||
535 isTableCaption() || isFieldset() || isWritingModeRoot() || 535 isTableCaption() || isFieldset() || isWritingModeRoot() ||
536 isDocumentElement() || isColumnSpanAll() || isGridItem() || 536 isDocumentElement() || isColumnSpanAll() || isGridItem() ||
537 style()->containsPaint() || style()->containsLayout() || 537 style()->containsPaint() || style()->containsLayout() ||
538 isSVGForeignObject(); 538 isSVGForeignObject() || style()->display() == EDisplay::FlowRoot;
539 } 539 }
540 540
541 static inline bool changeInAvailableLogicalHeightAffectsChild( 541 static inline bool changeInAvailableLogicalHeightAffectsChild(
542 LayoutBlock* parent, 542 LayoutBlock* parent,
543 LayoutBox& child) { 543 LayoutBox& child) {
544 if (parent->style()->boxSizing() != BoxSizingBorderBox) 544 if (parent->style()->boxSizing() != BoxSizingBorderBox)
545 return false; 545 return false;
546 return parent->style()->isHorizontalWritingMode() && 546 return parent->style()->isHorizontalWritingMode() &&
547 !child.style()->isHorizontalWritingMode(); 547 !child.style()->isHorizontalWritingMode();
548 } 548 }
(...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 } 2200 }
2201 2201
2202 return availableHeight; 2202 return availableHeight;
2203 } 2203 }
2204 2204
2205 bool LayoutBlock::hasDefiniteLogicalHeight() const { 2205 bool LayoutBlock::hasDefiniteLogicalHeight() const {
2206 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1); 2206 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1);
2207 } 2207 }
2208 2208
2209 } // namespace blink 2209 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698