[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.22-985-g3c00f00
eric at webkit.org
eric at webkit.org
Wed Mar 17 17:57:46 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit 94cb9a037a1cdd1bc479f8fcc9418de70a45db8f
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Feb 23 22:17:00 2010 +0000
2010-02-23 James Hawkins <jhawkins at chromium.org>
Reviewed by Darin Fisher.
[Chromium] Implement WebDocument::getElementsByTagName.
https://bugs.webkit.org/show_bug.cgi?id=35272
* public/WebDocument.h:
* src/WebDocument.cpp:
(WebKit::WebDocument::getElementsByTagName):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/chromium/ChangeLog b/WebKit/chromium/ChangeLog
index c671864..928d43a 100644
--- a/WebKit/chromium/ChangeLog
+++ b/WebKit/chromium/ChangeLog
@@ -1,3 +1,15 @@
+2010-02-23 James Hawkins <jhawkins at chromium.org>
+
+ Reviewed by Darin Fisher.
+
+ [Chromium] Implement WebDocument::getElementsByTagName.
+
+ https://bugs.webkit.org/show_bug.cgi?id=35272
+
+ * public/WebDocument.h:
+ * src/WebDocument.cpp:
+ (WebKit::WebDocument::getElementsByTagName):
+
2010-02-23 Steve Block <steveblock at google.com>
Reviewed by Jeremy Orlow.
diff --git a/WebKit/chromium/public/WebDocument.h b/WebKit/chromium/public/WebDocument.h
index 8964d3a..78809ea 100644
--- a/WebKit/chromium/public/WebDocument.h
+++ b/WebKit/chromium/public/WebDocument.h
@@ -42,6 +42,7 @@ namespace WebKit {
class WebElement;
class WebFrame;
class WebNodeCollection;
+class WebNodeList;
class WebString;
class WebURL;
@@ -69,6 +70,7 @@ public:
WEBKIT_API WebNodeCollection all();
WEBKIT_API WebURL completeURL(const WebString&) const;
WEBKIT_API WebElement getElementById(const WebString& id) const;
+ WEBKIT_API WebNodeList getElementsByTagName(const WebString&);
WEBKIT_API WebString applicationID() const;
#if WEBKIT_IMPLEMENTATION
diff --git a/WebKit/chromium/src/WebDocument.cpp b/WebKit/chromium/src/WebDocument.cpp
index 2a91e22..e6144de 100644
--- a/WebKit/chromium/src/WebDocument.cpp
+++ b/WebKit/chromium/src/WebDocument.cpp
@@ -44,6 +44,7 @@
#include "WebElement.h"
#include "WebFrameImpl.h"
#include "WebNodeCollection.h"
+#include "WebNodeList.h"
#include "WebURL.h"
#include <wtf/PassRefPtr.h>
@@ -118,6 +119,11 @@ WebElement WebDocument::getElementById(const WebString& id) const
return WebElement(constUnwrap<Document>()->getElementById(id));
}
+WebNodeList WebDocument::getElementsByTagName(const WebString& tag)
+{
+ return WebNodeList(unwrap<Document>()->getElementsByTagName(tag));
+}
+
WebString WebDocument::applicationID() const
{
const char* kChromeApplicationHeader = "x-chrome-application";
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list