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

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

Issue 2458823002: Don't establish LayoutState for LayoutTableRow objects. (Closed)
Patch Set: Created 4 years, 1 month 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
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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 rebuildFloatsFromIntruding(); 482 rebuildFloatsFromIntruding();
483 483
484 bool pageLogicalHeightChanged = false; 484 bool pageLogicalHeightChanged = false;
485 bool hasSpecifiedPageLogicalHeight = false; 485 bool hasSpecifiedPageLogicalHeight = false;
486 checkForPaginationLogicalHeightChange(pageLogicalHeight, 486 checkForPaginationLogicalHeightChange(pageLogicalHeight,
487 pageLogicalHeightChanged, 487 pageLogicalHeightChanged,
488 hasSpecifiedPageLogicalHeight); 488 hasSpecifiedPageLogicalHeight);
489 if (pageLogicalHeightChanged) 489 if (pageLogicalHeightChanged)
490 relayoutChildren = true; 490 relayoutChildren = true;
491 491
492 LayoutState state(*this, locationOffset(), pageLogicalHeight, 492 LayoutState state(*this, pageLogicalHeight, pageLogicalHeightChanged,
493 pageLogicalHeightChanged, logicalWidthChanged); 493 logicalWidthChanged);
494 494
495 if (m_paginationStateChanged) { 495 if (m_paginationStateChanged) {
496 // We now need a deep layout to clean up struts after pagination, if we 496 // We now need a deep layout to clean up struts after pagination, if we
497 // just ceased to be paginated, or, if we just became paginated on the 497 // just ceased to be paginated, or, if we just became paginated on the
498 // other hand, we now need the deep layout, to insert pagination struts. 498 // other hand, we now need the deep layout, to insert pagination struts.
499 m_paginationStateChanged = false; 499 m_paginationStateChanged = false;
500 state.setPaginationStateChanged(); 500 state.setPaginationStateChanged();
501 } 501 }
502 502
503 // We use four values, maxTopPos, maxTopNeg, maxBottomPos, and maxBottomNeg, 503 // We use four values, maxTopPos, maxTopNeg, maxBottomPos, and maxBottomNeg,
(...skipping 4049 matching lines...) Expand 10 before | Expand all | Expand 10 after
4553 return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState); 4553 return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState);
4554 } 4554 }
4555 4555
4556 void LayoutBlockFlow::invalidateDisplayItemClients( 4556 void LayoutBlockFlow::invalidateDisplayItemClients(
4557 PaintInvalidationReason invalidationReason) const { 4557 PaintInvalidationReason invalidationReason) const {
4558 BlockFlowPaintInvalidator(*this).invalidateDisplayItemClients( 4558 BlockFlowPaintInvalidator(*this).invalidateDisplayItemClients(
4559 invalidationReason); 4559 invalidationReason);
4560 } 4560 }
4561 4561
4562 } // namespace blink 4562 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698