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

Unified Diff: third_party/WebKit/Source/web/WebElement.cpp

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/platform/scroll/Scrollbar.cpp ('k') | third_party/WebKit/public/web/WebElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebElement.cpp
diff --git a/third_party/WebKit/Source/web/WebElement.cpp b/third_party/WebKit/Source/web/WebElement.cpp
index b365a2ccfc2b03784ef5a3ce27ac9a68743fcee6..ada8a1c346705def5c00730eee8b072ce4eb69fb 100644
--- a/third_party/WebKit/Source/web/WebElement.cpp
+++ b/third_party/WebKit/Source/web/WebElement.cpp
@@ -38,6 +38,7 @@
#include "core/dom/custom/CustomElementProcessingStack.h"
#include "core/html/HTMLTextFormControlElement.h"
#include "platform/graphics/Image.h"
+#include "public/platform/WebFloatRect.h"
#include "public/platform/WebRect.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/AtomicString.h"
@@ -146,9 +147,14 @@ bool WebElement::hasNonEmptyLayoutSize() const
return constUnwrap<Element>()->hasNonEmptyLayoutSize();
}
-WebRect WebElement::boundsInViewport()
+WebRect WebElement::boundsInViewportInt()
{
- return unwrap<Element>()->boundsInViewport();
+ return unwrap<Element>()->boundsInViewportInt();
+}
+
+WebFloatRect WebElement::boundsInViewportFloat()
+{
+ return unwrap<Element>()->boundsInViewportFloat();
}
WebImage WebElement::imageContents()
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.cpp ('k') | third_party/WebKit/public/web/WebElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698