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

Side by Side Diff: Source/core/rendering/RenderMultiColumnSet.cpp

Issue 474793002: Add GraphicsLayerDebugInfo::includesNewPaintInvalidation to distinguish paint from new RenderObjects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review Created 6 years, 3 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698