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