OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); } | 294 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); } |
295 | 295 |
296 bool isDocumentNode() const; | 296 bool isDocumentNode() const; |
297 bool isTreeScope() const; | 297 bool isTreeScope() const; |
298 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } | 298 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } |
299 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } | 299 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } |
300 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } | 300 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } |
301 | 301 |
302 bool canParticipateInFlatTree() const; | 302 bool canParticipateInFlatTree() const; |
303 bool isSlotOrActiveInsertionPoint() const; | 303 bool isSlotOrActiveInsertionPoint() const; |
| 304 bool slottable() const { return isElementNode() || isTextNode(); } |
| 305 AtomicString slotName() const; |
| 306 |
| 307 static AtomicString normalizeSlotName(const AtomicString&); |
304 | 308 |
305 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback
sFlag); } | 309 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback
sFlag); } |
306 | 310 |
307 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns nullptr. | 311 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns nullptr. |
308 // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when i
t is in a | 312 // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when i
t is in a |
309 // shadow tree but its root is detached from its host. This can happen when
handling | 313 // shadow tree but its root is detached from its host. This can happen when
handling |
310 // queued events (e.g. during execCommand()). | 314 // queued events (e.g. during execCommand()). |
311 Element* shadowHost() const; | 315 Element* shadowHost() const; |
312 // crbug.com/569532: containingShadowRoot() can return nullptr even if isInS
hadowTree() returns true. | 316 // crbug.com/569532: containingShadowRoot() can return nullptr even if isInS
hadowTree() returns true. |
313 // This can happen when handling queued events (e.g. during execCommand()) | 317 // This can happen when handling queued events (e.g. during execCommand()) |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 } // namespace blink | 931 } // namespace blink |
928 | 932 |
929 #ifndef NDEBUG | 933 #ifndef NDEBUG |
930 // Outside the WebCore namespace for ease of invocation from gdb. | 934 // Outside the WebCore namespace for ease of invocation from gdb. |
931 void showNode(const blink::Node*); | 935 void showNode(const blink::Node*); |
932 void showTree(const blink::Node*); | 936 void showTree(const blink::Node*); |
933 void showNodePath(const blink::Node*); | 937 void showNodePath(const blink::Node*); |
934 #endif | 938 #endif |
935 | 939 |
936 #endif // Node_h | 940 #endif // Node_h |
OLD | NEW |