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

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

Issue 883293004: [New Multicolumn] Preparatory work for nested multicol support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Place the new files in ../layout/ , since that's where they'll end up soon anyway. Created 5 years, 10 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) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 // Used to estimate the maximum height of the flow thread. 117 // Used to estimate the maximum height of the flow thread.
118 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } 118 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; }
119 119
120 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; 120 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0;
121 121
122 protected: 122 protected:
123 virtual const char* renderName() const = 0; 123 virtual const char* renderName() const = 0;
124 124
125 void updateRegionsFlowThreadPortionRect(); 125 void generateColumnSetIntervalTree();
126 126
127 RenderMultiColumnSetList m_multiColumnSetList; 127 RenderMultiColumnSetList m_multiColumnSetList;
128 128
129 typedef PODInterval<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInterva l; 129 typedef PODInterval<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInterva l;
130 typedef PODIntervalTree<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInt ervalTree; 130 typedef PODIntervalTree<LayoutUnit, RenderMultiColumnSet*> MultiColumnSetInt ervalTree;
131 131
132 class MultiColumnSetSearchAdapter { 132 class MultiColumnSetSearchAdapter {
133 public: 133 public:
134 MultiColumnSetSearchAdapter(LayoutUnit offset) 134 MultiColumnSetSearchAdapter(LayoutUnit offset)
135 : m_offset(offset) 135 : m_offset(offset)
(...skipping 28 matching lines...) Expand all
164 }; 164 };
165 165
166 template <> struct ValueToString<RenderMultiColumnSet*> { 166 template <> struct ValueToString<RenderMultiColumnSet*> {
167 static String string(const RenderMultiColumnSet* value) { return String::for mat("%p", value); } 167 static String string(const RenderMultiColumnSet* value) { return String::for mat("%p", value); }
168 }; 168 };
169 #endif 169 #endif
170 170
171 } // namespace blink 171 } // namespace blink
172 172
173 #endif // RenderFlowThread_h 173 #endif // RenderFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698