| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "core/layout/MultiColumnFragmentainerGroup.h" | 7 #include "core/layout/MultiColumnFragmentainerGroup.h" |
| 8 | 8 |
| 9 #include "core/layout/LayoutMultiColumnSet.h" | 9 #include "core/layout/LayoutMultiColumnSet.h" |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // |dirtyRect| is visual, relative to the multicol container. | 155 // |dirtyRect| is visual, relative to the multicol container. |
| 156 // | 156 // |
| 157 // Then there's the output from this method - the stuff we put into the list
of fragments. The | 157 // Then there's the output from this method - the stuff we put into the list
of fragments. The |
| 158 // fragment.paginationOffset point is the actual visual translation required
to get from a | 158 // fragment.paginationOffset point is the actual visual translation required
to get from a |
| 159 // location in the flow thread to a location in a given column. The fragment
.paginationClip | 159 // location in the flow thread to a location in a given column. The fragment
.paginationClip |
| 160 // rectangle, on the other hand, is in flow thread coordinates, but otherwis
e completely | 160 // rectangle, on the other hand, is in flow thread coordinates, but otherwis
e completely |
| 161 // physical in terms of writing mode. | 161 // physical in terms of writing mode. |
| 162 // | 162 // |
| 163 // All other rectangles in this method are sized physically, and the inline
direction coordinate | 163 // All other rectangles in this method are sized physically, and the inline
direction coordinate |
| 164 // is physical too, but the block direction coordinate is "logical top". Thi
s is the same as | 164 // is physical too, but the block direction coordinate is "logical top". Thi
s is the same as |
| 165 // e.g. RenderBox::frameRect(). These rectangles also pretend that there's o
nly one long column, | 165 // e.g. LayoutBox::frameRect(). These rectangles also pretend that there's o
nly one long column, |
| 166 // i.e. they are for the flow thread. | 166 // i.e. they are for the flow thread. |
| 167 | 167 |
| 168 LayoutMultiColumnFlowThread* flowThread = m_columnSet.multiColumnFlowThread(
); | 168 LayoutMultiColumnFlowThread* flowThread = m_columnSet.multiColumnFlowThread(
); |
| 169 bool isHorizontalWritingMode = m_columnSet.isHorizontalWritingMode(); | 169 bool isHorizontalWritingMode = m_columnSet.isHorizontalWritingMode(); |
| 170 | 170 |
| 171 // Put the layer bounds into flow thread-local coordinates by flipping it fi
rst. Since we're in | 171 // Put the layer bounds into flow thread-local coordinates by flipping it fi
rst. Since we're in |
| 172 // a renderer, most rectangles are represented this way. | 172 // a renderer, most rectangles are represented this way. |
| 173 LayoutRect layerBoundsInFlowThread(layerBoundingBox); | 173 LayoutRect layerBoundsInFlowThread(layerBoundingBox); |
| 174 flowThread->flipForWritingMode(layerBoundsInFlowThread); | 174 flowThread->flipForWritingMode(layerBoundsInFlowThread); |
| 175 | 175 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 append(MultiColumnFragmentainerGroup(m_columnSet)); | 501 append(MultiColumnFragmentainerGroup(m_columnSet)); |
| 502 return last(); | 502 return last(); |
| 503 } | 503 } |
| 504 | 504 |
| 505 void MultiColumnFragmentainerGroupList::deleteExtraGroups() | 505 void MultiColumnFragmentainerGroupList::deleteExtraGroups() |
| 506 { | 506 { |
| 507 shrink(1); | 507 shrink(1); |
| 508 } | 508 } |
| 509 | 509 |
| 510 } // namespace blink | 510 } // namespace blink |
| OLD | NEW |