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

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

Issue 241713002: Remove some dead code from rendering/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 virtual void setPageBreak(LayoutUnit /*offset*/, LayoutUnit /*spaceShortage* /) { } 94 virtual void setPageBreak(LayoutUnit /*offset*/, LayoutUnit /*spaceShortage* /) { }
95 virtual void updateMinimumPageHeight(LayoutUnit /*offset*/, LayoutUnit /*min Height*/) { } 95 virtual void updateMinimumPageHeight(LayoutUnit /*offset*/, LayoutUnit /*min Height*/) { }
96 96
97 enum RegionAutoGenerationPolicy { 97 enum RegionAutoGenerationPolicy {
98 AllowRegionAutoGeneration, 98 AllowRegionAutoGeneration,
99 DisallowRegionAutoGeneration, 99 DisallowRegionAutoGeneration,
100 }; 100 };
101 RenderRegion* regionAtBlockOffset(LayoutUnit, bool extendLastRegion = false, RegionAutoGenerationPolicy = AllowRegionAutoGeneration); 101 RenderRegion* regionAtBlockOffset(LayoutUnit, bool extendLastRegion = false, RegionAutoGenerationPolicy = AllowRegionAutoGeneration);
102 102
103 RenderRegion* regionFromAbsolutePointAndBox(IntPoint, const RenderBox* flowe dBox);
104
105 bool regionsHaveUniformLogicalHeight() const { return m_regionsHaveUniformLo gicalHeight; } 103 bool regionsHaveUniformLogicalHeight() const { return m_regionsHaveUniformLo gicalHeight; }
106 104
107 RenderRegion* mapFromFlowToRegion(TransformState&) const; 105 RenderRegion* mapFromFlowToRegion(TransformState&) const;
108 106
109 RenderRegion* firstRegion() const; 107 RenderRegion* firstRegion() const;
110 RenderRegion* lastRegion() const; 108 RenderRegion* lastRegion() const;
111 109
112 bool previousRegionCountChanged() const { return m_previousRegionCount != m_ regionList.size(); } 110 bool previousRegionCountChanged() const { return m_previousRegionCount != m_ regionList.size(); }
113 void updatePreviousRegionCount() { m_previousRegionCount = m_regionList.size (); } 111 void updatePreviousRegionCount() { m_previousRegionCount = m_regionList.size (); }
114 112
(...skipping 20 matching lines...) Expand all
135 virtual const char* renderName() const = 0; 133 virtual const char* renderName() const = 0;
136 134
137 // Overridden by columns/pages to set up an initial logical width of the pag e width even when 135 // Overridden by columns/pages to set up an initial logical width of the pag e width even when
138 // no regions have been generated yet. 136 // no regions have been generated yet.
139 virtual LayoutUnit initialLogicalWidth() const { return 0; }; 137 virtual LayoutUnit initialLogicalWidth() const { return 0; };
140 138
141 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE FINAL; 139 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE FINAL;
142 140
143 void updateRegionsFlowThreadPortionRect(); 141 void updateRegionsFlowThreadPortionRect();
144 bool shouldRepaint(const LayoutRect&) const; 142 bool shouldRepaint(const LayoutRect&) const;
145 bool regionInRange(const RenderRegion* targetRegion, const RenderRegion* sta rtRegion, const RenderRegion* endRegion) const;
146 143
147 LayoutRect computeRegionClippingRect(const LayoutPoint&, const LayoutRect&, const LayoutRect&) const; 144 virtual void autoGenerateRegionsToBlockOffset(LayoutUnit) { }
148
149 virtual void autoGenerateRegionsToBlockOffset(LayoutUnit) { };
150 145
151 bool cachedOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit&) const; 146 bool cachedOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit&) const;
152 void setOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit); 147 void setOffsetFromLogicalTopOfFirstRegion(const RenderBox*, LayoutUnit);
153 void clearOffsetFromLogicalTopOfFirstRegion(const RenderBox*); 148 void clearOffsetFromLogicalTopOfFirstRegion(const RenderBox*);
154 149
155 const RenderBox* currentStatePusherRenderBox() const; 150 const RenderBox* currentStatePusherRenderBox() const;
156 151
157 RenderRegionList m_regionList; 152 RenderRegionList m_regionList;
158 unsigned short m_previousRegionCount; 153 unsigned short m_previousRegionCount;
159 154
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 }; 237 };
243 238
244 template <> struct ValueToString<RenderRegion*> { 239 template <> struct ValueToString<RenderRegion*> {
245 static String string(const RenderRegion* value) { return String::format("%p" , value); } 240 static String string(const RenderRegion* value) { return String::format("%p" , value); }
246 }; 241 };
247 #endif 242 #endif
248 243
249 } // namespace WebCore 244 } // namespace WebCore
250 245
251 #endif // RenderFlowThread_h 246 #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