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

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

Issue 164553004: Convert LayoutState/LayoutStateMaintainer/LayoutStateDisabler to references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « Source/core/rendering/RenderFlexibleBox.cpp ('k') | Source/core/rendering/RenderFlowThread.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 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void getRegionRangeForBox(const RenderBox*, RenderRegion*& startRegion, Rend erRegion*& endRegion) const; 116 void getRegionRangeForBox(const RenderBox*, RenderRegion*& startRegion, Rend erRegion*& endRegion) const;
117 117
118 virtual bool addForcedRegionBreak(LayoutUnit, RenderObject* breakChild, bool isBefore, LayoutUnit* offsetBreakAdjustment = 0) { return false; } 118 virtual bool addForcedRegionBreak(LayoutUnit, RenderObject* breakChild, bool isBefore, LayoutUnit* offsetBreakAdjustment = 0) { return false; }
119 void applyBreakAfterContent(LayoutUnit); 119 void applyBreakAfterContent(LayoutUnit);
120 120
121 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; } 121 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; }
122 122
123 void collectLayerFragments(LayerFragments&, const LayoutRect& layerBoundingB ox, const LayoutRect& dirtyRect); 123 void collectLayerFragments(LayerFragments&, const LayoutRect& layerBoundingB ox, const LayoutRect& dirtyRect);
124 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox); 124 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox);
125 125
126 void pushFlowThreadLayoutState(const RenderObject*); 126 void pushFlowThreadLayoutState(const RenderObject&);
127 void popFlowThreadLayoutState(); 127 void popFlowThreadLayoutState();
128 LayoutUnit offsetFromLogicalTopOfFirstRegion(const RenderBlock*) const; 128 LayoutUnit offsetFromLogicalTopOfFirstRegion(const RenderBlock*) const;
129 129
130 // Used to estimate the maximum height of the flow thread. 130 // Used to estimate the maximum height of the flow thread.
131 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } 131 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; }
132 132
133 protected: 133 protected:
134 virtual const char* renderName() const = 0; 134 virtual const char* renderName() const = 0;
135 135
136 // Overridden by columns/pages to set up an initial logical width of the pag e width even when 136 // Overridden by columns/pages to set up an initial logical width of the pag e width even when
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 }; 245 };
246 246
247 template <> struct ValueToString<RenderRegion*> { 247 template <> struct ValueToString<RenderRegion*> {
248 static String string(const RenderRegion* value) { return String::format("%p" , value); } 248 static String string(const RenderRegion* value) { return String::format("%p" , value); }
249 }; 249 };
250 #endif 250 #endif
251 251
252 } // namespace WebCore 252 } // namespace WebCore
253 253
254 #endif // RenderFlowThread_h 254 #endif // RenderFlowThread_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFlexibleBox.cpp ('k') | Source/core/rendering/RenderFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698