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

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

?? cssstyleselector.cpp

?? linux下開源瀏覽器WebKit的源碼,市面上的很多商用瀏覽器都是移植自WebKit
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
    applyDeclarations(true, true, firstUARule, lastUARule);        // If our font got dirtied, go ahead and update it now.    if (m_fontDirty)        updateFont();    // Line-height is set when we are sure we decided on the font-size    if (m_lineHeightValue)        applyProperty(CSSPropertyLineHeight, m_lineHeightValue);        // Now do the normal priority properties.    applyDeclarations(false, false, firstUARule, lastUARule);        // Cache our border and background so that we can examine them later.    cacheBorderAndBackground();        applyDeclarations(false, false, lastUARule + 1, m_matchedDecls.size() - 1);    applyDeclarations(false, true, firstAuthorRule, lastAuthorRule);    applyDeclarations(false, true, firstUserRule, lastUserRule);    applyDeclarations(false, true, firstUARule, lastUARule);        // If our font got dirtied by one of the non-essential font props,     // go ahead and update it a second time.    if (m_fontDirty)        updateFont();    // Clean up our style object's display and text decorations (among other fixups).    adjustRenderStyle(style(), 0);    // Now return the style.    return m_style.release();}static void addIntrinsicMargins(RenderStyle* style){    // Intrinsic margin value.    const int intrinsicMargin = 2 * style->effectiveZoom();        // FIXME: Using width/height alone and not also dealing with min-width/max-width is flawed.    // FIXME: Using "quirk" to decide the margin wasn't set is kind of lame.    if (style->width().isIntrinsicOrAuto()) {        if (style->marginLeft().quirk())            style->setMarginLeft(Length(intrinsicMargin, Fixed));        if (style->marginRight().quirk())            style->setMarginRight(Length(intrinsicMargin, Fixed));    }    if (style->height().isAuto()) {        if (style->marginTop().quirk())            style->setMarginTop(Length(intrinsicMargin, Fixed));        if (style->marginBottom().quirk())            style->setMarginBottom(Length(intrinsicMargin, Fixed));    }}void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, Element *e){    // Cache our original display.    style->setOriginalDisplay(style->display());    if (style->display() != NONE) {        // If we have a <td> that specifies a float property, in quirks mode we just drop the float        // property.        // Sites also commonly use display:inline/block on <td>s and <table>s.  In quirks mode we force        // these tags to retain their display types.        if (!m_checker.m_strictParsing && e) {            if (e->hasTagName(tdTag)) {                style->setDisplay(TABLE_CELL);                style->setFloating(FNONE);            }            else if (e->hasTagName(tableTag))                style->setDisplay(style->isDisplayInlineType() ? INLINE_TABLE : TABLE);        }        if (e && (e->hasTagName(tdTag) || e->hasTagName(thTag))) {            if (style->whiteSpace() == KHTML_NOWRAP) {                // Figure out if we are really nowrapping or if we should just                // use normal instead.  If the width of the cell is fixed, then                // we don't actually use NOWRAP.                if (style->width().isFixed())                    style->setWhiteSpace(NORMAL);                else                    style->setWhiteSpace(NOWRAP);            }        }        // Tables never support the -webkit-* values for text-align and will reset back to the default.        if (e && e->hasTagName(tableTag) && (style->textAlign() == WEBKIT_LEFT || style->textAlign() == WEBKIT_CENTER || style->textAlign() == WEBKIT_RIGHT))            style->setTextAlign(TAAUTO);        // Frames and framesets never honor position:relative or position:absolute.  This is necessary to        // fix a crash where a site tries to position these objects.  They also never honor display.        if (e && (e->hasTagName(frameTag) || e->hasTagName(framesetTag))) {            style->setPosition(StaticPosition);            style->setDisplay(BLOCK);        }        // Table headers with a text-align of auto will change the text-align to center.        if (e && e->hasTagName(thTag) && style->textAlign() == TAAUTO)            style->setTextAlign(CENTER);        if (e && e->hasTagName(legendTag))            style->setDisplay(BLOCK);        // Mutate the display to BLOCK or TABLE for certain cases, e.g., if someone attempts to        // position or float an inline, compact, or run-in.  Cache the original display, since it        // may be needed for positioned elements that have to compute their static normal flow        // positions.  We also force inline-level roots to be block-level.        if (style->display() != BLOCK && style->display() != TABLE && style->display() != BOX &&            (style->position() == AbsolutePosition || style->position() == FixedPosition || style->floating() != FNONE ||             (e && e->document()->documentElement() == e))) {            if (style->display() == INLINE_TABLE)                style->setDisplay(TABLE);            else if (style->display() == INLINE_BOX)                style->setDisplay(BOX);            else if (style->display() == LIST_ITEM) {                // It is a WinIE bug that floated list items lose their bullets, so we'll emulate the quirk,                // but only in quirks mode.                if (!m_checker.m_strictParsing && style->floating() != FNONE)                    style->setDisplay(BLOCK);            }            else                style->setDisplay(BLOCK);        }                // After performing the display mutation, check table rows.  We do not honor position:relative on        // table rows or cells.  This has been established in CSS2.1 (and caused a crash in containingBlock()        // on some sites).        if ((style->display() == TABLE_HEADER_GROUP || style->display() == TABLE_ROW_GROUP ||             style->display() == TABLE_FOOTER_GROUP || style->display() == TABLE_ROW || style->display() == TABLE_CELL) &&             style->position() == RelativePosition)            style->setPosition(StaticPosition);    }    // Make sure our z-index value is only applied if the object is positioned.    if (style->position() == StaticPosition)        style->setHasAutoZIndex();    // Auto z-index becomes 0 for the root element and transparent objects.  This prevents    // cases where objects that should be blended as a single unit end up with a non-transparent    // object wedged in between them.  Auto z-index also becomes 0 for objects that specify transforms/masks/reflections.    if (style->hasAutoZIndex() && ((e && e->document()->documentElement() == e) || style->opacity() < 1.0f ||         style->hasTransformRelatedProperty() || style->hasMask() || style->boxReflect()))        style->setZIndex(0);        // Button, legend, input, select and textarea all consider width values of 'auto' to be 'intrinsic'.    // This will be important when we use block flows for all form controls.    if (e && (e->hasTagName(legendTag) || e->hasTagName(buttonTag) || e->hasTagName(inputTag) ||              e->hasTagName(selectTag) || e->hasTagName(textareaTag)#if ENABLE(WML)              || e->hasTagName(WMLNames::insertedLegendTag)              || e->hasTagName(WMLNames::inputTag)#endif       )) {        if (style->width().isAuto())            style->setWidth(Length(Intrinsic));    }    // Finally update our text decorations in effect, but don't allow text-decoration to percolate through    // tables, inline blocks, inline tables, or run-ins.    if (style->display() == TABLE || style->display() == INLINE_TABLE || style->display() == RUN_IN        || style->display() == INLINE_BLOCK || style->display() == INLINE_BOX)        style->setTextDecorationsInEffect(style->textDecoration());    else        style->addToTextDecorationsInEffect(style->textDecoration());        // If either overflow value is not visible, change to auto.    if (style->overflowX() == OMARQUEE && style->overflowY() != OMARQUEE)        style->setOverflowY(OMARQUEE);    else if (style->overflowY() == OMARQUEE && style->overflowX() != OMARQUEE)        style->setOverflowX(OMARQUEE);    else if (style->overflowX() == OVISIBLE && style->overflowY() != OVISIBLE)        style->setOverflowX(OAUTO);    else if (style->overflowY() == OVISIBLE && style->overflowX() != OVISIBLE)        style->setOverflowY(OAUTO);    // Table rows, sections and the table itself will support overflow:hidden and will ignore scroll/auto.    // FIXME: Eventually table sections will support auto and scroll.    if (style->display() == TABLE || style->display() == INLINE_TABLE ||        style->display() == TABLE_ROW_GROUP || style->display() == TABLE_ROW) {        if (style->overflowX() != OVISIBLE && style->overflowX() != OHIDDEN)             style->setOverflowX(OVISIBLE);        if (style->overflowY() != OVISIBLE && style->overflowY() != OHIDDEN)             style->setOverflowY(OVISIBLE);    }    // Menulists should have visible overflow    if (style->appearance() == MenulistPart) {        style->setOverflowX(OVISIBLE);        style->setOverflowY(OVISIBLE);    }    // Cull out any useless layers and also repeat patterns into additional layers.    style->adjustBackgroundLayers();    style->adjustMaskLayers();    // Do the same for animations and transitions.    style->adjustAnimations();    style->adjustTransitions();    // Important: Intrinsic margins get added to controls before the theme has adjusted the style, since the theme will    // alter fonts and heights/widths.    if (e && e->isFormControlElement() && style->fontSize() >= 11) {        // Don't apply intrinsic margins to image buttons.  The designer knows how big the images are,        // so we have to treat all image buttons as though they were explicitly sized.        if (!e->hasTagName(inputTag) || static_cast<HTMLInputElement*>(e)->inputType() != HTMLInputElement::IMAGE)            addIntrinsicMargins(style);    }    // Let the theme also have a crack at adjusting the style.    if (style->hasAppearance())        theme()->adjustStyle(this, style, e, m_hasUAAppearance, m_borderData, m_backgroundData, m_backgroundColor);#if ENABLE(SVG)    if (e && e->isSVGElement()) {        // Spec: http://www.w3.org/TR/SVG/masking.html#OverflowProperty        if (style->overflowY() == OSCROLL)            style->setOverflowY(OHIDDEN);        else if (style->overflowY() == OAUTO)            style->setOverflowY(OVISIBLE);        if (style->overflowX() == OSCROLL)            style->setOverflowX(OHIDDEN);        else if (style->overflowX() == OAUTO)            style->setOverflowX(OVISIBLE);        // Only the root <svg> element in an SVG document fragment tree honors css position        if (!(e->hasTagName(SVGNames::svgTag) && e->parentNode() && !e->parentNode()->isSVGElement()))            style->setPosition(RenderStyle::initialPosition());    }#endif}void CSSStyleSelector::updateFont(){    checkForTextSizeAdjust();    checkForGenericFamilyChange(style(), m_parentStyle);    checkForZoomChange(style(), m_parentStyle);    m_style->font().update(m_fontSelector);    m_fontDirty = false;}void CSSStyleSelector::cacheBorderAndBackground(){    m_hasUAAppearance = m_style->hasAppearance();    if (m_hasUAAppearance) {        m_borderData = m_style->border();        m_backgroundData = *m_style->backgroundLayers();        m_backgroundColor = m_style->backgroundColor();    }}PassRefPtr<CSSRuleList> CSSStyleSelector::styleRulesForElement(Element* e, bool authorOnly){    if (!e || !e->document()->haveStylesheetsLoaded())        return 0;    m_checker.m_collectRulesOnly = true;    initElementAndPseudoState(e);    initForStyleResolve(e);    if (!authorOnly) {        int firstUARule = -1, lastUARule = -1;        // First we match rules from the user agent sheet.        matchUARules(firstUARule, lastUARule);        // Now we check user sheet rules.        if (m_matchAuthorAndUserStyles) {            int firstUserRule = -1, lastUserRule = -1;            matchRules(m_userStyle, firstUserRule, lastUserRule);        }    }    if (m_matchAuthorAndUserStyles) {        // Check the rules in author sheets.        int firstAuthorRule = -1, lastAuthorRule = -1;        matchRules(m_authorStyle, firstAuthorRule, lastAuthorRule);    }    m_checker.m_collectRulesOnly = false;        return m_ruleList.release();}PassRefPtr<CSSRuleList> CSSStyleSelector::pseudoStyleRulesForElement(Element*, const String&, bool){    // FIXME: Implement this.    return 0;}bool CSSStyleSelector::checkSelector(CSSSelector* sel){    m_dynamicPseudo = NOPSEUDO;    // Check the selector    SelectorMatch match = m_checker.checkSelector(sel, m_element, &m_selectorAttrs, m_dynamicPseudo, true, false, style(), m_parentStyle);    if (match != SelectorMatches)        return false;    if (m_checker.m_pseudoStyle != NOPSEUDO && m_checker.m_pseudoStyle != m_dynamicPseudo)        return false;    return true;}// Recursive check of selectors and combinators// It can return 3 different values:// * SelectorMatches         - the selector matches the element e// * SelectorFailsLocally    - the selector fails for the element e// * SelectorFailsCompletely - the selector fails for e and any sibling or ancestor of eCSSStyleSelector::SelectorMatch CSSStyleSelector::SelectorChecker::checkSelector(CSSSelector* sel, Element* e, HashSet<AtomicStringImpl*>* selectorAttrs, PseudoId& dynamicPseudo, bool isAncestor, bool isSubSelector, RenderStyle* elementStyle, RenderStyle* elementParentStyle) const{#if ENABLE(SVG)    // Spec: CSS2 selectors cannot be applied to the (conceptually) cloned DOM tree    // because its contents are not part of the formal document structure.    if (e->isSVGElement() && e->isShadowNode())        return SelectorFailsCompletely;#endif    // first selector has to match    if (!checkOneSelector(sel, e, selectorAttrs, dynamicPseudo, isAncestor, isSubSelector, elementStyle, elementParentStyle))        return SelectorFailsLocally;    // The rest of the selectors has to match    CSSSelector::Relation relation = sel->relation();    // Prepare next sel    sel = sel->tagHistory();    if (!sel)        return SelectorMatches;    if (relation != CSSSelector::SubSelector)        // Bail-out if this selector is irrelevant for the pseudoStyle        if (m_pseudoStyle != NOPSEUDO && m_pseudoS

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲另类一二三四区| 日韩欧美国产精品一区| 色哦色哦哦色天天综合| 日韩欧美成人午夜| 麻豆视频一区二区| 一本色道久久综合亚洲精品按摩| 正在播放亚洲一区| 亚洲免费伊人电影| 国产成人av资源| 91精品国产高清一区二区三区 | 亚洲乱码日产精品bd| 日本欧美一区二区| 色婷婷久久99综合精品jk白丝| 久久精品视频一区| 免费成人在线视频观看| 在线日韩一区二区| 亚洲欧美综合另类在线卡通| 国产一区在线观看麻豆| 日韩色视频在线观看| 亚洲成人在线免费| 欧美色综合久久| 亚洲欧美日韩国产综合在线| 国产v日产∨综合v精品视频| 日韩精品专区在线影院观看| 亚洲va欧美va人人爽午夜| 91视频观看视频| 最好看的中文字幕久久| 国产成人精品一区二| 久久久久久久久久久久久女国产乱 | 国产91精品露脸国语对白| 精品国产精品网麻豆系列| 日本欧美久久久久免费播放网| 69精品人人人人| 无码av中文一区二区三区桃花岛| 欧洲av一区二区嗯嗯嗯啊| 亚洲综合一区二区三区| 欧美亚洲动漫精品| 亚洲午夜一区二区| 欧美另类久久久品| 首页综合国产亚洲丝袜| 日韩欧美一级片| 国产一区二区看久久| 国产精品网站在线观看| 97精品电影院| 亚洲国产一区在线观看| 欧美一区二区免费视频| 精品亚洲porn| 国产亚洲污的网站| 97久久超碰国产精品电影| 亚洲成人你懂的| 欧美一级在线观看| 国产精品综合二区| 亚洲桃色在线一区| 欧美巨大另类极品videosbest | 国产91丝袜在线播放0| 亚洲国产精品av| 91视频在线观看| 亚洲国产欧美另类丝袜| 日韩欧美中文字幕公布| 国产成人三级在线观看| 亚洲精品高清在线| 欧美一区二区三区免费大片 | 国产日韩欧美在线一区| 91在线视频18| 日本伊人午夜精品| 欧美国产成人在线| 欧美网站一区二区| 国产在线国偷精品产拍免费yy| 日本一区二区视频在线| 在线观看欧美日本| 国产一区二区三区四区五区入口| 中文字幕一区av| 91精品一区二区三区在线观看| 国产一区二区三区精品视频| 一区二区三区在线播放| 欧美成人性战久久| 色婷婷av一区二区三区大白胸| 狠狠色狠狠色综合系列| 亚洲激情图片一区| 欧美激情在线看| 日韩亚洲欧美一区| 欧美在线一区二区三区| 国产麻豆成人精品| 日韩精品成人一区二区三区| 国产精品美日韩| 日韩精品一区二区三区中文精品| 99精品视频免费在线观看| 精品一区二区三区视频| 亚洲一区二区三区小说| 中文字幕国产一区| 26uuu亚洲婷婷狠狠天堂| 欧美性大战久久久久久久蜜臀 | 久久99精品久久久久久动态图| 夜夜精品视频一区二区| 国产日韩欧美激情| 欧美日韩精品电影| 在线免费亚洲电影| 99在线精品视频| 处破女av一区二区| 狠狠网亚洲精品| 欧美aaa在线| 日韩av成人高清| 亚洲妇女屁股眼交7| 亚洲伊人色欲综合网| 最新高清无码专区| 国产精品国产自产拍在线| 国产亚洲女人久久久久毛片| 精品1区2区在线观看| 日韩欧美的一区| 日韩精品一区在线| 亚洲精品一区在线观看| 日韩一级成人av| 日韩小视频在线观看专区| 欧美区视频在线观看| 欧美日韩在线不卡| 欧美日韩一区二区欧美激情 | 日韩精品一区二区在线观看| 日韩区在线观看| 日韩欧美国产一区在线观看| 欧美一个色资源| 日韩一区二区中文字幕| 日韩欧美一级二级三级久久久| 欧美浪妇xxxx高跟鞋交| 欧美精品一二三| 日韩欧美国产一区二区三区| 精品播放一区二区| 中文字幕第一区| 亚洲精品免费视频| 午夜欧美2019年伦理| 秋霞国产午夜精品免费视频| 精品亚洲aⅴ乱码一区二区三区| 国内精品国产成人国产三级粉色| 国产精品99久久久久久似苏梦涵| 国产高清成人在线| 91国模大尺度私拍在线视频| 欧美日本免费一区二区三区| 日韩欧美国产一区二区在线播放| 久久久三级国产网站| 亚洲天堂免费看| 五月婷婷久久综合| 国产在线精品免费av| 91无套直看片红桃| 欧美人牲a欧美精品| 久久精品人人爽人人爽| 亚洲精品菠萝久久久久久久| 青青草国产精品97视觉盛宴| 国产综合久久久久久久久久久久| 成人激情图片网| 欧美美女喷水视频| 国产拍揄自揄精品视频麻豆| 亚洲激情五月婷婷| 精品一区二区三区免费观看 | 欧美猛男男办公室激情| 久久久久久久久99精品| 亚洲精品自拍动漫在线| 麻豆国产精品一区二区三区| 9色porny自拍视频一区二区| 日韩一级免费观看| 亚洲激情在线播放| 国产精品亚洲人在线观看| 在线视频一区二区三| www国产成人| 同产精品九九九| 成人福利电影精品一区二区在线观看| 欧美日韩精品一区二区三区| 久久夜色精品一区| 亚洲成人一区二区| 99国产一区二区三精品乱码| 日韩欧美亚洲另类制服综合在线| 亚洲欧美日韩国产综合在线| 国产麻豆91精品| 欧美福利电影网| 亚洲免费在线观看| 成人av在线网站| 精品国产乱码久久久久久牛牛| 一区二区三区免费在线观看| 国产盗摄一区二区| 日韩免费视频一区| 亚洲国产综合91精品麻豆| 91丨porny丨中文| 国产亚洲精品免费| 国产精品亚洲专一区二区三区| 337p亚洲精品色噜噜狠狠| 一区二区三区日本| 色狠狠桃花综合| 国产精品国产a| 国产精品一区2区| 久久久久久久久伊人| 美女高潮久久久| 日韩丝袜美女视频| 丝袜美腿亚洲色图| 欧美精选午夜久久久乱码6080| 一区二区三区在线看| 色哟哟一区二区| 亚洲欧美韩国综合色| 成人高清免费观看| 国产精品盗摄一区二区三区| av成人免费在线观看| 国产精品欧美一区喷水| 成人免费av网站|