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

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

Issue 1024023002: [New Multicolumn] mapAbsoluteToLocalPoint() needs to convert to flow thread coordinates. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: code review - remove more cruft. Created 5 years, 9 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
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Return the visual bounding box based on the supplied flow-thread bounding box. Both 111 // Return the visual bounding box based on the supplied flow-thread bounding box. Both
112 // rectangles are completely physical in terms of writing mode. 112 // rectangles are completely physical in terms of writing mode.
113 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; 113 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const;
114 114
115 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const 115 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const
116 { 116 {
117 return flowThreadPoint + columnOffset(flowThreadPoint); 117 return flowThreadPoint + columnOffset(flowThreadPoint);
118 } 118 }
119 119
120 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo int) const = 0;
121
120 // Used to estimate the maximum height of the flow thread. 122 // Used to estimate the maximum height of the flow thread.
121 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; } 123 static LayoutUnit maxLogicalHeight() { return LayoutUnit::max() / 2; }
122 124
123 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; 125 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0;
124 126
125 virtual const char* name() const = 0; 127 virtual const char* name() const = 0;
126 128
127 protected: 129 protected:
128 void generateColumnSetIntervalTree(); 130 void generateColumnSetIntervalTree();
129 131
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 }; 169 };
168 170
169 template <> struct ValueToString<LayoutMultiColumnSet*> { 171 template <> struct ValueToString<LayoutMultiColumnSet*> {
170 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); } 172 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); }
171 }; 173 };
172 #endif 174 #endif
173 175
174 } // namespace blink 176 } // namespace blink
175 177
176 #endif // LayoutFlowThread_h 178 #endif // LayoutFlowThread_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBoxModelObject.cpp ('k') | Source/core/layout/LayoutMultiColumnFlowThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698