| OLD | NEW |
| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 for (unsigned i = startColumn; i <= endColumn; i++) { | 516 for (unsigned i = startColumn; i <= endColumn; i++) { |
| 517 LayoutRect colRect = columnRectAt(i); | 517 LayoutRect colRect = columnRectAt(i); |
| 518 | 518 |
| 519 // Get the portion of the flow thread that corresponds to this column. | 519 // Get the portion of the flow thread that corresponds to this column. |
| 520 LayoutRect flowThreadPortion = flowThreadPortionRectAt(i); | 520 LayoutRect flowThreadPortion = flowThreadPortionRectAt(i); |
| 521 | 521 |
| 522 // Now get the overflow rect that corresponds to the column. | 522 // Now get the overflow rect that corresponds to the column. |
| 523 LayoutRect flowThreadOverflowPortion = flowThreadPortionOverflowRect(flo
wThreadPortion, i, colCount, colGap); | 523 LayoutRect flowThreadOverflowPortion = flowThreadPortionOverflowRect(flo
wThreadPortion, i, colCount, colGap); |
| 524 | 524 |
| 525 // Do a paint invalidation for this specific column. | 525 // Do a paint invalidation for this specific column. |
| 526 paintInvalidaitonOfFlowThreadContentRectangle(paintInvalidationRect, flo
wThreadPortion, flowThreadOverflowPortion, colRect.location()); | 526 paintInvalidationOfFlowThreadContentRectangle(paintInvalidationRect, flo
wThreadPortion, flowThreadOverflowPortion, colRect.location()); |
| 527 } | 527 } |
| 528 } | 528 } |
| 529 | 529 |
| 530 void RenderMultiColumnSet::collectLayerFragments(LayerFragments& fragments, cons
t LayoutRect& layerBoundingBox, const LayoutRect& dirtyRect) | 530 void RenderMultiColumnSet::collectLayerFragments(LayerFragments& fragments, cons
t LayoutRect& layerBoundingBox, const LayoutRect& dirtyRect) |
| 531 { | 531 { |
| 532 // The two rectangles passed to this method are physical, except that we pre
tend that there's | 532 // The two rectangles passed to this method are physical, except that we pre
tend that there's |
| 533 // only one long column (that's how a flow thread works). | 533 // only one long column (that's how a flow thread works). |
| 534 // | 534 // |
| 535 // Then there's the output from this method - the stuff we put into the list
of fragments. The | 535 // Then there's the output from this method - the stuff we put into the list
of fragments. The |
| 536 // fragment.paginationOffset point is the actual physical translation requir
ed to get from a | 536 // fragment.paginationOffset point is the actual physical translation requir
ed to get from a |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 | 684 |
| 685 void RenderMultiColumnSet::detachRegion() | 685 void RenderMultiColumnSet::detachRegion() |
| 686 { | 686 { |
| 687 if (m_flowThread) { | 687 if (m_flowThread) { |
| 688 m_flowThread->removeRegionFromThread(this); | 688 m_flowThread->removeRegionFromThread(this); |
| 689 m_flowThread = 0; | 689 m_flowThread = 0; |
| 690 } | 690 } |
| 691 } | 691 } |
| 692 | 692 |
| 693 } | 693 } |
| OLD | NEW |