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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutGeometryMap.cpp ('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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); 63 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit);
64 private: 64 private:
65 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); } 65 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutGrid || LayoutBlock::isOfType(type); }
66 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override; 66 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override;
67 virtual void computePreferredLogicalWidths() override; 67 virtual void computePreferredLogicalWidths() override;
68 68
69 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0) override; 69 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0) override;
70 virtual void removeChild(LayoutObject*) override; 70 virtual void removeChild(LayoutObject*) override;
71 71
72 virtual void styleDidChange(StyleDifference, const LayoutStyle*) override; 72 virtual void styleDidChange(StyleDifference, const ComputedStyle*) override;
73 73
74 bool explicitGridDidResize(const LayoutStyle&) const; 74 bool explicitGridDidResize(const ComputedStyle&) const;
75 bool namedGridLinesDefinitionDidChange(const LayoutStyle&) const; 75 bool namedGridLinesDefinitionDidChange(const ComputedStyle&) const;
76 76
77 class GridIterator; 77 class GridIterator;
78 struct GridSizingData; 78 struct GridSizingData;
79 bool gridElementIsShrinkToFit(); 79 bool gridElementIsShrinkToFit();
80 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& availableLogicalSpace); 80 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData &, LayoutUnit& availableLogicalSpace);
81 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri dLength&) const; 81 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const Gri dLength&) const;
82 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri dLength&, LayoutUnit usedBreadth) const; 82 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const Gri dLength&, LayoutUnit usedBreadth) const;
83 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con st Length&) const; 83 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, con st Length&) const;
84 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&); 84 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridS izingData&);
85 85
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 OrderIterator m_orderIterator; 171 OrderIterator m_orderIterator;
172 Vector<LayoutBox*> m_gridItemsOverflowingGridArea; 172 Vector<LayoutBox*> m_gridItemsOverflowingGridArea;
173 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap; 173 HashMap<const LayoutBox*, size_t> m_gridItemsIndexesMap;
174 }; 174 };
175 175
176 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 176 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
177 177
178 } // namespace blink 178 } // namespace blink
179 179
180 #endif // LayoutGrid_h 180 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutGeometryMap.cpp ('k') | Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698