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

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

Issue 1540443003: Fix LayoutObject::mapToVisibleRectInContainerSpace() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index a2298303ab0935f59a3fc102f197f4dcc22d8a79..5a4388ad9ba78e3583445e68a0bb8705f33090b9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -798,8 +798,11 @@ public:
virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */, double& /* intrinsicRatio */) const { }
IntSize scrolledContentOffset() const;
- void applyCachedScrollOffsetForPaintInvalidation(LayoutRect& paintRect) const;
- void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRect) const;
+
+ // Precondition: this object has overflow clip.
+ // Applies scroll offset to map the rect from scrolling contents space to the space of this object.
+ // If this object is not a paint invalidation container, overflow clip is also applied.
+ void applyOverflowClipAndScrollOffsetForPaintInvalidationIfNeeded(LayoutRect&) const;
virtual bool hasRelativeLogicalWidth() const;
virtual bool hasRelativeLogicalHeight() const;

Powered by Google App Engine
This is Rietveld 408576698