| 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 unsigned connectedSubframeCount() const; | 666 unsigned connectedSubframeCount() const; |
| 667 void incrementConnectedSubframeCount(unsigned amount = 1); | 667 void incrementConnectedSubframeCount(unsigned amount = 1); |
| 668 void decrementConnectedSubframeCount(unsigned amount = 1); | 668 void decrementConnectedSubframeCount(unsigned amount = 1); |
| 669 void updateAncestorConnectedSubframeCountForInsertion() const; | 669 void updateAncestorConnectedSubframeCountForInsertion() const; |
| 670 | 670 |
| 671 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); | 671 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints(); |
| 672 | 672 |
| 673 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } | 673 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
| 674 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | 674 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
| 675 | 675 |
| 676 void setHasCompositorProxy(bool flag) { setFlag(flag, HasCompositorProxyFlag
); } |
| 677 bool hasCompositorProxy() const { return getFlag(HasCompositorProxyFlag); } |
| 678 |
| 676 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } | 679 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } |
| 677 | 680 |
| 678 DECLARE_VIRTUAL_TRACE(); | 681 DECLARE_VIRTUAL_TRACE(); |
| 679 | 682 |
| 680 unsigned lengthOfContents() const; | 683 unsigned lengthOfContents() const; |
| 681 | 684 |
| 682 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; | 685 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; |
| 683 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap
perTypeInfo*, v8::Handle<v8::Object> wrapper) override; | 686 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap
perTypeInfo*, v8::Handle<v8::Object> wrapper) override; |
| 684 | 687 |
| 685 private: | 688 private: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 | 724 |
| 722 CustomElementFlag = 1 << 21, | 725 CustomElementFlag = 1 << 21, |
| 723 CustomElementUpgradedFlag = 1 << 22, | 726 CustomElementUpgradedFlag = 1 << 22, |
| 724 | 727 |
| 725 HasNameOrIsEditingTextFlag = 1 << 23, | 728 HasNameOrIsEditingTextFlag = 1 << 23, |
| 726 HasWeakReferencesFlag = 1 << 24, | 729 HasWeakReferencesFlag = 1 << 24, |
| 727 V8CollectableDuringMinorGCFlag = 1 << 25, | 730 V8CollectableDuringMinorGCFlag = 1 << 25, |
| 728 HasSyntheticAttrChildNodesFlag = 1 << 26, | 731 HasSyntheticAttrChildNodesFlag = 1 << 26, |
| 729 HasEventTargetDataFlag = 1 << 27, | 732 HasEventTargetDataFlag = 1 << 27, |
| 730 AlreadySpellCheckedFlag = 1 << 28, | 733 AlreadySpellCheckedFlag = 1 << 28, |
| 734 HasCompositorProxyFlag = 1 << 29, |
| 731 | 735 |
| 732 DefaultNodeFlags = IsFinishedParsingChildrenFlag | ChildNeedsStyleRecalc
Flag | NeedsReattachStyleChange | 736 DefaultNodeFlags = IsFinishedParsingChildrenFlag | ChildNeedsStyleRecalc
Flag | NeedsReattachStyleChange |
| 733 }; | 737 }; |
| 734 | 738 |
| 735 // 2 bits remaining. | 739 // 2 bits remaining. |
| 736 | 740 |
| 737 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } | 741 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } |
| 738 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) |
(-(int32_t)f & mask); } | 742 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) |
(-(int32_t)f & mask); } |
| 739 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } | 743 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } |
| 740 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } | 744 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 } // namespace blink | 910 } // namespace blink |
| 907 | 911 |
| 908 #ifndef NDEBUG | 912 #ifndef NDEBUG |
| 909 // Outside the WebCore namespace for ease of invocation from gdb. | 913 // Outside the WebCore namespace for ease of invocation from gdb. |
| 910 void showNode(const blink::Node*); | 914 void showNode(const blink::Node*); |
| 911 void showTree(const blink::Node*); | 915 void showTree(const blink::Node*); |
| 912 void showNodePath(const blink::Node*); | 916 void showNodePath(const blink::Node*); |
| 913 #endif | 917 #endif |
| 914 | 918 |
| 915 #endif // Node_h | 919 #endif // Node_h |
| OLD | NEW |