| OLD | NEW |
| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 : RenderBlock(node) | 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) | |
| 81 { | |
| 82 RenderFlexibleBox* renderer = new RenderFlexibleBox(0); | |
| 83 renderer->setDocumentForAnonymous(document); | |
| 84 return renderer; | |
| 85 } | |
| 86 | |
| 87 const char* RenderFlexibleBox::renderName() const | 80 const char* RenderFlexibleBox::renderName() const |
| 88 { | 81 { |
| 89 return "RenderFlexibleBox"; | 82 return "RenderFlexibleBox"; |
| 90 } | 83 } |
| 91 | 84 |
| 92 void RenderFlexibleBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidt
h, LayoutUnit& maxLogicalWidth) const | 85 void RenderFlexibleBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidt
h, LayoutUnit& maxLogicalWidth) const |
| 93 { | 86 { |
| 94 // FIXME: We're ignoring flex-basis here and we shouldn't. We can't start ho
noring it though until | 87 // FIXME: We're ignoring flex-basis here and we shouldn't. We can't start ho
noring it though until |
| 95 // the flex shorthand stops setting it to 0. | 88 // the flex shorthand stops setting it to 0. |
| 96 // See https://bugs.webkit.org/show_bug.cgi?id=116117 and http://crbug.com/2
40765. | 89 // See https://bugs.webkit.org/show_bug.cgi?id=116117 and http://crbug.com/2
40765. |
| (...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 ASSERT(child); | 1247 ASSERT(child); |
| 1255 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE
xtent; | 1248 LayoutUnit lineCrossAxisExtent = lineContexts[lineNumber].crossAxisE
xtent; |
| 1256 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset
- crossAxisStartEdge; | 1249 LayoutUnit originalOffset = lineContexts[lineNumber].crossAxisOffset
- crossAxisStartEdge; |
| 1257 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi
sExtent; | 1250 LayoutUnit newOffset = contentExtent - originalOffset - lineCrossAxi
sExtent; |
| 1258 adjustAlignmentForChild(child, newOffset - originalOffset); | 1251 adjustAlignmentForChild(child, newOffset - originalOffset); |
| 1259 } | 1252 } |
| 1260 } | 1253 } |
| 1261 } | 1254 } |
| 1262 | 1255 |
| 1263 } | 1256 } |
| OLD | NEW |