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

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

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address jchaffraix remarks Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Reset previously calculated column height. Will mark for layout if needed . 106 // Reset previously calculated column height. Will mark for layout if needed .
107 void resetColumnHeight(); 107 void resetColumnHeight();
108 108
109 // Expand this set's flow thread portion rectangle to contain all trailing f low thread 109 // Expand this set's flow thread portion rectangle to contain all trailing f low thread
110 // overflow. Only to be called on the last set. 110 // overflow. Only to be called on the last set.
111 void expandToEncompassFlowThreadContentsIfNeeded(); 111 void expandToEncompassFlowThreadContentsIfNeeded();
112 112
113 void attachRegion(); 113 void attachRegion();
114 void detachRegion(); 114 void detachRegion();
115 115
116 // This method represents the logical height of the entire flow thread porti on used by the region or set.
117 // For RenderRegions it matches logicalPaginationHeight(), but for sets it i s the height of all the pages
118 // or columns added together.
119 LayoutUnit logicalHeightOfAllFlowThreadContent() const { return logicalHeigh tInFlowThread(); }
120
121 void paintInvalidationForFlowThreadContent(const LayoutRect& paintInvalidati onRect) const; 116 void paintInvalidationForFlowThreadContent(const LayoutRect& paintInvalidati onRect) const;
122 117
123 // The top of the nearest page inside the region. For RenderRegions, this is just the logical top of the 118 // The top of the nearest page inside the region. For RenderRegions, this is just the logical top of the
124 // flow thread portion we contain. For sets, we have to figure out the top o f the nearest column or 119 // flow thread portion we contain. For sets, we have to figure out the top o f the nearest column or
125 // page. 120 // page.
126 LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const; 121 LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const;
127 122
128 void collectLayerFragments(LayerFragments&, const LayoutRect& layerBoundingB ox, const LayoutRect& dirtyRect); 123 void collectLayerFragments(LayerFragments&, const LayoutRect& layerBoundingB ox, const LayoutRect& dirtyRect);
129 124
130 LayoutUnit columnGap() const; 125 LayoutUnit columnGap() const;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 }; 201 };
207 Vector<ContentRun, 1> m_contentRuns; 202 Vector<ContentRun, 1> m_contentRuns;
208 }; 203 };
209 204
210 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet()); 205 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet());
211 206
212 } // namespace blink 207 } // namespace blink
213 208
214 #endif // RenderMultiColumnSet_h 209 #endif // RenderMultiColumnSet_h
215 210
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698