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

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

Issue 2241663002: Take CSS Clip and contain: paint into account when computing visual rects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 4 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 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 1135
1136 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the object's 1136 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the object's
1137 // local coordinate space. This is for non-SVG objects and LayoutSVGRoot onl y. SVG objects (except LayoutSVGRoot) 1137 // local coordinate space. This is for non-SVG objects and LayoutSVGRoot onl y. SVG objects (except LayoutSVGRoot)
1138 // should use paintInvalidationRectInLocalSVGCoordinates() and map with SVG transforms instead. 1138 // should use paintInvalidationRectInLocalSVGCoordinates() and map with SVG transforms instead.
1139 virtual LayoutRect localOverflowRectForPaintInvalidation() const; 1139 virtual LayoutRect localOverflowRectForPaintInvalidation() const;
1140 1140
1141 // Given a rect in the object's coordinate space, mutates the rect into one representing the size of its visual painted 1141 // Given a rect in the object's coordinate space, mutates the rect into one representing the size of its visual painted
1142 // output as if |ancestor| was the root of the page: the rect is modified by any intervening clips, transforms 1142 // output as if |ancestor| was the root of the page: the rect is modified by any intervening clips, transforms
1143 // and scrolls between |this| and |ancestor| (not inclusive of |ancestor|), but not any above |ancestor|. 1143 // and scrolls between |this| and |ancestor| (not inclusive of |ancestor|), but not any above |ancestor|.
1144 // The output is in the physical, painted coordinate pixel space of |ancesto r|. 1144 // The output is in the physical, painted coordinate pixel space of |ancesto r|.
1145 // Overflow clipping and scrolling is *not* applied for |ancestor| itself if |ancestor| scrolls overflow. 1145 // Overflow clipping, CSS clipping and scrolling is *not* applied for |ances tor| itself if |ancestor| scrolls overflow.
1146 // The output rect is suitable for purposes such as paint invalidation. 1146 // The output rect is suitable for purposes such as paint invalidation.
1147 // 1147 //
1148 // If visualRectFlags has the EdgeInclusive bit set, clipping operations wil l use 1148 // If visualRectFlags has the EdgeInclusive bit set, clipping operations wil l use
1149 // LayoutRect::inclusiveIntersect, and the return value of inclusiveIntersec t will be propagated 1149 // LayoutRect::inclusiveIntersect, and the return value of inclusiveIntersec t will be propagated
1150 // to the return value of this method. Otherwise, clipping operations will use LayoutRect::intersect, 1150 // to the return value of this method. Otherwise, clipping operations will use LayoutRect::intersect,
1151 // and the return value will be true only if the clipped rect has non-zero a rea. 1151 // and the return value will be true only if the clipped rect has non-zero a rea.
1152 // See the documentation for LayoutRect::inclusiveIntersect for more informa tion. 1152 // See the documentation for LayoutRect::inclusiveIntersect for more informa tion.
1153 virtual bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance stor, LayoutRect&, VisualRectFlags = DefaultVisualRectFlags) const; 1153 virtual bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance stor, LayoutRect&, VisualRectFlags = DefaultVisualRectFlags) const;
1154 1154
1155 // Return the offset to the column in which the specified point (in flow-thr ead coordinates) 1155 // Return the offset to the column in which the specified point (in flow-thr ead coordinates)
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 void showTree(const blink::LayoutObject*); 2163 void showTree(const blink::LayoutObject*);
2164 void showLineTree(const blink::LayoutObject*); 2164 void showLineTree(const blink::LayoutObject*);
2165 void showLayoutTree(const blink::LayoutObject* object1); 2165 void showLayoutTree(const blink::LayoutObject* object1);
2166 // We don't make object2 an optional parameter so that showLayoutTree 2166 // We don't make object2 an optional parameter so that showLayoutTree
2167 // can be called from gdb easily. 2167 // can be called from gdb easily.
2168 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2168 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2169 2169
2170 #endif 2170 #endif
2171 2171
2172 #endif // LayoutObject_h 2172 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698