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

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

Issue 1870663002: Reland main thread position sticky implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only descend into children which have an ancestor overflow layer. Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 // table can be containing block of positioned elements. 566 // table can be containing block of positioned elements.
567 bool dimensionChanged = oldLogicalWidth != logicalWidth() || oldLogicalH eight != logicalHeight(); 567 bool dimensionChanged = oldLogicalWidth != logicalWidth() || oldLogicalH eight != logicalHeight();
568 layoutPositionedObjects(dimensionChanged); 568 layoutPositionedObjects(dimensionChanged);
569 569
570 updateLayerTransformAfterLayout(); 570 updateLayerTransformAfterLayout();
571 571
572 // Layout was changed, so probably borders too. 572 // Layout was changed, so probably borders too.
573 invalidateCollapsedBorders(); 573 invalidateCollapsedBorders();
574 574
575 computeOverflow(clientLogicalBottom()); 575 computeOverflow(clientLogicalBottom());
576 updateScrollInfoAfterLayout(); 576 updateAfterLayout();
577 } 577 }
578 578
579 // FIXME: This value isn't the intrinsic content logical height, but we need 579 // FIXME: This value isn't the intrinsic content logical height, but we need
580 // to update the value as its used by flexbox layout. crbug.com/367324 580 // to update the value as its used by flexbox layout. crbug.com/367324
581 setIntrinsicContentLogicalHeight(contentLogicalHeight()); 581 setIntrinsicContentLogicalHeight(contentLogicalHeight());
582 582
583 if (view()->layoutState()->pageLogicalHeight()) 583 if (view()->layoutState()->pageLogicalHeight())
584 setPageLogicalOffset(view()->layoutState()->pageLogicalOffset(*this, log icalTop())); 584 setPageLogicalOffset(view()->layoutState()->pageLogicalOffset(*this, log icalTop()));
585 585
586 m_columnLogicalWidthChanged = false; 586 m_columnLogicalWidthChanged = false;
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 1461
1462 LayoutUnit LayoutTable::paddingRight() const 1462 LayoutUnit LayoutTable::paddingRight() const
1463 { 1463 {
1464 if (collapseBorders()) 1464 if (collapseBorders())
1465 return LayoutUnit(); 1465 return LayoutUnit();
1466 1466
1467 return LayoutBlock::paddingRight(); 1467 return LayoutBlock::paddingRight();
1468 } 1468 }
1469 1469
1470 } // namespace blink 1470 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698