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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 void invalidatePaintIncludingNonCompositingDescendants(); 1136 void invalidatePaintIncludingNonCompositingDescendants();
1137 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer); 1137 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer);
1138 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 1138 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
1139 1139
1140 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 1140 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
1141 // coordinate space. This method deals with outlines and overflow. 1141 // coordinate space. This method deals with outlines and overflow.
1142 virtual LayoutRect absoluteClippedOverflowRect() const; 1142 virtual LayoutRect absoluteClippedOverflowRect() const;
1143 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const; 1143 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const;
1144 1144
1145 // Given a rect in the object's coordinate space, compute a rect in the coor dinate space of |ancestor|. If 1145 // Given a rect in the object's coordinate space, compute a rect in the coor dinate space of |ancestor|. If
1146 // intermediate containers have clipping or scrolling of any kind, it is app lied; but overflow clipping is *not* 1146 // intermediate containers have clipping or scrolling of any kind, it is app lied; but overflow clipping is
1147 // applied for |ancestor| itself. The output rect is suitable for purposes s uch as paint invalidation. 1147 // *not* applied for |ancestor| itself. The output rect is suitable for purp oses such as paint invalidation.
1148 virtual void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc estor, LayoutRect&, const PaintInvalidationState*) const; 1148 //
1149 // If visibleRectFlags has the EdgeInclusive bit set, clipping operations wi ll use
1150 // LayoutRect::inclusiveIntersect, and the return value of inclusiveIntersec t will be propagated
1151 // to the return value of this method. Otherwise, clipping operations will use LayoutRect::intersect,
1152 // and the return value will be true only if the clipped rect has non-zero a rea.
1153 // See the documentation for LayoutRect::inclusiveIntersect for more informa tion.
1154 virtual bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc estor, LayoutRect&, const PaintInvalidationState*, VisibleRectFlags = DefaultVis ibleRectFlags) const;
1149 1155
1150 // Return the offset to the column in which the specified point (in flow-thr ead coordinates) 1156 // Return the offset to the column in which the specified point (in flow-thr ead coordinates)
1151 // lives. This is used to convert a flow-thread point to a visual point. 1157 // lives. This is used to convert a flow-thread point to a visual point.
1152 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); } 1158 virtual LayoutSize columnOffset(const LayoutPoint&) const { return LayoutSiz e(); }
1153 1159
1154 virtual unsigned length() const { return 1; } 1160 virtual unsigned length() const { return 1; }
1155 1161
1156 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); } 1162 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut OfFlowPositioned()); }
1157 1163
1158 bool isTransparent() const { return style()->hasOpacity(); } 1164 bool isTransparent() const { return style()->hasOpacity(); }
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 void showTree(const blink::LayoutObject*); 2171 void showTree(const blink::LayoutObject*);
2166 void showLineTree(const blink::LayoutObject*); 2172 void showLineTree(const blink::LayoutObject*);
2167 void showLayoutTree(const blink::LayoutObject* object1); 2173 void showLayoutTree(const blink::LayoutObject* object1);
2168 // We don't make object2 an optional parameter so that showLayoutTree 2174 // We don't make object2 an optional parameter so that showLayoutTree
2169 // can be called from gdb easily. 2175 // can be called from gdb easily.
2170 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2176 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2171 2177
2172 #endif 2178 #endif
2173 2179
2174 #endif // LayoutObject_h 2180 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698