Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / HTMLContentElement.h
index 5518122..163d3fa 100644 (file)
 #include "core/css/CSSSelectorList.h"
 #include "core/dom/shadow/InsertionPoint.h"
 
-namespace WebCore {
+namespace blink {
 
 class HTMLContentElement FINAL : public InsertionPoint {
 public:
-    static PassRefPtr<HTMLContentElement> create(Document&);
-
+    DECLARE_NODE_FACTORY(HTMLContentElement);
     virtual ~HTMLContentElement();
 
     virtual bool canAffectSelector() const OVERRIDE { return true; }
 
-    bool canSelectNode(const Vector<Node*, 32>& siblings, int nth) const;
+    bool canSelectNode(const WillBeHeapVector<RawPtrWillBeMember<Node>, 32>& siblings, int nth) const;
 
     const CSSSelectorList& selectorList() const;
     bool isSelectValid() const;
@@ -57,7 +56,7 @@ private:
     bool validateSelect() const;
     void parseSelect();
 
-    bool matchSelector(const Vector<Node*, 32>& siblings, int nth) const;
+    bool matchSelector(const WillBeHeapVector<RawPtrWillBeMember<Node>, 32>& siblings, int nth) const;
 
     bool m_shouldParseSelect;
     bool m_isValidSelector;
@@ -79,7 +78,7 @@ inline bool HTMLContentElement::isSelectValid() const
     return m_isValidSelector;
 }
 
-inline bool HTMLContentElement::canSelectNode(const Vector<Node*, 32>& siblings, int nth) const
+inline bool HTMLContentElement::canSelectNode(const WillBeHeapVector<RawPtrWillBeMember<Node>, 32>& siblings, int nth) const
 {
     if (m_select.isNull() || m_select.isEmpty())
         return true;