66a1a94d56581adfd0574c5b6a51eb53d64b794a
[WebKit-https.git] / WebCore / khtml / xbl / xbl_protobinding.cpp
1 #include "xbl_protobinding.h"
2 #include "xbl_docimpl.h"
3
4 using DOM::DOMString;
5 using DOM::ElementImpl;
6
7 namespace XBL
8 {
9
10 XBLPrototypeBinding::XBLPrototypeBinding(const DOMString& id, ElementImpl* elt)
11 :m_id(id), m_element(elt), m_handler(0)
12 {
13     // Add ourselves to the document's prototype table.
14     document()->setPrototypeBinding(id, this);
15 }
16
17 void XBLPrototypeBinding::initialize()
18 {
19 }
20
21 XBLDocumentImpl* XBLPrototypeBinding::document() const
22 {
23     return static_cast<XBLDocumentImpl*>(m_element->getDocument());
24 }
25
26 void XBLPrototypeBinding::addResource(const DOMString& type, const DOMString& src)
27 {
28     // FIXME: Implement!
29 }
30
31 }