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

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

Issue 1817693002: Support edge-inclusive intersections in mapToVisibleRectInAncestorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer-idle-callback
Patch Set: more tests Created 4 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
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 mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*) const override; 85 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*, VisibleRectFlags = DefaultVisibleRect Flags) 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 logicalBottomInFlowThreadAfterPagi nation) = 0; 90 virtual void contentWasLaidOut(LayoutUnit logicalBottomInFlowThreadAfterPagi nation) = 0;
91 virtual bool canSkipLayout(const LayoutBox&) const = 0; 91 virtual bool canSkipLayout(const LayoutBox&) const = 0;
92 92
93 // Find and return the next logical top after |flowThreadOffset| that can fi t unbreakable 93 // Find and return the next logical top after |flowThreadOffset| that can fi t unbreakable
94 // content as tall as |contentLogicalHeight|. |flowThreadOffset| is expected to be at the exact 94 // content as tall as |contentLogicalHeight|. |flowThreadOffset| is expected to be at the exact
95 // top of a column that's known to not have enough space for |contentLogical Height|. This method 95 // top of a column that's known to not have enough space for |contentLogical Height|. This method
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // These structures are used by PODIntervalTree for debugging. 156 // These structures are used by PODIntervalTree for debugging.
157 #ifndef NDEBUG 157 #ifndef NDEBUG
158 template <> struct ValueToString<LayoutMultiColumnSet*> { 158 template <> struct ValueToString<LayoutMultiColumnSet*> {
159 static String toString(const LayoutMultiColumnSet* value) { return String::f ormat("%p", value); } 159 static String toString(const LayoutMultiColumnSet* value) { return String::f ormat("%p", value); }
160 }; 160 };
161 #endif 161 #endif
162 162
163 } // namespace blink 163 } // namespace blink
164 164
165 #endif // LayoutFlowThread_h 165 #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