Title: [177704] trunk/Source/WebKit2
- Revision
- 177704
- Author
- [email protected]
- Date
- 2014-12-23 16:13:48 -0800 (Tue, 23 Dec 2014)
Log Message
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.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (177703 => 177704)
--- trunk/Source/WebKit2/ChangeLog 2014-12-24 00:13:16 UTC (rev 177703)
+++ trunk/Source/WebKit2/ChangeLog 2014-12-24 00:13:48 UTC (rev 177704)
@@ -1,5 +1,18 @@
2014-12-23 Timothy Horton <[email protected]>
+ 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 <[email protected]>
+
Remove the custom web page preview code
https://bugs.webkit.org/show_bug.cgi?id=139894
<rdar://problem/19333074>
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKHitTestResult.cpp (177703 => 177704)
--- trunk/Source/WebKit2/UIProcess/API/C/WKHitTestResult.cpp 2014-12-24 00:13:16 UTC (rev 177703)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKHitTestResult.cpp 2014-12-24 00:13:48 UTC (rev 177704)
@@ -71,3 +71,8 @@
{
return toImpl(hitTestResultRef)->isContentEditable();
}
+
+WKRect WKHitTestResultGetElementBoundingBox(WKHitTestResultRef hitTestResultRef)
+{
+ return toAPI(toImpl(hitTestResultRef)->elementBoundingBox());
+}
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKHitTestResult.h (177703 => 177704)
--- trunk/Source/WebKit2/UIProcess/API/C/WKHitTestResult.h 2014-12-24 00:13:16 UTC (rev 177703)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKHitTestResult.h 2014-12-24 00:13:48 UTC (rev 177704)
@@ -28,6 +28,7 @@
#define WKHitTestResult_h
#include <WebKit/WKBase.h>
+#include <WebKit/WKGeometry.h>
#ifdef __cplusplus
extern "C" {
@@ -45,6 +46,8 @@
WK_EXPORT bool WKHitTestResultIsContentEditable(WKHitTestResultRef hitTestResult);
+WK_EXPORT WKRect WKHitTestResultGetElementBoundingBox(WKHitTestResultRef hitTestResultRef);
+
#ifdef __cplusplus
}
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes