Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(107)

Unified Diff: Source/WebCore/page/FrameView.cpp

Issue 367840043: Patch
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/page/FrameView.h ('k') | Source/WebCore/page/IntersectionObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/WebCore/page/FrameView.h ('k') | Source/WebCore/page/IntersectionObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b