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

Side by Side Diff: Source/core/rendering/RenderGrid.h

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: define RenderObject::frameView in the header Created 7 years, 3 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/rendering/RenderFullScreen.cpp ('k') | Source/core/rendering/RenderListBox.h » ('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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void placeItemsOnGrid(); 85 void placeItemsOnGrid();
86 void populateExplicitGridAndOrderIterator(); 86 void populateExplicitGridAndOrderIterator();
87 void placeSpecifiedMajorAxisItemsOnGrid(Vector<RenderBox*>); 87 void placeSpecifiedMajorAxisItemsOnGrid(Vector<RenderBox*>);
88 void placeAutoMajorAxisItemsOnGrid(Vector<RenderBox*>); 88 void placeAutoMajorAxisItemsOnGrid(Vector<RenderBox*>);
89 void placeAutoMajorAxisItemOnGrid(RenderBox*); 89 void placeAutoMajorAxisItemOnGrid(RenderBox*);
90 TrackSizingDirection autoPlacementMajorAxisDirection() const; 90 TrackSizingDirection autoPlacementMajorAxisDirection() const;
91 TrackSizingDirection autoPlacementMinorAxisDirection() const; 91 TrackSizingDirection autoPlacementMinorAxisDirection() const;
92 92
93 void layoutGridItems(); 93 void layoutGridItems();
94 94
95 virtual bool supportsPartialLayout() const OVERRIDE { return false; }
96
95 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, TrackSizingDir ection, Vector<GridTrack>&); 97 typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, TrackSizingDir ection, Vector<GridTrack>&);
96 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const; 98 typedef LayoutUnit (GridTrack::* AccumulatorGetter)() const;
97 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit); 99 typedef void (GridTrack::* AccumulatorGrowFunction)(LayoutUnit);
98 typedef bool (GridTrackSize::* FilterFunction)() const; 100 typedef bool (GridTrackSize::* FilterFunction)() const;
99 void resolveContentBasedTrackSizingFunctionsForItems(TrackSizingDirection, V ector<GridTrack>& columnTracks, Vector<GridTrack>& rowTracks, RenderBox*, Filter Function, SizingFunction, AccumulatorGetter, AccumulatorGrowFunction); 101 void resolveContentBasedTrackSizingFunctionsForItems(TrackSizingDirection, V ector<GridTrack>& columnTracks, Vector<GridTrack>& rowTracks, RenderBox*, Filter Function, SizingFunction, AccumulatorGetter, AccumulatorGrowFunction);
100 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<GridTrack*>* tracks ForGrowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, LayoutUnit & availableLogicalSpace); 102 void distributeSpaceToTracks(Vector<GridTrack*>&, Vector<GridTrack*>* tracks ForGrowthAboveMaxBreadth, AccumulatorGetter, AccumulatorGrowFunction, LayoutUnit & availableLogicalSpace);
101 103
102 double computeNormalizedFractionBreadth(Vector<GridTrack>&, TrackSizingDirec tion, LayoutUnit availableLogicalSpace) const; 104 double computeNormalizedFractionBreadth(Vector<GridTrack>&, TrackSizingDirec tion, LayoutUnit availableLogicalSpace) const;
103 105
104 const GridTrackSize& gridTrackSize(TrackSizingDirection, size_t) const; 106 const GridTrackSize& gridTrackSize(TrackSizingDirection, size_t) const;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderGrid()); 163 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderGrid());
162 return static_cast<const RenderGrid*>(object); 164 return static_cast<const RenderGrid*>(object);
163 } 165 }
164 166
165 // Catch unneeded cast. 167 // Catch unneeded cast.
166 void toRenderGrid(const RenderGrid*); 168 void toRenderGrid(const RenderGrid*);
167 169
168 } // namespace WebCore 170 } // namespace WebCore
169 171
170 #endif // RenderGrid_h 172 #endif // RenderGrid_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFullScreen.cpp ('k') | Source/core/rendering/RenderListBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698