Build fix after r122115 and some cleanups.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jul 2012 20:52:34 +0000 (20:52 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jul 2012 20:52:34 +0000 (20:52 +0000)
* html/HTMLCollection.h:
(HTMLCollection):
* html/HTMLElement.cpp:
(WebCore::HTMLElement::properties):
* html/HTMLElement.h:
(HTMLElement):
* html/HTMLPropertiesCollection.cpp:
(WebCore::HTMLPropertiesCollection::HTMLPropertiesCollection):
* html/HTMLPropertiesCollection.h:
(HTMLPropertiesCollection):

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

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

index 0bd3dec..ec4a650 100644 (file)
@@ -1,3 +1,18 @@
+2012-07-09  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Build fix after r122115 and some cleanups.
+
+        * html/HTMLCollection.h:
+        (HTMLCollection):
+        * html/HTMLElement.cpp:
+        (WebCore::HTMLElement::properties):
+        * html/HTMLElement.h:
+        (HTMLElement):
+        * html/HTMLPropertiesCollection.cpp:
+        (WebCore::HTMLPropertiesCollection::HTMLPropertiesCollection):
+        * html/HTMLPropertiesCollection.h:
+        (HTMLPropertiesCollection):
+
 2012-07-09  Dean Jackson  <dino@apple.com>
 
         Tiled drawing means some elements can disappear behind the page
index f286623..ed980e1 100644 (file)
@@ -113,7 +113,7 @@ public:
     PassRefPtr<NodeList> tags(const String&);
 
     // Non-DOM API
-    bool hasNamedItem(const AtomicString& name) const;
+    virtual bool hasNamedItem(const AtomicString& name) const;
     void namedItems(const AtomicString& name, Vector<RefPtr<Node> >&) const;
     bool isEmpty() const
     {
index 32fbfa0..c5b5073 100644 (file)
@@ -989,7 +989,7 @@ void HTMLElement::setItemValueText(const String& value, ExceptionCode& ec)
     setTextContent(value, ec);
 }
 
-HTMLPropertiesCollection* HTMLElement::properties()
+PassRefPtr<HTMLPropertiesCollection> HTMLElement::properties()
 {
     return static_cast<HTMLPropertiesCollection*>(ensureCachedHTMLCollection(ItemProperties).get());
 }
index a9ed03f..a5fce0c 100644 (file)
@@ -97,7 +97,7 @@ public:
 #if ENABLE(MICRODATA)
     void setItemValue(const String&, ExceptionCode&);
     PassRefPtr<MicroDataItemValue> itemValue() const;
-    HTMLPropertiesCollection* properties();
+    PassRefPtr<HTMLPropertiesCollection> properties();
 #endif
 
 #ifndef NDEBUG
index 9f15f4f..90dc97c 100644 (file)
@@ -53,6 +53,7 @@ PassRefPtr<HTMLPropertiesCollection> HTMLPropertiesCollection::create(Node* item
 HTMLPropertiesCollection::HTMLPropertiesCollection(Node* itemNode)
     : HTMLCollection(itemNode, ItemProperties)
 {
+    m_cache.clear();
 }
 
 HTMLPropertiesCollection::~HTMLPropertiesCollection()
index ea9ab49..261eca3 100644 (file)
@@ -51,8 +51,8 @@ public:
 
     PassRefPtr<DOMStringList> names() const;
 
-    PassRefPtr<NodeList> namedItem(const String&) const;
-    bool hasNamedItem(const AtomicString&) const;
+    virtual PassRefPtr<NodeList> namedItem(const String&) const OVERRIDE;
+    virtual bool hasNamedItem(const AtomicString&) const OVERRIDE;
 
 private:
     HTMLPropertiesCollection(Node*);