亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dom2_traversal.cpp

?? It is WEB browser core module with source code. Very good!
?? CPP
字號:
/**
 * This file is part of the DOM implementation for KDE.
 *
 * (C) 1999 Lars Knoll (knoll@kde.org)
 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 */

#include "dom/dom2_traversal.h"

#include "dom/dom_exception.h"
#include "dom/dom_string.h"
#include "xml/dom2_traversalimpl.h"

namespace DOM {

// --------------------------------------------------------------

short NodeFilterCondition::acceptNode(const Node &) const
{
    return NodeFilter::FILTER_ACCEPT;
}

// --------------------------------------------------------------

NodeFilter::NodeFilter() : impl(0)
{
}

NodeFilter::NodeFilter(NodeFilterCondition *condition)
{
    impl = new NodeFilterImpl(condition);
    impl->ref();
}

NodeFilter::NodeFilter(const NodeFilter &other)
{
    impl = other.impl;
    if (impl) 
        impl->ref();
}

NodeFilter::NodeFilter(NodeFilterImpl *i)
{
    impl = i;
    if (impl)
        impl->ref();
}

NodeFilter &NodeFilter::operator=(const NodeFilter &other)
{
    if (impl == other.impl)
        return *this;
    
    NodeFilterImpl *old = impl;
    impl = other.impl;
    if (impl) 
        impl->ref();
    if (old) 
        old->deref();

    return *this;
}

NodeFilter::~NodeFilter()
{
    if (impl) 
        impl->deref();
}

short NodeFilter::acceptNode(const Node &node) const
{
    if (impl)
        return impl->acceptNode(node.handle());
    return FILTER_ACCEPT;
}

// --------------------------------------------------------------

NodeIterator::NodeIterator()
{
    impl = 0;
}

NodeIterator::NodeIterator(const NodeIterator &other)
{
    impl = other.impl;
    if (impl) 
        impl->ref();
}

NodeIterator::NodeIterator(NodeIteratorImpl *i)
{
    impl = i;
    if (impl) 
        impl->ref();
}

NodeIterator &NodeIterator::operator=(const NodeIterator &other)
{
    if (impl == other.impl)
        return *this;
    
    NodeIteratorImpl *old = impl;
    impl = other.impl;
    if (impl) 
        impl->ref();
    if (old) 
        old->deref();

    return *this;
}

NodeIterator::~NodeIterator()
{
    if (impl) 
        impl->deref();
}

Node NodeIterator::root() const
{
    if (impl) 
        return impl->root();
    return 0;
}

unsigned long NodeIterator::whatToShow() const
{
    if (impl) 
        return impl->whatToShow();
    return 0;
}

NodeFilter NodeIterator::filter() const
{
    if (impl) 
        return impl->filter();
    return NodeFilter();
}

bool NodeIterator::expandEntityReferences() const
{
    if (impl) 
        return impl->expandEntityReferences();
    return 0;
}

Node NodeIterator::nextNode()
{
    if (!impl)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = DOMException::INVALID_STATE_ERR; return Node(); }
#else
        throw DOMException(DOMException::INVALID_STATE_ERR);
#endif    

    int exceptioncode = 0;
    NodeImpl *result = impl->nextNode(exceptioncode);
    if (exceptioncode)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = exceptioncode; return result; }
#else
        throw DOMException(exceptioncode);
#endif    
    return result;
}

Node NodeIterator::previousNode()
{
    if (!impl)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = DOMException::INVALID_STATE_ERR; return Node(); }
#else
        throw DOMException(DOMException::INVALID_STATE_ERR);
#endif    

    int exceptioncode = 0;
    NodeImpl *result = impl->previousNode(exceptioncode);
    if (exceptioncode)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = exceptioncode; return result; }
#else
        throw DOMException(exceptioncode);
#endif    
    return result;
}

void NodeIterator::detach()
{
    if (!impl)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = DOMException::INVALID_STATE_ERR; return; }
#else
        throw DOMException(DOMException::INVALID_STATE_ERR);
#endif    

    int exceptioncode = 0;
    impl->detach(exceptioncode);
    if (exceptioncode)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = exceptioncode; return; }
#else
        throw DOMException(exceptioncode);
#endif    
}

Node NodeIterator::referenceNode() const
{
    if (!impl)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = DOMException::INVALID_STATE_ERR; return Node(); }
#else
        throw DOMException(DOMException::INVALID_STATE_ERR);
#endif    
        
    return impl->referenceNode();
}

bool NodeIterator::pointerBeforeReferenceNode() const
{
    if (!impl)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = DOMException::INVALID_STATE_ERR; return false; }
#else
        throw DOMException(DOMException::INVALID_STATE_ERR);
#endif    
        
    return impl->pointerBeforeReferenceNode();
}

// --------------------------------------------------------------

TreeWalker::TreeWalker()
{
    impl = 0;
}

TreeWalker::TreeWalker(const TreeWalker &other)
{
    impl = other.impl;
    if (impl) 
        impl->ref();
}

TreeWalker::TreeWalker(TreeWalkerImpl *i)
{
    impl = i;
    if (impl) 
        impl->ref();
}

TreeWalker &TreeWalker::operator=(const TreeWalker &other)
{
    if (impl == other.impl)
        return *this;
    
    TreeWalkerImpl *old = impl;
    impl = other.impl;
    if (impl) 
        impl->ref();
    if (old) 
        old->deref();

    return *this;
}

TreeWalker::~TreeWalker()
{
    if (impl) 
        impl->deref();
}

Node TreeWalker::root() const
{
    if (impl) 
        return impl->root();
    return 0;
}

unsigned long TreeWalker::whatToShow() const
{
    if (impl) 
        return impl->whatToShow();
    return 0;
}

NodeFilter TreeWalker::filter() const
{
    if (impl) 
        return impl->filter();
    return NodeFilter();
}

bool TreeWalker::expandEntityReferences() const
{
    if (impl) return impl->expandEntityReferences();
    return false;
}

Node TreeWalker::currentNode() const
{
    if (impl) 
        return impl->currentNode();
    return 0;
}

void TreeWalker::setCurrentNode(const Node &node)
{
    if (impl) {
        int exceptioncode = 0;
        impl->setCurrentNode(node.handle(), exceptioncode);
        if (exceptioncode)
#if KHTML_NO_EXCEPTIONS
        { _exceptioncode = exceptioncode; return; }
#else
            throw DOMException(exceptioncode);
#endif    
    }
}

Node TreeWalker::parentNode()
{
    if (impl) 
        return impl->parentNode();
    return 0;
}

Node TreeWalker::firstChild()
{
    if (impl) 
        return impl->firstChild();
    return 0;
}

Node TreeWalker::lastChild()
{
    if (impl) 
        return impl->lastChild();
    return 0;
}

Node TreeWalker::previousSibling()
{
    if (impl) 
        return impl->previousSibling();
    return 0;
}

Node TreeWalker::nextSibling()
{
    if (impl) 
        return impl->nextSibling();
    return 0;
}

Node TreeWalker::previousNode()
{
    if (impl) 
        return impl->previousNode();
    return 0;
}

Node TreeWalker::nextNode()
{
    if (impl) 
        return impl->nextNode();
    return 0;
}

} // namespace DOM

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品亚洲porn| 99久久精品免费看国产| 国产麻豆精品视频| 在线观看免费亚洲| 久久日韩粉嫩一区二区三区| 亚洲美女淫视频| 国产高清无密码一区二区三区| 欧洲色大大久久| 中文字幕av一区二区三区免费看| 五月婷婷综合网| 不卡的av电影在线观看| 欧美精品一区二区在线播放| 一级女性全黄久久生活片免费| 国产老女人精品毛片久久| 欧美精品一二三| 一区二区三区在线视频免费| 高清国产一区二区三区| 91麻豆精品国产91久久久久久久久 | 国产91精品一区二区麻豆亚洲| 不卡电影免费在线播放一区| 久久色.com| 久久av资源网| 日韩一级成人av| 亚洲成人精品一区| 日本道色综合久久| 亚洲日本在线看| 99vv1com这只有精品| 国产欧美一区二区精品性| 极品销魂美女一区二区三区| 6080日韩午夜伦伦午夜伦| 亚洲国产精品久久艾草纯爱| 国产99一区视频免费| 久久久久久久久岛国免费| 国产专区欧美精品| 精品国产乱码91久久久久久网站| 男女视频一区二区| 日韩一区二区在线播放| 秋霞成人午夜伦在线观看| 日韩午夜激情免费电影| 久久97超碰色| 久久久91精品国产一区二区精品| 激情另类小说区图片区视频区| 日韩欧美成人激情| 国产一区二区美女| 久久精品亚洲一区二区三区浴池| 国产成人免费在线观看| 久久久久国产精品麻豆ai换脸 | 成人97人人超碰人人99| 亚洲天堂av一区| 在线亚洲人成电影网站色www| 亚洲美女电影在线| 欧美视频日韩视频| 青青草91视频| 久久亚洲精华国产精华液| 高清久久久久久| 亚洲激情中文1区| 欧美丰满少妇xxxbbb| 精品综合久久久久久8888| 日韩精品一区二区三区视频在线观看| 经典三级视频一区| 国产精品初高中害羞小美女文| 欧美精品三级在线观看| 免费在线观看不卡| 久久蜜桃av一区精品变态类天堂| 懂色av中文一区二区三区| 一区二区三区久久久| 日韩欧美激情在线| 菠萝蜜视频在线观看一区| 亚洲高清久久久| 久久免费的精品国产v∧| 色哟哟亚洲精品| 亚洲国产精品欧美一二99| 精品福利一区二区三区| 91蝌蚪porny| 免费不卡在线视频| 国产精品国产三级国产普通话99| 欧美日韩一区二区三区高清| 国产精品一区二区三区四区| 亚洲美女在线国产| 26uuu成人网一区二区三区| 一本到高清视频免费精品| 精品在线免费观看| 亚洲一区二区成人在线观看| ww久久中文字幕| 欧美日韩国产另类一区| 不卡电影一区二区三区| 美女网站色91| 亚洲欧美日韩国产中文在线| 欧美精品一区二区三区四区| 欧美最猛性xxxxx直播| 国产成人av电影在线播放| 日韩国产欧美一区二区三区| 亚洲天堂网中文字| 久久蜜桃一区二区| 日韩欧美中文字幕精品| 色拍拍在线精品视频8848| 丁香五精品蜜臀久久久久99网站| 日本不卡123| 亚洲免费在线看| 国产精品狼人久久影院观看方式| 欧美v国产在线一区二区三区| 在线一区二区三区四区| 99热精品一区二区| 色国产精品一区在线观看| 国产福利一区二区三区| 麻豆国产精品视频| 视频一区二区中文字幕| 一区二区欧美精品| 亚洲人成精品久久久久久| 国产精品久久三| 中文字幕成人网| 国产精品另类一区| 中文字幕一区在线观看| 中文字幕乱码亚洲精品一区| 久久久久久久久久看片| 久久免费午夜影院| 久久综合久久综合久久综合| 亚洲精品一线二线三线无人区| 4438x亚洲最大成人网| 欧美日韩黄色一区二区| 欧美日韩一区国产| 555夜色666亚洲国产免| 7777精品久久久大香线蕉| 欧美日韩激情一区二区| 欧美久久久久久蜜桃| 欧美卡1卡2卡| 欧美一区二区视频在线观看2020 | 久久aⅴ国产欧美74aaa| 日本va欧美va欧美va精品| 久久国产麻豆精品| 国产一区二区成人久久免费影院| 国产一区999| 成人激情小说网站| 91国偷自产一区二区开放时间 | eeuss鲁片一区二区三区在线观看| 成人一级黄色片| 色综合视频一区二区三区高清| 色综合天天天天做夜夜夜夜做| 精品视频一区二区不卡| 欧美午夜不卡视频| 欧美猛男gaygay网站| 日韩视频一区二区三区在线播放 | 国产肉丝袜一区二区| 国产精品麻豆欧美日韩ww| 亚洲影院在线观看| 久久精品国产一区二区三| 丁香天五香天堂综合| 日本高清免费不卡视频| 制服丝袜国产精品| 欧美激情一区不卡| 婷婷亚洲久悠悠色悠在线播放| 蓝色福利精品导航| 99r国产精品| 日韩欧美国产电影| 中文字幕一区二区三区四区不卡| 亚洲男人的天堂在线aⅴ视频| 日韩成人午夜精品| 成人av资源下载| 69堂成人精品免费视频| 国产精品视频一区二区三区不卡| 一区二区三区**美女毛片| 国内精品伊人久久久久av影院 | 99精品视频在线免费观看| 久久精品水蜜桃av综合天堂| 樱花影视一区二区| 久草在线在线精品观看| 欧美亚洲免费在线一区| 亚洲精品在线三区| 亚洲图片欧美视频| 粉嫩欧美一区二区三区高清影视| 欧美在线你懂的| 国产欧美精品国产国产专区| 亚洲国产精品久久人人爱蜜臀| 国产精品一区一区| 欧美日韩国产大片| 国产精品久久久久久久久搜平片 | 亚洲免费在线播放| 激情偷乱视频一区二区三区| 欧美色视频在线| 中文字幕一区av| 国产精品一线二线三线| 欧美一区二区三区在线看| 亚洲女同ⅹxx女同tv| 成人免费av网站| 久久久国产午夜精品| 免费xxxx性欧美18vr| 欧美精品vⅰdeose4hd| 一区二区三区日本| 99久久精品免费看国产| 国产精品视频一区二区三区不卡| 国产在线视视频有精品| 欧美一区二区久久久| 天天色综合成人网| 欧美亚洲国产一区二区三区 | 日韩视频免费观看高清完整版 | 久久香蕉国产线看观看99| 美国av一区二区| 91精品国产91久久综合桃花| 亚洲国产wwwccc36天堂| 欧美午夜影院一区|