| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void LayoutFlowThread::validateColumnSets() | 92 void LayoutFlowThread::validateColumnSets() |
| 93 { | 93 { |
| 94 m_columnSetsInvalidated = false; | 94 m_columnSetsInvalidated = false; |
| 95 updateLogicalWidth(); // Called to get the maximum logical width for the col
umnSet. | 95 updateLogicalWidth(); // Called to get the maximum logical width for the col
umnSet. |
| 96 generateColumnSetIntervalTree(); | 96 generateColumnSetIntervalTree(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool LayoutFlowThread::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject
* ancestor, LayoutRect& rect, VisualRectFlags visualRectFlags) const | 99 bool LayoutFlowThread::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject
* ancestor, LayoutRect& rect, VisualRectFlags visualRectFlags) const |
| 100 { | 100 { |
| 101 ASSERT(ancestor != this); // A flow thread should never be an invalidation c
ontainer. | 101 ASSERT(ancestor != this); // A flow thread should never be an invalidation c
ontainer. |
| 102 // |rect| is a layout rectangle, where the block direction coordinate is fli
pped for writing | |
| 103 // mode. fragmentsBoundingBox(), on the other hand, works on physical rectan
gles, so we need to | |
| 104 // flip the rectangle before and after calling it. | |
| 105 rect = fragmentsBoundingBox(rect); | 102 rect = fragmentsBoundingBox(rect); |
| 106 return LayoutBlockFlow::mapToVisualRectInAncestorSpace(ancestor, rect, visua
lRectFlags); | 103 return LayoutBlockFlow::mapToVisualRectInAncestorSpace(ancestor, rect, visua
lRectFlags); |
| 107 } | 104 } |
| 108 | 105 |
| 109 void LayoutFlowThread::layout() | 106 void LayoutFlowThread::layout() |
| 110 { | 107 { |
| 111 m_pageLogicalSizeChanged = m_columnSetsInvalidated && everHadLayout(); | 108 m_pageLogicalSizeChanged = m_columnSetsInvalidated && everHadLayout(); |
| 112 LayoutBlockFlow::layout(); | 109 LayoutBlockFlow::layout(); |
| 113 m_pageLogicalSizeChanged = false; | 110 m_pageLogicalSizeChanged = false; |
| 114 } | 111 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 189 |
| 193 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(const MultiC
olumnSetInterval& interval) | 190 void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(const MultiC
olumnSetInterval& interval) |
| 194 { | 191 { |
| 195 if (m_result) | 192 if (m_result) |
| 196 return; | 193 return; |
| 197 if (interval.low() <= m_offset && interval.high() > m_offset) | 194 if (interval.low() <= m_offset && interval.high() > m_offset) |
| 198 m_result = interval.data(); | 195 m_result = interval.data(); |
| 199 } | 196 } |
| 200 | 197 |
| 201 } // namespace blink | 198 } // namespace blink |
| OLD | NEW |