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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 void textRects(Vector<IntRect>&) const; | 706 void textRects(Vector<IntRect>&) const; |
707 | 707 |
708 unsigned connectedSubframeCount() const; | 708 unsigned connectedSubframeCount() const; |
709 void incrementConnectedSubframeCount(unsigned amount = 1); | 709 void incrementConnectedSubframeCount(unsigned amount = 1); |
710 void decrementConnectedSubframeCount(unsigned amount = 1); | 710 void decrementConnectedSubframeCount(unsigned amount = 1); |
711 void updateAncestorConnectedSubframeCountForRemoval() const; | 711 void updateAncestorConnectedSubframeCountForRemoval() const; |
712 void updateAncestorConnectedSubframeCountForInsertion() const; | 712 void updateAncestorConnectedSubframeCountForInsertion() const; |
713 | 713 |
714 PassRefPtr<NodeList> getDestinationInsertionPoints(); | 714 PassRefPtr<NodeList> getDestinationInsertionPoints(); |
715 | 715 |
| 716 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
| 717 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
| 718 |
716 private: | 719 private: |
717 enum NodeFlags { | 720 enum NodeFlags { |
718 IsTextFlag = 1, | 721 IsTextFlag = 1, |
719 IsContainerFlag = 1 << 1, | 722 IsContainerFlag = 1 << 1, |
720 IsElementFlag = 1 << 2, | 723 IsElementFlag = 1 << 2, |
721 IsHTMLFlag = 1 << 3, | 724 IsHTMLFlag = 1 << 3, |
722 IsSVGFlag = 1 << 4, | 725 IsSVGFlag = 1 << 4, |
723 IsAttachedFlag = 1 << 5, | 726 IsAttachedFlag = 1 << 5, |
724 ChildNeedsStyleRecalcFlag = 1 << 6, | 727 ChildNeedsStyleRecalcFlag = 1 << 6, |
725 InDocumentFlag = 1 << 7, | 728 InDocumentFlag = 1 << 7, |
(...skipping 21 matching lines...) Expand all Loading... |
747 V8CollectableDuringMinorGCFlag = 1 << 23, | 750 V8CollectableDuringMinorGCFlag = 1 << 23, |
748 IsInsertionPointFlag = 1 << 24, | 751 IsInsertionPointFlag = 1 << 24, |
749 IsInShadowTreeFlag = 1 << 25, | 752 IsInShadowTreeFlag = 1 << 25, |
750 | 753 |
751 NotifyRendererWithIdenticalStyles = 1 << 26, | 754 NotifyRendererWithIdenticalStyles = 1 << 26, |
752 | 755 |
753 CustomElementWaitingForParserOrIsUpgraded = 1 << 27, | 756 CustomElementWaitingForParserOrIsUpgraded = 1 << 27, |
754 CustomElementWaitingForUpgradeOrIsUpgraded = 1 << 28, | 757 CustomElementWaitingForUpgradeOrIsUpgraded = 1 << 28, |
755 | 758 |
756 ChildNeedsDistributionRecalc = 1 << 29, | 759 ChildNeedsDistributionRecalc = 1 << 29, |
| 760 AlreadySpellCheckedFlag = 1 << 30, |
757 | 761 |
758 DefaultNodeFlags = IsParsingChildrenFinishedFlag | 762 DefaultNodeFlags = IsParsingChildrenFinishedFlag |
759 }; | 763 }; |
760 | 764 |
761 // 2 bits remaining | 765 // 2 bits remaining |
762 | 766 |
763 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } | 767 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } |
764 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m
ask) | (-(int32_t)f & mask); } | 768 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m
ask) | (-(int32_t)f & mask); } |
765 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; } | 769 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; } |
766 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; } | 770 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; } |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 | 941 |
938 } //namespace | 942 } //namespace |
939 | 943 |
940 #ifndef NDEBUG | 944 #ifndef NDEBUG |
941 // Outside the WebCore namespace for ease of invocation from gdb. | 945 // Outside the WebCore namespace for ease of invocation from gdb. |
942 void showTree(const WebCore::Node*); | 946 void showTree(const WebCore::Node*); |
943 void showNodePath(const WebCore::Node*); | 947 void showNodePath(const WebCore::Node*); |
944 #endif | 948 #endif |
945 | 949 |
946 #endif | 950 #endif |
OLD | NEW |