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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 2689213004: *** NOT FOR LANDING *** Paint investigations for bug 667370 (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 CHECK(!firstChild || firstChild->isBox()); 1445 CHECK(!firstChild || firstChild->isBox());
1446 LayoutBox* next = toLayoutBox(firstChild); 1446 LayoutBox* next = toLayoutBox(firstChild);
1447 LayoutBox* lastNormalFlowChild = nullptr; 1447 LayoutBox* lastNormalFlowChild = nullptr;
1448 1448
1449 while (next) { 1449 while (next) {
1450 LayoutBox* child = next; 1450 LayoutBox* child = next;
1451 LayoutObject* nextSibling = child->nextSibling(); 1451 LayoutObject* nextSibling = child->nextSibling();
1452 CHECK(!nextSibling || nextSibling->isBox()); 1452 CHECK(!nextSibling || nextSibling->isBox());
1453 next = toLayoutBox(nextSibling); 1453 next = toLayoutBox(nextSibling);
1454 1454
1455 child->setMayNeedPaintInvalidation(); 1455 // child->setMayNeedPaintInvalidation();
1456 1456
1457 if (childToExclude == child) 1457 if (childToExclude == child)
1458 continue; // Skip this child, since it will be positioned by the 1458 continue; // Skip this child, since it will be positioned by the
1459 // specialized subclass (fieldsets and ruby runs). 1459 // specialized subclass (fieldsets and ruby runs).
1460 1460
1461 updateBlockChildDirtyBitsBeforeLayout(relayoutChildren, *child); 1461 updateBlockChildDirtyBitsBeforeLayout(relayoutChildren, *child);
1462 1462
1463 if (child->isOutOfFlowPositioned()) { 1463 if (child->isOutOfFlowPositioned()) {
1464 child->containingBlock()->insertPositionedObject(child); 1464 child->containingBlock()->insertPositionedObject(child);
1465 adjustPositionedBlock(*child, layoutInfo); 1465 adjustPositionedBlock(*child, layoutInfo);
(...skipping 3139 matching lines...) Expand 10 before | Expand all | Expand 10 after
4605 return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState); 4605 return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState);
4606 } 4606 }
4607 4607
4608 void LayoutBlockFlow::invalidateDisplayItemClients( 4608 void LayoutBlockFlow::invalidateDisplayItemClients(
4609 PaintInvalidationReason invalidationReason) const { 4609 PaintInvalidationReason invalidationReason) const {
4610 BlockFlowPaintInvalidator(*this).invalidateDisplayItemClients( 4610 BlockFlowPaintInvalidator(*this).invalidateDisplayItemClients(
4611 invalidationReason); 4611 invalidationReason);
4612 } 4612 }
4613 4613
4614 } // namespace blink 4614 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698