Microdata: Fix build failure after r121580.
authorarko@motorola.com <arko@motorola.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 17:30:33 +0000 (17:30 +0000)
committerarko@motorola.com <arko@motorola.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 17:30:33 +0000 (17:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=90378

Reviewed by Ryosuke Niwa.

* html/HTMLElement.cpp:
(WebCore::HTMLElement::properties):
* html/HTMLElement.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121692 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/HTMLElement.cpp
Source/WebCore/html/HTMLElement.h

index 4e577dc..b7ef7c0 100644 (file)
@@ -1,3 +1,14 @@
+2012-07-02  Arko Saha  <arko@motorola.com>
+
+        Microdata: Fix build failure after r121580.
+        https://bugs.webkit.org/show_bug.cgi?id=90378
+
+        Reviewed by Ryosuke Niwa.
+
+        * html/HTMLElement.cpp:
+        (WebCore::HTMLElement::properties):
+        * html/HTMLElement.h:
+
 2012-07-02  Tommy Widenflycht  <tommyw@google.com>
 
         MediaStream API: Update MediaStreamTrackList to match the specification
index e92e956..eaee3f4 100644 (file)
@@ -56,6 +56,7 @@
 #include <wtf/text/CString.h>
 
 #if ENABLE(MICRODATA)
+#include "HTMLPropertiesCollection.h"
 #include "MicroDataItemValue.h"
 #endif
 
@@ -990,7 +991,7 @@ void HTMLElement::setItemValueText(const String& value, ExceptionCode& ec)
 
 HTMLPropertiesCollection* HTMLElement::properties()
 {
-    return ensureCachedHTMLCollection(ItemProperties);
+    return static_cast<HTMLPropertiesCollection*>(ensureCachedHTMLCollection(ItemProperties));
 }
 #endif
 
index 6858dfc..a4dcb1d 100644 (file)
@@ -32,6 +32,7 @@ class HTMLCollection;
 class HTMLFormElement;
 
 #if ENABLE(MICRODATA)
+class HTMLPropertiesCollection;
 class MicroDataItemValue;
 #endif