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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h

Issue 1892793002: Invalidate column rules when the width of a multicol container changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Layout of flow thread content that's to be rendered inside this column se t begins. This 141 // Layout of flow thread content that's to be rendered inside this column se t begins. This
142 // happens at the beginning of flow thread layout, and when advancing from a previous column set 142 // happens at the beginning of flow thread layout, and when advancing from a previous column set
143 // or spanner to this one. 143 // or spanner to this one.
144 void beginFlow(LayoutUnit offsetInFlowThread); 144 void beginFlow(LayoutUnit offsetInFlowThread);
145 145
146 // Layout of flow thread content that was to be rendered inside this column set has 146 // Layout of flow thread content that was to be rendered inside this column set has
147 // finished. This happens at end of flow thread layout, and when advancing t o the next column 147 // finished. This happens at end of flow thread layout, and when advancing t o the next column
148 // set or spanner. 148 // set or spanner.
149 void endFlow(LayoutUnit offsetInFlowThread); 149 void endFlow(LayoutUnit offsetInFlowThread);
150 150
151 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
151 void layout() override; 152 void layout() override;
152 153
153 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const final; 154 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const final;
154 155
155 void attachToFlowThread(); 156 void attachToFlowThread();
156 void detachFromFlowThread(); 157 void detachFromFlowThread();
157 158
158 // The top of the page nearest to the specified block offset. All in flowthr ead coordinates. 159 // The top of the page nearest to the specified block offset. All in flowthr ead coordinates.
159 LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const; 160 LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const;
160 161
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 204
204 bool m_initialHeightCalculated; 205 bool m_initialHeightCalculated;
205 }; 206 };
206 207
207 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); 208 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet());
208 209
209 } // namespace blink 210 } // namespace blink
210 211
211 #endif // LayoutMultiColumnSet_h 212 #endif // LayoutMultiColumnSet_h
212 213
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698