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() |