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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1826853007: LayoutBox::mapContentsRectToVisibleRectInBorderBoxSpace() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pi
Patch Set: Enable comparison, DO NOT CQ 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 0e7df4612e1a2ebb04b37b882be130054882c30e..4c2e953669ae71a7287d08a83cce11024da51b1b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1141,9 +1141,10 @@ public:
// should use paintInvalidationRectInLocalSVGCoordinates() and map with SVG transforms instead.
virtual LayoutRect localOverflowRectForPaintInvalidation() const;
- // Given a rect in the object's coordinate space, compute a rect in the coordinate space of |ancestor|. If
- // intermediate containers have clipping or scrolling of any kind, it is applied; but overflow clipping is
- // *not* applied for |ancestor| itself. The output rect is suitable for purposes such as paint invalidation.
+ // Given a rect in the object's coordinate space (i.e. border box space for LayoutBox), compute a rect in the
+ // physical coordinate space of |ancestor|. If intermediate containers (including ancestor itself) have clipping
+ // or scrolling of any kind, it is applied by the child before the rect is passed to container's
+ // |mapToVisibleRectInAncestorSpace()|. The output rect is suitable for purposes such as paint invalidation.
//
// If visibleRectFlags has the EdgeInclusive bit set, clipping operations will use
// LayoutRect::inclusiveIntersect, and the return value of inclusiveIntersect will be propagated

Powered by Google App Engine
This is Rietveld 408576698