Title: [137987] trunk/Source/WebKit/chromium
Revision
137987
Author
[email protected]
Date
2012-12-17 22:37:08 -0800 (Mon, 17 Dec 2012)

Log Message

Exposing querySelector function on WebNode
https://bugs.webkit.org/show_bug.cgi?id=105193

Patch by Alex Hutter <[email protected]> on 2012-12-17
Reviewed by Darin Fisher.

This change is necessitated by the new autofill flows in chromium.

* public/WebNode.h:
* src/WebNode.cpp:
(WebKit::WebNode::querySelector):
(WebKit):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (137986 => 137987)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-12-18 06:10:43 UTC (rev 137986)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-12-18 06:37:08 UTC (rev 137987)
@@ -1,3 +1,17 @@
+2012-12-17  Alex Hutter  <[email protected]>
+
+        Exposing querySelector function on WebNode
+        https://bugs.webkit.org/show_bug.cgi?id=105193
+
+        Reviewed by Darin Fisher.
+
+        This change is necessitated by the new autofill flows in chromium.
+
+        * public/WebNode.h:
+        * src/WebNode.cpp:
+        (WebKit::WebNode::querySelector):
+        (WebKit):
+
 2012-12-17  Chris Fleizach  <[email protected]>
 
         Seamless iframe should not announce a new browsing context

Modified: trunk/Source/WebKit/chromium/public/WebNode.h (137986 => 137987)


--- trunk/Source/WebKit/chromium/public/WebNode.h	2012-12-18 06:10:43 UTC (rev 137986)
+++ trunk/Source/WebKit/chromium/public/WebNode.h	2012-12-18 06:37:08 UTC (rev 137987)
@@ -31,6 +31,7 @@
 #ifndef WebNode_h
 #define WebNode_h
 
+#include "WebExceptionCode.h"
 #include "platform/WebCommon.h"
 #include "platform/WebPrivatePtr.h"
 #include "platform/WebString.h"
@@ -112,6 +113,7 @@
     WEBKIT_EXPORT bool dispatchEvent(const WebDOMEvent&);
     WEBKIT_EXPORT void simulateClick();
     WEBKIT_EXPORT WebNodeList getElementsByTagName(const WebString&) const;
+    WEBKIT_EXPORT WebElement querySelector(const WebString&, WebExceptionCode&) const;
     WEBKIT_EXPORT WebElement rootEditableElement() const;
     WEBKIT_EXPORT bool focused() const;
     WEBKIT_EXPORT bool remove();

Modified: trunk/Source/WebKit/chromium/src/WebNode.cpp (137986 => 137987)


--- trunk/Source/WebKit/chromium/src/WebNode.cpp	2012-12-18 06:10:43 UTC (rev 137986)
+++ trunk/Source/WebKit/chromium/src/WebNode.cpp	2012-12-18 06:37:08 UTC (rev 137987)
@@ -217,6 +217,11 @@
     return WebNodeList(m_private->getElementsByTagName(tag));
 }
 
+WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) const
+{
+    return WebElement(m_private->querySelector(tag, ec));
+}
+
 WebElement WebNode::rootEditableElement() const
 {
     return WebElement(m_private->rootEditableElement());
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to