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

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

Issue 1068683002: Delete RenderBlockFlow. (Closed) Base URL: https://github.com/domokit/mojo.git@block
Patch Set: Remove unused float-related code instead of moving it. Created 5 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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 : child(child) 59 : child(child)
60 , childSize(childSize) 60 , childSize(childSize)
61 { 61 {
62 } 62 }
63 63
64 RenderBox* child; 64 RenderBox* child;
65 LayoutUnit childSize; 65 LayoutUnit childSize;
66 }; 66 };
67 67
68 68
69 RenderFlexibleBox::RenderFlexibleBox(Element* element) 69 RenderFlexibleBox::RenderFlexibleBox(ContainerNode* node)
70 : RenderBlock(element) 70 : RenderBlock(node)
71 , m_orderIterator(this) 71 , m_orderIterator(this)
72 , m_numberOfInFlowChildrenOnFirstLine(-1) 72 , m_numberOfInFlowChildrenOnFirstLine(-1)
73 { 73 {
74 } 74 }
75 75
76 RenderFlexibleBox::~RenderFlexibleBox() 76 RenderFlexibleBox::~RenderFlexibleBox()
77 { 77 {
78 } 78 }
79 79
80 RenderFlexibleBox* RenderFlexibleBox::createAnonymous(Document* document) 80 RenderFlexibleBox* RenderFlexibleBox::createAnonymous(Document* document)
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 ASSERT(child); 1254 ASSERT(child);
1255 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE xtent; 1255 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE xtent;
1256 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset - crossAxisStartEdge; 1256 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset - crossAxisStartEdge;
1257 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi sExtent; 1257 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi sExtent;
1258 adjustAlignmentForChild(child, newOffset - originalOffset); 1258 adjustAlignmentForChild(child, newOffset - originalOffset);
1259 } 1259 }
1260 } 1260 }
1261 } 1261 }
1262 1262
1263 } 1263 }
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderFlexibleBox.h ('k') | sky/engine/core/rendering/RenderLineBoxList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698