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

Side by Side Diff: Source/core/layout/LayoutBox.h

Issue 1158183006: Remove the old multicol implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase master Created 5 years, 6 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.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('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) 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 530
531 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const; 531 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const;
532 virtual LayoutUnit computeReplacedLogicalHeight() const; 532 virtual LayoutUnit computeReplacedLogicalHeight() const;
533 533
534 bool hasDefiniteLogicalWidth() const; 534 bool hasDefiniteLogicalWidth() const;
535 static bool percentageLogicalHeightIsResolvableFromBlock(const LayoutBlock* containingBlock, bool outOfFlowPositioned); 535 static bool percentageLogicalHeightIsResolvableFromBlock(const LayoutBlock* containingBlock, bool outOfFlowPositioned);
536 bool hasDefiniteLogicalHeight() const; 536 bool hasDefiniteLogicalHeight() const;
537 LayoutUnit computePercentageLogicalHeight(const Length& height) const; 537 LayoutUnit computePercentageLogicalHeight(const Length& height) const;
538 538
539 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.) 539 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.)
540 virtual LayoutUnit availableLogicalWidth() const { return contentLogicalWidt h(); } 540 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); }
541 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; 541 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const;
542 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const; 542 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const;
543 543
544 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height. 544 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height.
545 // Relative positioning is one of those cases, since left/top offsets are ph ysical. 545 // Relative positioning is one of those cases, since left/top offsets are ph ysical.
546 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; } 546 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; }
547 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); } 547 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); }
548 548
549 virtual int verticalScrollbarWidth() const; 549 virtual int verticalScrollbarWidth() const;
550 int horizontalScrollbarHeight() const; 550 int horizontalScrollbarHeight() const;
551 int intrinsicScrollbarLogicalWidth() const; 551 int intrinsicScrollbarLogicalWidth() const;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 if (!UNLIKELY(hasFlippedBlocksWritingMode())) 626 if (!UNLIKELY(hasFlippedBlocksWritingMode()))
627 return position; 627 return position;
628 return logicalHeight() - position; 628 return logicalHeight() - position;
629 } 629 }
630 LayoutPoint flipForWritingMode(const LayoutPoint& position) const WARN_UNUSE D_RETURN 630 LayoutPoint flipForWritingMode(const LayoutPoint& position) const WARN_UNUSE D_RETURN
631 { 631 {
632 if (!UNLIKELY(hasFlippedBlocksWritingMode())) 632 if (!UNLIKELY(hasFlippedBlocksWritingMode()))
633 return position; 633 return position;
634 return isHorizontalWritingMode() ? LayoutPoint(position.x(), m_frameRect .height() - position.y()) : LayoutPoint(m_frameRect.width() - position.x(), posi tion.y()); 634 return isHorizontalWritingMode() ? LayoutPoint(position.x(), m_frameRect .height() - position.y()) : LayoutPoint(m_frameRect.width() - position.x(), posi tion.y());
635 } 635 }
636 LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const;
637 LayoutSize flipForWritingMode(const LayoutSize& offset) const WARN_UNUSED_RE TURN 636 LayoutSize flipForWritingMode(const LayoutSize& offset) const WARN_UNUSED_RE TURN
638 { 637 {
639 if (!UNLIKELY(hasFlippedBlocksWritingMode())) 638 if (!UNLIKELY(hasFlippedBlocksWritingMode()))
640 return offset; 639 return offset;
641 return isHorizontalWritingMode() ? LayoutSize(offset.width(), m_frameRec t.height() - offset.height()) : LayoutSize(m_frameRect.width() - offset.width(), offset.height()); 640 return isHorizontalWritingMode() ? LayoutSize(offset.width(), m_frameRec t.height() - offset.height()) : LayoutSize(m_frameRect.width() - offset.width(), offset.height());
642 } 641 }
643 void flipForWritingMode(LayoutRect& rect) const 642 void flipForWritingMode(LayoutRect& rect) const
644 { 643 {
645 if (!UNLIKELY(hasFlippedBlocksWritingMode())) 644 if (!UNLIKELY(hasFlippedBlocksWritingMode()))
646 return; 645 return;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 if (UNLIKELY(inlineBoxWrapper() != 0)) 937 if (UNLIKELY(inlineBoxWrapper() != 0))
939 deleteLineBoxWrapper(); 938 deleteLineBoxWrapper();
940 } 939 }
941 940
942 ensureRareData().m_inlineBoxWrapper = boxWrapper; 941 ensureRareData().m_inlineBoxWrapper = boxWrapper;
943 } 942 }
944 943
945 } // namespace blink 944 } // namespace blink
946 945
947 #endif // LayoutBox_h 946 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698