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

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

Issue 1489433002: Support the essential part of Shadow DOM v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert Internals.* Created 5 years 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class Document; 53 class Document;
54 class Element; 54 class Element;
55 class Event; 55 class Event;
56 class EventDispatchMediator; 56 class EventDispatchMediator;
57 class EventListener; 57 class EventListener;
58 class ExceptionState; 58 class ExceptionState;
59 class FloatPoint; 59 class FloatPoint;
60 class LocalFrame; 60 class LocalFrame;
61 class HTMLInputElement; 61 class HTMLInputElement;
62 class HTMLQualifiedName; 62 class HTMLQualifiedName;
63 class HTMLSlotElement;
63 class IntRect; 64 class IntRect;
64 class KeyboardEvent; 65 class KeyboardEvent;
65 class NSResolver; 66 class NSResolver;
66 class NameNodeList; 67 class NameNodeList;
67 class NamedNodeMap; 68 class NamedNodeMap;
68 class NodeEventContext; 69 class NodeEventContext;
69 class NodeList; 70 class NodeList;
70 class NodeListsNodeData; 71 class NodeListsNodeData;
71 class NodeRareData; 72 class NodeRareData;
72 class PlatformGestureEvent; 73 class PlatformGestureEvent;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // this apparently guards against. 289 // this apparently guards against.
289 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); } 290 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); }
290 291
291 bool isDocumentNode() const; 292 bool isDocumentNode() const;
292 bool isTreeScope() const; 293 bool isTreeScope() const;
293 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } 294 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); }
294 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } 295 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); }
295 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } 296 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); }
296 297
297 bool canParticipateInComposedTree() const; 298 bool canParticipateInComposedTree() const;
299 bool isSlotOrActiveInsertionPoint() const;
298 300
299 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback sFlag); } 301 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback sFlag); }
300 302
301 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret urns nullptr. 303 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret urns nullptr.
302 // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when i t is in a 304 // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when i t is in a
303 // shadow tree but its root is detached from its host. This can happen when handling 305 // shadow tree but its root is detached from its host. This can happen when handling
304 // queued events (e.g. during execCommand()). 306 // queued events (e.g. during execCommand()).
305 Element* shadowHost() const; 307 Element* shadowHost() const;
306 ShadowRoot* containingShadowRoot() const; 308 ShadowRoot* containingShadowRoot() const;
307 ShadowRoot* youngestShadowRoot() const; 309 ShadowRoot* youngestShadowRoot() const;
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 void registerTransientMutationObserver(MutationObserverRegistration*); 650 void registerTransientMutationObserver(MutationObserverRegistration*);
649 void unregisterTransientMutationObserver(MutationObserverRegistration*); 651 void unregisterTransientMutationObserver(MutationObserverRegistration*);
650 void notifyMutationObserversNodeWillDetach(); 652 void notifyMutationObserversNodeWillDetach();
651 653
652 unsigned connectedSubframeCount() const; 654 unsigned connectedSubframeCount() const;
653 void incrementConnectedSubframeCount(unsigned amount = 1); 655 void incrementConnectedSubframeCount(unsigned amount = 1);
654 void decrementConnectedSubframeCount(unsigned amount = 1); 656 void decrementConnectedSubframeCount(unsigned amount = 1);
655 void updateAncestorConnectedSubframeCountForInsertion() const; 657 void updateAncestorConnectedSubframeCountForInsertion() const;
656 658
657 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); 659 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints();
660 HTMLSlotElement* assignedSlot() const;
661 HTMLSlotElement* assignedSlotForBinding() { updateDistribution(); return ass ignedSlot(); }
658 662
659 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); } 663 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); }
660 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } 664 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); }
661 665
662 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); } 666 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); }
663 667
664 DECLARE_VIRTUAL_TRACE(); 668 DECLARE_VIRTUAL_TRACE();
665 669
666 unsigned lengthOfContents() const; 670 unsigned lengthOfContents() const;
667 671
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 } // namespace blink 916 } // namespace blink
913 917
914 #ifndef NDEBUG 918 #ifndef NDEBUG
915 // Outside the WebCore namespace for ease of invocation from gdb. 919 // Outside the WebCore namespace for ease of invocation from gdb.
916 void showNode(const blink::Node*); 920 void showNode(const blink::Node*);
917 void showTree(const blink::Node*); 921 void showTree(const blink::Node*);
918 void showNodePath(const blink::Node*); 922 void showNodePath(const blink::Node*);
919 #endif 923 #endif
920 924
921 #endif // Node_h 925 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698