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

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

Issue 478733002: Rename repaint to paintInvalidation for remaining methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void removeRegionFromThread(RenderMultiColumnSet*); 73 virtual void removeRegionFromThread(RenderMultiColumnSet*);
74 74
75 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; 75 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE;
76 76
77 bool hasRegions() const { return m_multiColumnSetList.size(); } 77 bool hasRegions() const { return m_multiColumnSetList.size(); }
78 78
79 void validateRegions(); 79 void validateRegions();
80 void invalidateRegions(); 80 void invalidateRegions();
81 bool hasValidRegionInfo() const { return !m_regionsInvalidated && !m_multiCo lumnSetList.isEmpty(); } 81 bool hasValidRegionInfo() const { return !m_regionsInvalidated && !m_multiCo lumnSetList.isEmpty(); }
82 82
83 void repaintRectangleInRegions(const LayoutRect&) const; 83 void paintInvalidationRectangleInRegions(const LayoutRect&) const;
84 84
85 LayoutUnit pageLogicalHeightForOffset(LayoutUnit); 85 LayoutUnit pageLogicalHeightForOffset(LayoutUnit);
86 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule = IncludePageBoundary); 86 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule = IncludePageBoundary);
87 87
88 virtual void setPageBreak(LayoutUnit /*offset*/, LayoutUnit /*spaceShortage* /) { } 88 virtual void setPageBreak(LayoutUnit /*offset*/, LayoutUnit /*spaceShortage* /) { }
89 virtual void updateMinimumPageHeight(LayoutUnit /*offset*/, LayoutUnit /*min Height*/) { } 89 virtual void updateMinimumPageHeight(LayoutUnit /*offset*/, LayoutUnit /*min Height*/) { }
90 90
91 bool regionsHaveUniformLogicalHeight() const { return m_regionsHaveUniformLo gicalHeight; } 91 bool regionsHaveUniformLogicalHeight() const { return m_regionsHaveUniformLo gicalHeight; }
92 92
93 // FIXME: These 2 functions should return a RenderMultiColumnSet. 93 // FIXME: These 2 functions should return a RenderMultiColumnSet.
(...skipping 14 matching lines...) Expand all
108 void popFlowThreadLayoutState(); 108 void popFlowThreadLayoutState();
109 LayoutUnit offsetFromLogicalTopOfFirstRegion(const RenderBlock*) const; 109 LayoutUnit offsetFromLogicalTopOfFirstRegion(const RenderBlock*) const;
110 110
111 // Used to estimate the maximum height of the flow thread. 111 // Used to estimate the maximum height of the flow thread.
112 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } 112 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; }
113 113
114 protected: 114 protected:
115 virtual const char* renderName() const = 0; 115 virtual const char* renderName() const = 0;
116 116
117 void updateRegionsFlowThreadPortionRect(); 117 void updateRegionsFlowThreadPortionRect();
118 bool shouldRepaint(const LayoutRect&) const; 118 bool shouldIssuePaintInvalidations(const LayoutRect&) const;
119 119
120 void getRegionRangeForBox(const RenderBox*, RenderMultiColumnSet*& startColu mnSet, RenderMultiColumnSet*& endColumnSet) const; 120 void getRegionRangeForBox(const RenderBox*, RenderMultiColumnSet*& startColu mnSet, RenderMultiColumnSet*& endColumnSet) const;
121 121
122 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; 122 virtual RenderMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0;
123 123
124 bool cachedOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit&) const; 124 bool cachedOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit&) const;
125 void setOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit); 125 void setOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit);
126 void clearOffsetFromLogicalTopOfFirstRegion(const RenderBox*); 126 void clearOffsetFromLogicalTopOfFirstRegion(const RenderBox*);
127 127
128 const RenderBox* currentStatePusherRenderBox() const; 128 const RenderBox* currentStatePusherRenderBox() const;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 }; 214 };
215 215
216 template <> struct ValueToString<RenderMultiColumnSet*> { 216 template <> struct ValueToString<RenderMultiColumnSet*> {
217 static String string(const RenderMultiColumnSet* value) { return String::for mat("%p", value); } 217 static String string(const RenderMultiColumnSet* value) { return String::for mat("%p", value); }
218 }; 218 };
219 #endif 219 #endif
220 220
221 } // namespace blink 221 } // namespace blink
222 222
223 #endif // RenderFlowThread_h 223 #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