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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 397
398 if (size() != previousSize) 398 if (size() != previousSize)
399 relayoutChildren = true; 399 relayoutChildren = true;
400 400
401 layoutPositionedObjects(relayoutChildren || isDocumentElement()); 401 layoutPositionedObjects(relayoutChildren || isDocumentElement());
402 402
403 computeOverflow(oldClientAfterEdge); 403 computeOverflow(oldClientAfterEdge);
404 } 404 }
405 405
406 updateLayerTransformAfterLayout(); 406 updateLayerTransformAfterLayout();
407 updateScrollInfoAfterLayout(); 407 updateAfterLayout();
408 408
409 clearNeedsLayout(); 409 clearNeedsLayout();
410 } 410 }
411 411
412 LayoutUnit LayoutGrid::guttersSize(GridTrackSizingDirection direction, size_t sp an) const 412 LayoutUnit LayoutGrid::guttersSize(GridTrackSizingDirection direction, size_t sp an) const
413 { 413 {
414 ASSERT(span >= 1); 414 ASSERT(span >= 1);
415 415
416 if (span == 1) 416 if (span == 1)
417 return LayoutUnit(); 417 return LayoutUnit();
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 2119
2120 return LayoutPoint(rowAxisOffset, columnAxisOffsetForChild(child, sizingData )); 2120 return LayoutPoint(rowAxisOffset, columnAxisOffsetForChild(child, sizingData ));
2121 } 2121 }
2122 2122
2123 void LayoutGrid::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) const 2123 void LayoutGrid::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) const
2124 { 2124 {
2125 GridPainter(*this).paintChildren(paintInfo, paintOffset); 2125 GridPainter(*this).paintChildren(paintInfo, paintOffset);
2126 } 2126 }
2127 2127
2128 } // namespace blink 2128 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGeometryMapStep.h ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698