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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.cpp

Issue 2015523004: Don't explicitly initialize LayoutUnit to 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Go through the subdirs of core/layout/ too. Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698