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

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

Issue 1516723003: [Element / Autofill] Add boundsInViewportFloat() to fix <input> popup misalignment. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refator to use boundsInViewportFloat() eventually, but keep boundsInViewportInt(). 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
« no previous file with comments | « third_party/WebKit/Source/web/WebElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7ea6bdc5e855ffbca582bcc59afea064f4b3bca4..e5ea5789c0bf5deaefbbd79dc4985cc47083162c 100644
--- a/third_party/WebKit/public/web/WebElement.h
+++ b/third_party/WebKit/public/web/WebElement.h
@@ -38,6 +38,7 @@ namespace blink {
class Element;
struct WebRect;
+struct WebFloatRect;
// Provides access to some properties of a DOM element node.
class WebElement : public WebNode {
@@ -73,7 +74,8 @@ public:
// 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 boundsInViewport();
+ BLINK_EXPORT WebRect boundsInViewportInt();
+ BLINK_EXPORT WebFloatRect boundsInViewportFloat();
// Returns the image contents of this element or a null WebImage
// if there isn't any.
« no previous file with comments | « third_party/WebKit/Source/web/WebElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698