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

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

?? css_stylesheet.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)
 * Copyright (C) 2004 Apple Computer, Inc.
 *
 * 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/dom_exception.h"
#include "dom/css_rule.h"
#include "dom/dom_doc.h"

#include "xml/dom_docimpl.h"

#include "html/html_headimpl.h"

#include "css/css_stylesheetimpl.h"
#include "misc/htmlhashes.h"

#include <stdio.h>

using namespace DOM;

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

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

StyleSheet::StyleSheet(StyleSheetImpl *i)
{
    impl = i;
    if(impl) impl->ref();
}

StyleSheet &StyleSheet::operator = (const StyleSheet &other)
{
    if ( impl != other.impl ) {
    if(impl) impl->deref();
    impl = other.impl;
    if(impl) impl->ref();
    }
    return *this;
}

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

DOMString StyleSheet::type() const
{
    if(!impl) return DOMString();
    return ((StyleSheetImpl *)impl)->type();
}

bool StyleSheet::disabled() const
{
    if(!impl) return 0;
    return ((StyleSheetImpl *)impl)->disabled();
}

void StyleSheet::setDisabled( bool _disabled )
{
    if(impl)
        ((StyleSheetImpl *)impl)->setDisabled( _disabled );
}

DOM::Node StyleSheet::ownerNode() const
{
    if(!impl) return Node();
    return ((StyleSheetImpl *)impl)->ownerNode();
}

StyleSheet StyleSheet::parentStyleSheet() const
{
    if(!impl) return 0;
    return ((StyleSheetImpl *)impl)->parentStyleSheet();
}

DOMString StyleSheet::href() const
{
    if(!impl) return DOMString();
    return ((StyleSheetImpl *)impl)->href();
}

DOMString StyleSheet::title() const
{
    if(!impl) return DOMString();
    return ((StyleSheetImpl *)impl)->title();
}

MediaList StyleSheet::media() const
{
    if(!impl) return 0;
    return ((StyleSheetImpl *)impl)->media();
}

bool StyleSheet::isCSSStyleSheet() const
{
    if(!impl) return false;
    return ((StyleSheetImpl *)impl)->isCSSStyleSheet();
}

bool StyleSheet::isNull() const
{
    return (impl == 0);
}



CSSStyleSheet::CSSStyleSheet() : StyleSheet()
{
}

CSSStyleSheet::CSSStyleSheet(const CSSStyleSheet &other) : StyleSheet(other)
{
}

CSSStyleSheet::CSSStyleSheet(const StyleSheet &other)
{
    if (!other.isCSSStyleSheet())
	impl = 0;
    else
	operator=(other);
}

CSSStyleSheet::CSSStyleSheet(CSSStyleSheetImpl *impl) : StyleSheet(impl)
{
}

CSSStyleSheet &CSSStyleSheet::operator = (const CSSStyleSheet &other)
{
    StyleSheet::operator = (other);
    return *this;
}

CSSStyleSheet &CSSStyleSheet::operator = (const StyleSheet &other)
{
    if(!other.handle()->isCSSStyleSheet())
    {
        if(impl) impl->deref();
        impl = 0;
    } else {
    StyleSheet::operator = (other);
    }
    return *this;
}

CSSStyleSheet::~CSSStyleSheet()
{
}

CSSRule CSSStyleSheet::ownerRule() const
{
    if(!impl) return 0;
    return ((CSSStyleSheetImpl *)impl)->ownerRule();
}

CSSRuleList CSSStyleSheet::cssRules() const
{
    if(!impl) return (CSSRuleListImpl*)0;
    return ((CSSStyleSheetImpl *)impl)->cssRules();
}

unsigned long CSSStyleSheet::insertRule( const DOMString &rule, unsigned long index )
{
    int exceptioncode = 0;
    if(!impl) return 0;
    unsigned long retval = ((CSSStyleSheetImpl *)impl)->insertRule( rule, index, exceptioncode );
#if KHTML_NO_EXCEPTIONS
    if ( exceptioncode )
        { _exceptioncode =  exceptioncode ; return 0; }
#else
    if ( exceptioncode >= CSSException::_EXCEPTION_OFFSET )
        throw CSSException( exceptioncode - CSSException::_EXCEPTION_OFFSET );
    if ( exceptioncode )
        throw DOMException( exceptioncode );    
#endif
    return retval;
}

void CSSStyleSheet::deleteRule( unsigned long index )
{
    int exceptioncode = 0;
    if(impl)
        ((CSSStyleSheetImpl *)impl)->deleteRule( index, exceptioncode );
#if KHTML_NO_EXCEPTIONS
    if ( exceptioncode )
        { _exceptioncode =  exceptioncode ; return; }
#else
    if ( exceptioncode >= CSSException::_EXCEPTION_OFFSET )
        throw CSSException( exceptioncode - CSSException::_EXCEPTION_OFFSET );
    if ( exceptioncode )
        throw DOMException( exceptioncode );    
#endif
}

void CSSStyleSheet::addRule( const DOMString &selector, const DOMString &style, long index )
{
    if (!impl)
        return;
    int exceptioncode = 0;
    static_cast<CSSStyleSheetImpl *>(impl)->addRule( selector, style, index, exceptioncode );
#if KHTML_NO_EXCEPTIONS
    if ( exceptioncode )
        { _exceptioncode =  exceptioncode ; return; }
#else
    if ( exceptioncode >= CSSException::_EXCEPTION_OFFSET )
        throw CSSException( exceptioncode - CSSException::_EXCEPTION_OFFSET );
    if ( exceptioncode )
        throw DOMException( exceptioncode );    
#endif
}



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

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

StyleSheetList::StyleSheetList(StyleSheetListImpl *i)
{
    impl = i;
    if(impl) impl->ref();
}

StyleSheetList &StyleSheetList::operator = (const StyleSheetList &other)
{
    if ( impl != other.impl ) {
    if(impl) impl->deref();
    impl = other.impl;
    if(impl) impl->ref();
    }
    return *this;
}

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

unsigned long StyleSheetList::length() const
{
    if(!impl) return 0;
    return ((StyleSheetListImpl *)impl)->length();
}

StyleSheet StyleSheetList::item( unsigned long index )
{
    if(!impl) return StyleSheet();
    return ((StyleSheetListImpl *)impl)->item( index );
}

StyleSheetListImpl *StyleSheetList::handle() const
{
    return impl;
}

bool StyleSheetList::isNull() const
{
    return (impl == 0);
}

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

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

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

MediaList::MediaList(MediaListImpl *i)
{
    impl = i;
    if(impl) impl->ref();
}

MediaList &MediaList::operator = (const MediaList &other)
{
    if ( impl != other.impl ) {
    if(impl) impl->deref();
    impl = other.impl;
    if(impl) impl->ref();
    }
    return *this;
}

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

DOM::DOMString MediaList::mediaText() const
{
    if(!impl) return DOMString();
    return static_cast<MediaListImpl *>(impl)->mediaText();
}

void MediaList::setMediaText(const DOM::DOMString &value )
{
    if(impl)
        static_cast<MediaListImpl *>(impl)->setMediaText( value );
}

unsigned long MediaList::length() const
{
    if(!impl) return 0;
    return ((MediaListImpl *)impl)->length();
}

DOM::DOMString MediaList::item(unsigned long index) const
{
    if(!impl) return DOMString();
    return ((MediaListImpl *)impl)->item( index );
}

void MediaList::deleteMedium(const DOM::DOMString &oldMedium)
{
    if(impl)
        ((MediaListImpl *)impl)->deleteMedium( oldMedium );
}

void MediaList::appendMedium(const DOM::DOMString &newMedium)
{
    if(impl)
        ((MediaListImpl *)impl)->appendMedium( newMedium );
}

MediaListImpl *MediaList::handle() const
{
    return impl;
}

bool MediaList::isNull() const
{
    return (impl == 0);
}

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

LinkStyle::LinkStyle()
{
    node = 0;
}

LinkStyle::LinkStyle(const LinkStyle &other)
{
    node = other.node;
    if(node) node->ref();
}

LinkStyle & LinkStyle::operator = (const LinkStyle &other)
{
    if ( node != other.node ) {
    if(node) node->deref();
    node = other.node;
    if(node) node->ref();
    }
    return *this;
}

LinkStyle & LinkStyle::operator = (const Node &other)
{
    if(node) node->deref();
    node = 0;
    // ### add processing instructions
    NodeImpl *n = other.handle();

    // ### check link is really linking a style sheet
    if( n && n->isElementNode() &&
	(n->id() == ID_STYLE || n->id() == ID_LINK) ) {
    node = n;
    if(node) node->ref();
    }
    return *this;
}

LinkStyle::~LinkStyle()
{
    if(node) node->deref();
}

StyleSheet LinkStyle::sheet()
{
    int id = node ? node->id() : 0;
    // ### add PI
    return 
	( id == ID_STYLE) ?
	static_cast<HTMLStyleElementImpl *>(node)->sheet()
	: ( (id == ID_LINK) ?
	    static_cast<HTMLLinkElementImpl *>(node)->sheet()
	    : StyleSheet() );
}

bool LinkStyle::isNull() const
{
    return (node == 0);
}


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

DocumentStyle::DocumentStyle()
{
    doc = 0;
}

DocumentStyle::DocumentStyle(const DocumentStyle &other)
{
    doc = other.doc;
    if(doc) doc->ref();
}

DocumentStyle & DocumentStyle::operator = (const DocumentStyle &other)
{
    if ( doc != other.doc ) {
    if(doc) doc->deref();
    doc = other.doc;
    if(doc) doc->ref();
    }
    return *this;
}

DocumentStyle & DocumentStyle::operator = (const Document &other)
{
    DocumentImpl *odoc = static_cast<DocumentImpl *>(other.handle());
    if ( doc != odoc ) {
    if(doc) doc->deref();
	doc = odoc;
    if(doc) doc->ref();
    }
    return *this;
}

DocumentStyle::~DocumentStyle()
{
    if(doc) doc->deref();
}

StyleSheetList DocumentStyle::styleSheets()
{
    return doc->styleSheets();
}

DOMString DocumentStyle::preferredStylesheetSet()
{
    return doc->preferredStylesheetSet();
}

void DocumentStyle::setSelectedStylesheetSet(const DOMString& aStr)
{
    return doc->setSelectedStylesheetSet(aStr);
}

DOMString DocumentStyle::selectedStylesheetSet()
{
    return doc->selectedStylesheetSet();
}

bool DocumentStyle::isNull() const
{
    return (doc == 0);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91美女片黄在线| 亚洲制服丝袜在线| 亚洲日本免费电影| 精品一区在线看| 一本久道久久综合中文字幕| 日韩精品中文字幕一区二区三区| 成人欧美一区二区三区视频网页| 免费观看成人av| 欧洲精品一区二区三区在线观看| 久久精品亚洲精品国产欧美kt∨| 国产69精品久久99不卡| 欧美肥胖老妇做爰| 亚洲男人的天堂在线观看| 麻豆91免费观看| 色屁屁一区二区| 久久se这里有精品| 欧美疯狂性受xxxxx喷水图片| 亚洲国产一区二区三区青草影视 | 国产精品超碰97尤物18| 亚洲一级二级三级| 波多野结衣精品在线| 日韩精品一区二区三区四区视频| 午夜久久久久久久久久一区二区| 91免费版在线看| 亚洲视频一区二区在线| 成人h版在线观看| 国产精品久久久一本精品| 国产精品一区二区三区四区| 91精品国产综合久久久久久久久久 | 亚洲黄网站在线观看| 国产片一区二区| 日韩午夜小视频| 亚洲成人7777| 欧美日韩另类一区| 亚洲va天堂va国产va久| 欧美美女直播网站| 天天影视网天天综合色在线播放| 欧美自拍丝袜亚洲| 亚洲高清免费观看高清完整版在线观看| 91高清视频免费看| 午夜精品一区二区三区三上悠亚| 欧美日韩国产高清一区二区| 亚洲午夜精品一区二区三区他趣| 欧美视频在线一区二区三区 | 欧美日韩精品欧美日韩精品 | 亚洲美女在线国产| 91精品国产91久久综合桃花| 日韩三级视频中文字幕| 亚洲精品在线免费播放| 亚洲日本在线看| 久久精品久久99精品久久| 国产成人精品亚洲777人妖 | 精品国产伦一区二区三区观看方式 | 亚洲视频一区在线| 欧美色图免费看| 亚洲午夜视频在线观看| 欧美日韩免费观看一区三区| 亚洲综合激情另类小说区| 884aa四虎影成人精品一区| 美女精品一区二区| 26uuu国产在线精品一区二区| 国产一区二区三区香蕉| 亚洲欧美怡红院| 91精品国产美女浴室洗澡无遮挡| 精品系列免费在线观看| 国产亚洲短视频| 欧美午夜电影在线播放| 久久99国产精品成人| 国产精品伦一区二区三级视频| 欧美影院精品一区| 国产一区二区视频在线| 一区二区在线观看视频在线观看| 欧美一区二区三级| 99国产欧美久久久精品| 久久精品国产精品青草| 亚洲欧美日韩国产中文在线| 欧美mv和日韩mv的网站| 在线观看亚洲一区| 国产精品12区| 午夜精品久久一牛影视| 综合婷婷亚洲小说| 久久久不卡网国产精品一区| 色综合一区二区| 国产成人在线网站| 人禽交欧美网站| 亚洲一级片在线观看| 欧美国产成人精品| 精品国产一区二区在线观看| 欧美午夜不卡在线观看免费| 成人性生交大合| 国产综合色产在线精品| 三级在线观看一区二区| 一区二区三区蜜桃网| 日本一二三四高清不卡| 欧美精品一区二区三区一线天视频| 欧美性感一区二区三区| 99精品国产99久久久久久白柏 | 成人视屏免费看| 精品一区二区综合| 免费看日韩精品| 视频在线观看一区| 亚洲午夜一区二区| 亚洲激情av在线| 亚洲美女淫视频| 中文字幕中文字幕一区二区| 久久精品人人做人人爽97| 精品国产乱码久久久久久老虎| 欧美日韩国产电影| 666欧美在线视频| 欧美日韩精品欧美日韩精品一 | 麻豆91精品视频| 视频一区二区中文字幕| 亚洲高清不卡在线观看| 亚洲卡通动漫在线| 亚洲一区二区三区四区在线| 亚洲制服丝袜av| 亚洲国产一区二区视频| 日韩专区欧美专区| 日本女优在线视频一区二区| 日韩精品成人一区二区在线| 日韩精品1区2区3区| 六月婷婷色综合| 精品制服美女丁香| 国模一区二区三区白浆| 国产真实精品久久二三区| 国产精品夜夜嗨| 成人av午夜电影| 在线观看欧美黄色| 777久久久精品| 久久美女高清视频| 亚洲欧洲日产国产综合网| 国产日韩成人精品| 国产亚洲美州欧州综合国| 国产成人夜色高潮福利影视| 大桥未久av一区二区三区中文| 国产99一区视频免费| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 不卡av免费在线观看| 色av成人天堂桃色av| 欧美日韩久久不卡| 日韩精品一区二区三区四区 | 91香蕉视频黄| 欧美精品在线一区二区三区| 日韩精品一区二| 亚洲天堂久久久久久久| 视频一区二区三区入口| 国产999精品久久久久久绿帽| 91精彩视频在线| 欧美v国产在线一区二区三区| 国产精品欧美久久久久一区二区| 欧美精品一区二区三区蜜桃| 亚洲一区二区三区精品在线| 国产乱对白刺激视频不卡| 国产激情精品久久久第一区二区| 99综合电影在线视频| 日韩欧美三级在线| 视频在线观看国产精品| gogogo免费视频观看亚洲一| 亚洲第一av色| 26uuu国产在线精品一区二区| 国产精品亲子伦对白| 亚洲日韩欧美一区二区在线| 日韩专区在线视频| 成人av在线电影| 精品久久人人做人人爱| 一区二区三区国产精华| 国产福利精品导航| 欧美一区二区三级| 一区二区三区日韩精品视频| 国产精品自在在线| 欧美一级午夜免费电影| 亚洲激情图片小说视频| 成人免费视频一区| 日韩三级伦理片妻子的秘密按摩| 91国产视频在线观看| 最新热久久免费视频| 国内偷窥港台综合视频在线播放| 色婷婷av一区二区三区大白胸| 久久久www成人免费毛片麻豆 | 捆绑变态av一区二区三区| 色老头久久综合| 国产精品欧美久久久久无广告| 久久se精品一区精品二区| 欧美精品乱人伦久久久久久| 伊人婷婷欧美激情| 99国产精品久久久久久久久久| 国产日韩一级二级三级| 国产一区二区三区免费在线观看| 9191成人精品久久| 午夜精品123| 欧美无乱码久久久免费午夜一区 | 色妹子一区二区| 国产精品福利在线播放| 国产成人在线色| 亚洲国产精品av| 9久草视频在线视频精品| 亚洲欧美在线视频| 91丨九色丨国产丨porny| 一区精品在线播放| 91网站在线播放|