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

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

Issue 1085033003: Introduce InspectorIdentifiers<> and use it to assign/lookup LocalFrame and DocumentLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: win build error fixed Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DOMNodeIds.cpp ('k') | Source/core/dom/WeakIdentifierMap.h » ('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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class LayoutBoxModelObject; 80 class LayoutBoxModelObject;
81 class LayoutObject; 81 class LayoutObject;
82 class ComputedStyle; 82 class ComputedStyle;
83 class SVGQualifiedName; 83 class SVGQualifiedName;
84 class ShadowRoot; 84 class ShadowRoot;
85 template <typename NodeType> class StaticNodeTypeList; 85 template <typename NodeType> class StaticNodeTypeList;
86 using StaticNodeList = StaticNodeTypeList<Node>; 86 using StaticNodeList = StaticNodeTypeList<Node>;
87 class TagCollection; 87 class TagCollection;
88 class Text; 88 class Text;
89 class TouchEvent; 89 class TouchEvent;
90 #if !ENABLE(OILPAN)
90 template <typename T> struct WeakIdentifierMapTraits; 91 template <typename T> struct WeakIdentifierMapTraits;
92 #endif
91 93
92 const int nodeStyleChangeShift = 19; 94 const int nodeStyleChangeShift = 19;
93 95
94 enum StyleChangeType { 96 enum StyleChangeType {
95 NoStyleChange = 0, 97 NoStyleChange = 0,
96 LocalStyleChange = 1 << nodeStyleChangeShift, 98 LocalStyleChange = 1 << nodeStyleChangeShift,
97 SubtreeStyleChange = 2 << nodeStyleChangeShift, 99 SubtreeStyleChange = 2 << nodeStyleChangeShift,
98 NeedsReattachStyleChange = 3 << nodeStyleChangeShift, 100 NeedsReattachStyleChange = 3 << nodeStyleChangeShift,
99 }; 101 };
100 102
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // - in the destruction of Document or ShadowRoot where m_treeScope is set t o null or 792 // - in the destruction of Document or ShadowRoot where m_treeScope is set t o null or
791 // - in the Node constructor called by these two classes where m_treeScope i s set by TreeScope ctor. 793 // - in the Node constructor called by these two classes where m_treeScope i s set by TreeScope ctor.
792 bool isTreeScopeInitialized() const { return m_treeScope; } 794 bool isTreeScopeInitialized() const { return m_treeScope; }
793 795
794 void markAncestorsWithChildNeedsStyleRecalc(); 796 void markAncestorsWithChildNeedsStyleRecalc();
795 797
796 void setIsFinishedParsingChildren(bool value) { setFlag(value, IsFinishedPar singChildrenFlag); } 798 void setIsFinishedParsingChildren(bool value) { setFlag(value, IsFinishedPar singChildrenFlag); }
797 799
798 private: 800 private:
799 friend class TreeShared<Node>; 801 friend class TreeShared<Node>;
802 #if !ENABLE(OILPAN)
800 // FIXME: consider exposing proper API for this instead. 803 // FIXME: consider exposing proper API for this instead.
801 friend struct WeakIdentifierMapTraits<Node>; 804 friend struct WeakIdentifierMapTraits<Node>;
802 805
803 #if !ENABLE(OILPAN)
804 void removedLastRef(); 806 void removedLastRef();
805 #endif 807 #endif
806 bool hasTreeSharedParent() const { return !!parentOrShadowHostNode(); } 808 bool hasTreeSharedParent() const { return !!parentOrShadowHostNode(); }
807 809
808 enum EditableLevel { Editable, RichlyEditable }; 810 enum EditableLevel { Editable, RichlyEditable };
809 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI sAlwaysNonEditable) const; 811 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI sAlwaysNonEditable) const;
810 bool isEditableToAccessibility(EditableLevel) const; 812 bool isEditableToAccessibility(EditableLevel) const;
811 813
812 bool isUserActionElementActive() const; 814 bool isUserActionElementActive() const;
813 bool isUserActionElementInActiveChain() const; 815 bool isUserActionElementInActiveChain() const;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 } // namespace blink 917 } // namespace blink
916 918
917 #ifndef NDEBUG 919 #ifndef NDEBUG
918 // Outside the WebCore namespace for ease of invocation from gdb. 920 // Outside the WebCore namespace for ease of invocation from gdb.
919 void showNode(const blink::Node*); 921 void showNode(const blink::Node*);
920 void showTree(const blink::Node*); 922 void showTree(const blink::Node*);
921 void showNodePath(const blink::Node*); 923 void showNodePath(const blink::Node*);
922 #endif 924 #endif
923 925
924 #endif // Node_h 926 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/DOMNodeIds.cpp ('k') | Source/core/dom/WeakIdentifierMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698