⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 107347 in webkit


Ignore:
Timestamp:
Feb 9, 2012, 7:45:06 PM (15 years ago)
Author:
hayato@chromium.org
Message:

Add Node::isShadowElement() member function.
https://bugs.webkit.org/show_bug.cgi?id=78201

Reviewed by Dimitri Glazkov.

No tests. No change in behavior. An upcoming change requires this to detect HTMLShadowElement.

  • dom/Node.h:

(Node):
(WebCore::Node::isShadowElement):

  • html/shadow/HTMLShadowElement.h:

(WebCore::HTMLShadowElement::isShadowElement):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107346 r107347  
     12012-02-09  Hayato Ito  <hayato@chromium.org>
     2
     3        Add Node::isShadowElement() member function.
     4        https://bugs.webkit.org/show_bug.cgi?id=78201
     5
     6        Reviewed by Dimitri Glazkov.
     7
     8        No tests. No change in behavior. An upcoming change requires this to detect HTMLShadowElement.
     9
     10        * dom/Node.h:
     11        (Node):
     12        (WebCore::Node::isShadowElement):
     13        * html/shadow/HTMLShadowElement.h:
     14        (WebCore::HTMLShadowElement::isShadowElement):
     15
    1162012-02-09  Ryosuke Niwa  <rniwa@webkit.org>
    217
  • trunk/Source/WebCore/dom/Node.h

    r106418 r107347  
    225225    bool isShadowRoot() const { return getFlag(IsShadowRootOrSVGShadowRootFlag) && !isSVGElement(); }
    226226    virtual bool isContentElement() const { return false; }
     227#if ENABLE(SHADOW_DOM)
     228    virtual bool isShadowElement() const { return false; }
     229#endif
    227230
    228231    Node* shadowAncestorNode() const;
  • trunk/Source/WebCore/html/shadow/HTMLShadowElement.h

    r106794 r107347  
    4646private:
    4747    HTMLShadowElement(const QualifiedName&, Document*);
     48    virtual bool isShadowElement() const { return true; }
    4849};
    4950
Note: See TracChangeset for help on using the changeset viewer.