Changeset 84729 in webkit


Ignore:
Timestamp:
Apr 22, 2011 8:09:13 PM (13 years ago)
Author:
Dimitri Glazkov
Message:

2011-04-22 Dimitri Glazkov <Dimitri Glazkov>

Reviewed by Kent Tamura.

Change SVG-related shadow root checks to use isSVGShadowRoot.
https://bugs.webkit.org/show_bug.cgi?id=59237

Covered by existing tests, no behavior change.

  • css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::SelectorChecker::checkSelector): Use isSVGShadowRoot.
  • svg/SVGUseElement.cpp: (WebCore::ShadowTreeUpdateBlocker::while): Ditto.
  • svg/animation/SVGSMILElement.cpp: (WebCore::SVGSMILElement::insertedIntoDocument): Ditto.
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84728 r84729  
     12011-04-22  Dimitri Glazkov  <dglazkov@chromium.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Change SVG-related shadow root checks to use isSVGShadowRoot.
     6        https://bugs.webkit.org/show_bug.cgi?id=59237
     7
     8        Covered by existing tests, no behavior change.
     9
     10        * css/CSSStyleSelector.cpp:
     11        (WebCore::CSSStyleSelector::SelectorChecker::checkSelector): Use isSVGShadowRoot.
     12        * svg/SVGUseElement.cpp:
     13        (WebCore::ShadowTreeUpdateBlocker::while): Ditto.
     14        * svg/animation/SVGSMILElement.cpp:
     15        (WebCore::SVGSMILElement::insertedIntoDocument): Ditto.
     16
    1172011-04-22  Geoffrey Garen  <ggaren@apple.com>
    218
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r84706 r84729  
    22312231    // Spec: CSS2 selectors cannot be applied to the (conceptually) cloned DOM tree
    22322232    // because its contents are not part of the formal document structure.
    2233     if (e->isSVGElement() && e->isShadowRoot())
     2233    if (e->isSVGShadowRoot())
    22342234        return SelectorFailsCompletely;
    22352235#endif
  • trunk/Source/WebCore/svg/SVGUseElement.cpp

    r84090 r84729  
    516516    ContainerNode* parent = parentNode();
    517517    while (parent) {
    518         if (parent->isShadowRoot())
     518        if (parent->isSVGShadowRoot())
    519519            return;
    520520
  • trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp

    r79569 r84729  
    172172    // Verify we are not in <use> instance tree.
    173173    for (ContainerNode* n = this; n; n = n->parentNode())
    174         ASSERT(!n->isShadowRoot());
     174        ASSERT(!n->isSVGShadowRoot());
    175175#endif
    176176    m_attributeName = constructQualifiedName(this, getAttribute(SVGNames::attributeNameAttr));
Note: See TracChangeset for help on using the changeset viewer.