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

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

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 { 93 {
94 return lastFragmentainerGroup().logicalBottomInFlowThread(); 94 return lastFragmentainerGroup().logicalBottomInFlowThread();
95 } 95 }
96 96
97 bool LayoutMultiColumnSet::heightIsAuto() const 97 bool LayoutMultiColumnSet::heightIsAuto() const
98 { 98 {
99 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread(); 99 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread();
100 if (!flowThread->isLayoutPagedFlowThread()) { 100 if (!flowThread->isLayoutPagedFlowThread()) {
101 if (multiColumnBlockFlow()->style()->columnFill() == ColumnFillBalance) 101 if (multiColumnBlockFlow()->style()->columnFill() == ColumnFillBalance)
102 return true; 102 return true;
103 if (RenderBox* next = nextSiblingBox()) { 103 if (LayoutBox* next = nextSiblingBox()) {
104 if (next->isLayoutMultiColumnSpannerPlaceholder()) { 104 if (next->isLayoutMultiColumnSpannerPlaceholder()) {
105 // If we're followed by a spanner, we need to balance. 105 // If we're followed by a spanner, we need to balance.
106 return true; 106 return true;
107 } 107 }
108 } 108 }
109 } 109 }
110 return !flowThread->columnHeightAvailable(); 110 return !flowThread->columnHeightAvailable();
111 } 111 }
112 112
113 LayoutSize LayoutMultiColumnSet::flowThreadTranslationAtOffset(LayoutUnit blockO ffset) const 113 LayoutSize LayoutMultiColumnSet::flowThreadTranslationAtOffset(LayoutUnit blockO ffset) const
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 268
269 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const 269 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const
270 { 270 {
271 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi dth(), logicalHeightInFlowThread()); 271 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi dth(), logicalHeightInFlowThread());
272 if (!isHorizontalWritingMode()) 272 if (!isHorizontalWritingMode())
273 return portionRect.transposedRect(); 273 return portionRect.transposedRect();
274 return portionRect; 274 return portionRect;
275 } 275 }
276 276
277 } 277 }
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutMultiColumnFlowThreadTest.cpp ('k') | Source/core/layout/LayoutMultiColumnSpannerPlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698