Changeset 107347 in webkit
- Timestamp:
- Feb 9, 2012, 7:45:06 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
dom/Node.h (modified) (1 diff)
-
html/shadow/HTMLShadowElement.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107346 r107347 1 2012-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 1 16 2012-02-09 Ryosuke Niwa <rniwa@webkit.org> 2 17 -
trunk/Source/WebCore/dom/Node.h
r106418 r107347 225 225 bool isShadowRoot() const { return getFlag(IsShadowRootOrSVGShadowRootFlag) && !isSVGElement(); } 226 226 virtual bool isContentElement() const { return false; } 227 #if ENABLE(SHADOW_DOM) 228 virtual bool isShadowElement() const { return false; } 229 #endif 227 230 228 231 Node* shadowAncestorNode() const; -
trunk/Source/WebCore/html/shadow/HTMLShadowElement.h
r106794 r107347 46 46 private: 47 47 HTMLShadowElement(const QualifiedName&, Document*); 48 virtual bool isShadowElement() const { return true; } 48 49 }; 49 50
Note:
See TracChangeset
for help on using the changeset viewer.