OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 static const int infinity = -1; | 39 static const int infinity = -1; |
40 | 40 |
41 class GridItemWithSpan; | 41 class GridItemWithSpan; |
42 | 42 |
43 class GridTrack { | 43 class GridTrack { |
44 public: | 44 public: |
45 GridTrack() | 45 GridTrack() |
46 : m_baseSize(0) | 46 : m_infinitelyGrowable(false) |
47 , m_growthLimit(0) | |
48 , m_plannedSize(0) | |
49 , m_sizeDuringDistribution(0) | |
50 , m_infinitelyGrowable(false) | |
51 { | 47 { |
52 } | 48 } |
53 | 49 |
54 const LayoutUnit& baseSize() const | 50 const LayoutUnit& baseSize() const |
55 { | 51 { |
56 ASSERT(isGrowthLimitBiggerThanBaseSize()); | 52 ASSERT(isGrowthLimitBiggerThanBaseSize()); |
57 return m_baseSize; | 53 return m_baseSize; |
58 } | 54 } |
59 | 55 |
60 const LayoutUnit& growthLimit() const | 56 const LayoutUnit& growthLimit() const |
(...skipping 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2232 | 2228 |
2233 return LayoutPoint(rowAxisOffset, columnAxisOffsetForChild(child, sizingData
)); | 2229 return LayoutPoint(rowAxisOffset, columnAxisOffsetForChild(child, sizingData
)); |
2234 } | 2230 } |
2235 | 2231 |
2236 void LayoutGrid::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) const | 2232 void LayoutGrid::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& pa
intOffset) const |
2237 { | 2233 { |
2238 GridPainter(*this).paintChildren(paintInfo, paintOffset); | 2234 GridPainter(*this).paintChildren(paintInfo, paintOffset); |
2239 } | 2235 } |
2240 | 2236 |
2241 } // namespace blink | 2237 } // namespace blink |
OLD | NEW |