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

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: 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
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..e97e0b7c5a6e9b0b14769ef7b1c6e2aa2aad4720 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"
@@ -151,6 +152,11 @@ WebRect WebElement::boundsInViewport()
return unwrap<Element>()->boundsInViewport();
}
+WebFloatRect WebElement::boundsInViewportFloat()
+{
+ return unwrap<Element>()->boundsInViewportFloat();
+}
+
WebImage WebElement::imageContents()
{
if (isNull())

Powered by Google App Engine
This is Rietveld 408576698