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

Unified Diff: third_party/WebKit/public/web/WebElement.h

Issue 1463723003: Return VisualViewport coords in boundsInViewportSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/public/web/WebElement.h
diff --git a/third_party/WebKit/public/web/WebElement.h b/third_party/WebKit/public/web/WebElement.h
index 012fe328af7a6247b41aef2115771eea750894c8..a0d4973df0bcf9766fc926459a61aa43c7e08cc3 100644
--- a/third_party/WebKit/public/web/WebElement.h
+++ b/third_party/WebKit/public/web/WebElement.h
@@ -71,11 +71,10 @@ public:
// If this element takes up space in the layout of the page.
BLINK_EXPORT bool hasNonEmptyLayoutSize() const;
- // Returns the bounds of the element in viewport space. The bounds
- // have been adjusted to include any transformations. This view is
- // also called the Root View in Blink.
+ // Returns the bounds of the element in Visual Viewport. The bounds
+ // have been adjusted to include any transformations, including page scale.
// This function will update the layout if required.
- BLINK_EXPORT WebRect boundsInViewportSpace();
+ BLINK_EXPORT WebRect boundsInViewport();
// Returns the image contents of this element or a null WebImage
// if there isn't any.

Powered by Google App Engine
This is Rietveld 408576698