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

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

Issue 1907443003: Translate flow thread coords to the nearest enclosing coord space when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a unit test too. Created 4 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 virtual bool isPageLogicalHeightKnown() const { return true; } 99 virtual bool isPageLogicalHeightKnown() const { return true; }
100 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; } 100 bool pageLogicalSizeChanged() const { return m_pageLogicalSizeChanged; }
101 101
102 void collectLayerFragments(PaintLayerFragments&, const LayoutRect& layerBoun dingBox, const LayoutRect& dirtyRectInFlowThread); 102 void collectLayerFragments(PaintLayerFragments&, const LayoutRect& layerBoun dingBox, const LayoutRect& dirtyRectInFlowThread);
103 103
104 // Return the visual bounding box based on the supplied flow-thread bounding box. Both 104 // Return the visual bounding box based on the supplied flow-thread bounding box. Both
105 // rectangles are completely physical in terms of writing mode. 105 // rectangles are completely physical in terms of writing mode.
106 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const; 106 LayoutRect fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const;
107 107
108 LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThreadPoint) const 108 virtual LayoutPoint flowThreadPointToVisualPoint(const LayoutPoint& flowThre adPoint) const = 0;
109 {
110 return flowThreadPoint + columnOffset(flowThreadPoint);
111 }
112
113 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo int) const = 0; 109 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo int) const = 0;
114 110
115 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0; 111 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const = 0;
116 112
117 virtual const char* name() const = 0; 113 virtual const char* name() const = 0;
118 114
119 protected: 115 protected:
120 void generateColumnSetIntervalTree(); 116 void generateColumnSetIntervalTree();
121 117
122 LayoutMultiColumnSetList m_multiColumnSetList; 118 LayoutMultiColumnSetList m_multiColumnSetList;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // These structures are used by PODIntervalTree for debugging. 150 // These structures are used by PODIntervalTree for debugging.
155 #ifndef NDEBUG 151 #ifndef NDEBUG
156 template <> struct ValueToString<LayoutMultiColumnSet*> { 152 template <> struct ValueToString<LayoutMultiColumnSet*> {
157 static String toString(const LayoutMultiColumnSet* value) { return String::f ormat("%p", value); } 153 static String toString(const LayoutMultiColumnSet* value) { return String::f ormat("%p", value); }
158 }; 154 };
159 #endif 155 #endif
160 156
161 } // namespace blink 157 } // namespace blink
162 158
163 #endif // LayoutFlowThread_h 159 #endif // LayoutFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698