| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |