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

Side by Side Diff: sky/engine/core/rendering/RenderFlexibleBox.cpp

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 prepareOrderIteratorAndMargins(); 232 prepareOrderIteratorAndMargins();
233 233
234 ChildFrameRects oldChildRects; 234 ChildFrameRects oldChildRects;
235 appendChildFrameRects(oldChildRects); 235 appendChildFrameRects(oldChildRects);
236 236
237 layoutFlexItems(relayoutChildren); 237 layoutFlexItems(relayoutChildren);
238 238
239 if (logicalHeight() != previousHeight) 239 if (logicalHeight() != previousHeight)
240 relayoutChildren = true; 240 relayoutChildren = true;
241 241
242 layoutPositionedObjects(relayoutChildren || isDocumentElement()); 242 layoutPositionedObjects(relayoutChildren);
243 243
244 // FIXME: css3/flexbox/repaint-rtl-column.html seems to issue paint inva lidations for more overflow than it needs to. 244 // FIXME: css3/flexbox/repaint-rtl-column.html seems to issue paint inva lidations for more overflow than it needs to.
245 computeOverflow(clientLogicalBottomAfterRepositioning()); 245 computeOverflow(clientLogicalBottomAfterRepositioning());
246 } 246 }
247 247
248 updateLayerTransformAfterLayout(); 248 updateLayerTransformAfterLayout();
249 249
250 clearNeedsLayout(); 250 clearNeedsLayout();
251 } 251 }
252 252
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 ASSERT(child); 1288 ASSERT(child);
1289 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE xtent; 1289 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE xtent;
1290 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset - crossAxisStartEdge; 1290 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset - crossAxisStartEdge;
1291 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi sExtent; 1291 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi sExtent;
1292 adjustAlignmentForChild(child, newOffset - originalOffset); 1292 adjustAlignmentForChild(child, newOffset - originalOffset);
1293 } 1293 }
1294 } 1294 }
1295 } 1295 }
1296 1296
1297 } 1297 }
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBoxModelObject.cpp ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698