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

Side by Side Diff: Source/core/layout/LayoutFlowThread.h

Issue 1198433002: *** NOT FOR LANDING *** mapLocalToContainer and offsetFromContainer cleanup. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: There's also work that LayoutBoxModelObject::offsetFromContainer could do instead of LayoutObject. Created 5 years, 6 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/layout/LayoutBoxModelObject.cpp ('k') | Source/core/layout/LayoutInline.h » ('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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Return the visual bounding box based on the supplied flow-thread bounding box. Both 105 // Return the visual bounding box based on the supplied flow-thread bounding box. Both
106 // rectangles are completely physical in terms of writing mode. 106 // rectangles are completely physical in terms of writing mode.
107 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; 107 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const;
108 108
109 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const 109 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const
110 { 110 {
111 return flowThreadPoint + columnOffset(flowThreadPoint); 111 return flowThreadPoint + columnOffset(flowThreadPoint);
112 } 112 }
113 113
114 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo int) const = 0;
115
116 // Used to estimate the maximum height of the flow thread. 114 // Used to estimate the maximum height of the flow thread.
117 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } 115 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; }
118 116
119 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; 117 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0;
120 118
121 virtual const char* name() const = 0; 119 virtual const char* name() const = 0;
122 120
123 protected: 121 protected:
124 void generateColumnSetIntervalTree(); 122 void generateColumnSetIntervalTree();
125 123
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 }; 161 };
164 162
165 template <> struct ValueToString<LayoutMultiColumnSet*> { 163 template <> struct ValueToString<LayoutMultiColumnSet*> {
166 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); } 164 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); }
167 }; 165 };
168 #endif 166 #endif
169 167
170 } // namespace blink 168 } // namespace blink
171 169
172 #endif // LayoutFlowThread_h 170 #endif // LayoutFlowThread_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBoxModelObject.cpp ('k') | Source/core/layout/LayoutInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698