Index: Source/WebCore/page/FrameView.cpp |
diff --git a/Source/WebCore/page/FrameView.cpp b/Source/WebCore/page/FrameView.cpp |
index eec77f773f370d3646732417325b2f0bd26534b5..8df45e94ed51b15f018f8ab590a6df66c7fdd42d 100644 |
--- a/Source/WebCore/page/FrameView.cpp |
+++ b/Source/WebCore/page/FrameView.cpp |
@@ -4657,6 +4657,11 @@ FloatPoint FrameView::absoluteToDocumentPoint(FloatPoint p, std::optional<float> |
return p.scaled(absoluteToDocumentScaleFactor(effectiveZoom)); |
} |
+FloatRect FrameView::absoluteToClientRect(FloatRect rect, std::optional<float> effectiveZoom) const |
+{ |
+ return documentToClientRect(absoluteToDocumentRect(rect, effectiveZoom)); |
+} |
+ |
FloatSize FrameView::documentToClientOffset() const |
{ |
FloatSize clientOrigin = -toFloatSize(visibleContentRect().location()); |