Title: [136447] trunk/Source/WebKit/chromium
Revision
136447
Author
[email protected]
Date
2012-12-03 15:42:49 -0800 (Mon, 03 Dec 2012)

Log Message

[Chromium] Expose removeAttribute in WebElement
https://bugs.webkit.org/show_bug.cgi?id=103780

Reviewed by Darin Fisher.

* public/WebElement.h:
(WebElement):
* src/WebElement.cpp:
(WebKit::WebElement::removeAttribute):
(WebKit):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (136446 => 136447)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-12-03 23:33:20 UTC (rev 136446)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-12-03 23:42:49 UTC (rev 136447)
@@ -1,3 +1,16 @@
+2012-12-03  Fady Samuel  <[email protected]>
+
+        [Chromium] Expose removeAttribute in WebElement
+        https://bugs.webkit.org/show_bug.cgi?id=103780
+
+        Reviewed by Darin Fisher.
+
+        * public/WebElement.h:
+        (WebElement):
+        * src/WebElement.cpp:
+        (WebKit::WebElement::removeAttribute):
+        (WebKit):
+
 2012-12-03  Eugene Klyuchnikov  <[email protected]>
 
         Web Inspector: Make main-thread monitoring go through InspectorController

Modified: trunk/Source/WebKit/chromium/public/WebElement.h (136446 => 136447)


--- trunk/Source/WebKit/chromium/public/WebElement.h	2012-12-03 23:33:20 UTC (rev 136446)
+++ trunk/Source/WebKit/chromium/public/WebElement.h	2012-12-03 23:42:49 UTC (rev 136447)
@@ -61,6 +61,7 @@
         // namespace. Tag name matching is case-insensitive.
         WEBKIT_EXPORT bool hasHTMLTagName(const WebString&) const;
         WEBKIT_EXPORT bool hasAttribute(const WebString&) const;
+        WEBKIT_EXPORT void removeAttribute(const WebString&);
         WEBKIT_EXPORT WebString getAttribute(const WebString&) const;
         WEBKIT_EXPORT bool setAttribute(const WebString& name, const WebString& value);
         WEBKIT_EXPORT WebString innerText();

Modified: trunk/Source/WebKit/chromium/src/WebElement.cpp (136446 => 136447)


--- trunk/Source/WebKit/chromium/src/WebElement.cpp	2012-12-03 23:33:20 UTC (rev 136446)
+++ trunk/Source/WebKit/chromium/src/WebElement.cpp	2012-12-03 23:42:49 UTC (rev 136447)
@@ -80,6 +80,11 @@
     return constUnwrap<Element>()->hasAttribute(attrName);
 }
 
+void WebElement::removeAttribute(const WebString& attrName)
+{
+    unwrap<Element>()->removeAttribute(attrName);
+}
+
 WebString WebElement::getAttribute(const WebString& attrName) const
 {
     return constUnwrap<Element>()->getAttribute(attrName);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to