xbl_docimpl.cpp
来自「手机浏览器源码程序,功能强大」· C++ 代码 · 共 43 行
CPP
43 行
#ifndef KHTML_NO_XBL
#include "xbl_docimpl.h"
#include "xbl_tokenizer.h"
#include "xbl_protobinding.h"
using DOM::DocumentImpl;
using khtml::XMLHandler;
namespace XBL {
XBLDocumentImpl::XBLDocumentImpl()
:DocumentImpl(0,0)
{
m_prototypeBindingTable.setAutoDelete(true); // The prototype bindings will be deleted when the XBL document dies.
}
XBLDocumentImpl::~XBLDocumentImpl()
{
}
XMLHandler* XBLDocumentImpl::createTokenHandler()
{
return new XBLTokenHandler(docPtr());
}
void XBLDocumentImpl::setPrototypeBinding(const DOM::DOMString& id, XBLPrototypeBinding* binding)
{
m_prototypeBindingTable.replace(id.string(), binding);
}
XBLPrototypeBinding* XBLDocumentImpl::prototypeBinding(const DOM::DOMString& id)
{
if (id.length() == 0)
return 0;
return m_prototypeBindingTable.find(id.string());
}
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?