https://bugs.webkit.org/show_bug.cgi?id=139895
<rdar://problem/
19333075>
Reviewed by Dan Bernstein.
* UIProcess/API/C/WKHitTestResult.cpp:
(WKHitTestResultGetElementBoundingBox):
* UIProcess/API/C/WKHitTestResult.h:
Expose the rect.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177704
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-12-23 Timothy Horton <timothy_horton@apple.com>
+
+ Expose ElementBoundingBox on WKHitTestResult
+ https://bugs.webkit.org/show_bug.cgi?id=139895
+ <rdar://problem/19333075>
+
+ Reviewed by Dan Bernstein.
+
+ * UIProcess/API/C/WKHitTestResult.cpp:
+ (WKHitTestResultGetElementBoundingBox):
+ * UIProcess/API/C/WKHitTestResult.h:
+ Expose the rect.
+
2014-12-23 Timothy Horton <timothy_horton@apple.com>
Remove the custom web page preview code
{
return toImpl(hitTestResultRef)->isContentEditable();
}
+
+WKRect WKHitTestResultGetElementBoundingBox(WKHitTestResultRef hitTestResultRef)
+{
+ return toAPI(toImpl(hitTestResultRef)->elementBoundingBox());
+}
#define WKHitTestResult_h
#include <WebKit/WKBase.h>
+#include <WebKit/WKGeometry.h>
#ifdef __cplusplus
extern "C" {
WK_EXPORT bool WKHitTestResultIsContentEditable(WKHitTestResultRef hitTestResult);
+WK_EXPORT WKRect WKHitTestResultGetElementBoundingBox(WKHitTestResultRef hitTestResultRef);
+
#ifdef __cplusplus
}
#endif