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

Side by Side Diff: Source/core/layout/LayoutGrid.h

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 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 | « Source/core/layout/LayoutGeometryMap.h ('k') | Source/core/layout/LayoutGrid.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 return m_gridItemsIndexesMap.get(layoutBox); 80 return m_gridItemsIndexesMap.get(layoutBox);
81 } 81 }
82 82
83 private: 83 private:
84 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); 84 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit);
85 85
86 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); } 86 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); }
87 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override; 87 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override;
88 virtual void computePreferredLogicalWidths() override; 88 virtual void computePreferredLogicalWidths() override;
89 89
90 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0) override; 90 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nu llptr) override;
91 virtual void removeChild(LayoutObject*) override; 91 virtual void removeChild(LayoutObject*) override;
92 92
93 virtual void styleDidChange(StyleDifference, const ComputedStyle*) override; 93 virtual void styleDidChange(StyleDifference, const ComputedStyle*) override;
94 94
95 bool explicitGridDidResize(const ComputedStyle&) const; 95 bool explicitGridDidResize(const ComputedStyle&) const;
96 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const; 96 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const;
97 97
98 class GridIterator; 98 class GridIterator;
99 struct GridSizingData; 99 struct GridSizingData;
100 bool gridElementIsShrinkToFit(); 100 bool gridElementIsShrinkToFit();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 OrderIterator m_orderIterator; 192 OrderIterator m_orderIterator;
193 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; 193 Vector<LayoutBox*> m_gridItemsOverflowingGridArea;
194 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; 194 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap;
195 }; 195 };
196 196
197 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 197 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
198 198
199 } // namespace blink 199 } // namespace blink
200 200
201 #endif // LayoutGrid_h 201 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutGeometryMap.h ('k') | Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698