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

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

Issue 1516683002: Introducing LayoutObject::mapToVisibleRectInContainerSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix flipping logic Created 5 years 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void removeColumnSetFromThread(LayoutMultiColumnSet*); 75 virtual void removeColumnSetFromThread(LayoutMultiColumnSet*);
76 76
77 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, L ogicalExtentComputedValues&) const override; 77 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, L ogicalExtentComputedValues&) const override;
78 78
79 bool hasColumnSets() const { return m_multiColumnSetList.size(); } 79 bool hasColumnSets() const { return m_multiColumnSetList.size(); }
80 80
81 void validateColumnSets(); 81 void validateColumnSets();
82 void invalidateColumnSets(); 82 void invalidateColumnSets();
83 bool hasValidColumnSetInfo() const { return !m_columnSetsInvalidated && !m_m ultiColumnSetList.isEmpty(); } 83 bool hasValidColumnSetInfo() const { return !m_columnSetsInvalidated && !m_m ultiColumnSetList.isEmpty(); }
84 84
85 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const override; 85 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval idationContainer, LayoutRect&, const PaintInvalidationState*) const override;
86 86
87 LayoutUnit pageLogicalHeightForOffset(LayoutUnit); 87 LayoutUnit pageLogicalHeightForOffset(LayoutUnit);
88 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule) ; 88 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule) ;
89 89
90 virtual void contentWasLaidOut(LayoutUnit logicalTopInFlowThreadAfterPaginat ion) = 0; 90 virtual void contentWasLaidOut(LayoutUnit logicalTopInFlowThreadAfterPaginat ion) = 0;
91 91
92 // Find and return the next logical top after |flowThreadOffset| that can fi t unbreakable 92 // Find and return the next logical top after |flowThreadOffset| that can fi t unbreakable
93 // content as tall as |contentLogicalHeight|. |flowThreadOffset| is expected to be at the exact 93 // content as tall as |contentLogicalHeight|. |flowThreadOffset| is expected to be at the exact
94 // top of a column that's known to not have enough space for |contentLogical Height|. This method 94 // top of a column that's known to not have enough space for |contentLogical Height|. This method
95 // is called when the current column is too short to fit the content, in the hope that there 95 // is called when the current column is too short to fit the content, in the hope that there
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // These structures are used by PODIntervalTree for debugging. 155 // These structures are used by PODIntervalTree for debugging.
156 #ifndef NDEBUG 156 #ifndef NDEBUG
157 template <> struct ValueToString<LayoutMultiColumnSet*> { 157 template <> struct ValueToString<LayoutMultiColumnSet*> {
158 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); } 158 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); }
159 }; 159 };
160 #endif 160 #endif
161 161
162 } // namespace blink 162 } // namespace blink
163 163
164 #endif // LayoutFlowThread_h 164 #endif // LayoutFlowThread_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698