Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 1872303002: Simplify slot assignments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: :) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698