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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 void setNeedsStyleInvalidation(); | 371 void setNeedsStyleInvalidation(); |
372 | 372 |
373 void recalcDistribution(); | 373 void recalcDistribution(); |
374 | 374 |
375 bool svgFilterNeedsLayerUpdate() const { return getFlag(SVGFilterNeedsLayerU
pdateFlag); } | 375 bool svgFilterNeedsLayerUpdate() const { return getFlag(SVGFilterNeedsLayerU
pdateFlag); } |
376 void setSVGFilterNeedsLayerUpdate() { setFlag(SVGFilterNeedsLayerUpdateFlag)
; } | 376 void setSVGFilterNeedsLayerUpdate() { setFlag(SVGFilterNeedsLayerUpdateFlag)
; } |
377 void clearSVGFilterNeedsLayerUpdate() { clearFlag(SVGFilterNeedsLayerUpdateF
lag); } | 377 void clearSVGFilterNeedsLayerUpdate() { clearFlag(SVGFilterNeedsLayerUpdateF
lag); } |
378 | 378 |
379 void setIsLink(bool f); | 379 void setIsLink(bool f); |
380 | 380 |
381 bool hasScopedHTMLStyleChild() const { return getFlag(HasScopedHTMLStyleChil
dFlag); } | |
382 void setHasScopedHTMLStyleChild(bool flag) { setFlag(flag, HasScopedHTMLStyl
eChildFlag); } | |
383 | |
384 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } | 381 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } |
385 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag
); } | 382 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag
); } |
386 | 383 |
387 bool isV8CollectableDuringMinorGC() const { return getFlag(V8CollectableDuri
ngMinorGCFlag); } | 384 bool isV8CollectableDuringMinorGC() const { return getFlag(V8CollectableDuri
ngMinorGCFlag); } |
388 void markV8CollectableDuringMinorGC() { setFlag(true, V8CollectableDuringMin
orGCFlag); } | 385 void markV8CollectableDuringMinorGC() { setFlag(true, V8CollectableDuringMin
orGCFlag); } |
389 void clearV8CollectableDuringMinorGC() { setFlag(false, V8CollectableDuringM
inorGCFlag); } | 386 void clearV8CollectableDuringMinorGC() { setFlag(false, V8CollectableDuringM
inorGCFlag); } |
390 | 387 |
391 virtual void setFocus(bool flag); | 388 virtual void setFocus(bool flag); |
392 virtual void setActive(bool flag = true); | 389 virtual void setActive(bool flag = true); |
393 virtual void setHovered(bool flag = true); | 390 virtual void setHovered(bool flag = true); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 virtual EventTargetData* eventTargetData() OVERRIDE; | 645 virtual EventTargetData* eventTargetData() OVERRIDE; |
649 virtual EventTargetData& ensureEventTargetData() OVERRIDE; | 646 virtual EventTargetData& ensureEventTargetData() OVERRIDE; |
650 | 647 |
651 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RawPtrWillBeMemb
er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio
nType, const QualifiedName* attributeName); | 648 void getRegisteredMutationObserversOfType(WillBeHeapHashMap<RawPtrWillBeMemb
er<MutationObserver>, MutationRecordDeliveryOptions>&, MutationObserver::Mutatio
nType, const QualifiedName* attributeName); |
652 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); | 649 void registerMutationObserver(MutationObserver&, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); |
653 void unregisterMutationObserver(MutationObserverRegistration*); | 650 void unregisterMutationObserver(MutationObserverRegistration*); |
654 void registerTransientMutationObserver(MutationObserverRegistration*); | 651 void registerTransientMutationObserver(MutationObserverRegistration*); |
655 void unregisterTransientMutationObserver(MutationObserverRegistration*); | 652 void unregisterTransientMutationObserver(MutationObserverRegistration*); |
656 void notifyMutationObserversNodeWillDetach(); | 653 void notifyMutationObserversNodeWillDetach(); |
657 | 654 |
658 virtual void registerScopedHTMLStyleChild(); | |
659 virtual void unregisterScopedHTMLStyleChild(); | |
660 size_t numberOfScopedHTMLStyleChildren() const; | |
661 | |
662 unsigned connectedSubframeCount() const; | 655 unsigned connectedSubframeCount() const; |
663 void incrementConnectedSubframeCount(unsigned amount = 1); | 656 void incrementConnectedSubframeCount(unsigned amount = 1); |
664 void decrementConnectedSubframeCount(unsigned amount = 1); | 657 void decrementConnectedSubframeCount(unsigned amount = 1); |
665 void updateAncestorConnectedSubframeCountForRemoval() const; | 658 void updateAncestorConnectedSubframeCountForRemoval() const; |
666 void updateAncestorConnectedSubframeCountForInsertion() const; | 659 void updateAncestorConnectedSubframeCountForInsertion() const; |
667 | 660 |
668 PassRefPtrWillBeRawPtr<NodeList> getDestinationInsertionPoints(); | 661 PassRefPtrWillBeRawPtr<NodeList> getDestinationInsertionPoints(); |
669 | 662 |
670 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } | 663 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
671 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | 664 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 HasNameOrIsEditingTextFlag = 1 << 23, | 712 HasNameOrIsEditingTextFlag = 1 << 23, |
720 HasWeakReferencesFlag = 1 << 24, | 713 HasWeakReferencesFlag = 1 << 24, |
721 V8CollectableDuringMinorGCFlag = 1 << 25, | 714 V8CollectableDuringMinorGCFlag = 1 << 25, |
722 HasSyntheticAttrChildNodesFlag = 1 << 26, | 715 HasSyntheticAttrChildNodesFlag = 1 << 26, |
723 HasEventTargetDataFlag = 1 << 27, | 716 HasEventTargetDataFlag = 1 << 27, |
724 AlreadySpellCheckedFlag = 1 << 28, | 717 AlreadySpellCheckedFlag = 1 << 28, |
725 | 718 |
726 // HTML dir=auto. | 719 // HTML dir=auto. |
727 SelfOrAncestorHasDirAutoFlag = 1 << 29, | 720 SelfOrAncestorHasDirAutoFlag = 1 << 29, |
728 | 721 |
729 // FIXME: Remove <style scoped> support. | |
730 HasScopedHTMLStyleChildFlag = 1 << 30, | |
731 | |
732 DefaultNodeFlags = IsFinishedParsingChildrenFlag | ChildNeedsStyleRecalc
Flag | NeedsReattachStyleChange | 722 DefaultNodeFlags = IsFinishedParsingChildrenFlag | ChildNeedsStyleRecalc
Flag | NeedsReattachStyleChange |
733 }; | 723 }; |
734 | 724 |
735 // 1 bits remaining. | 725 // 2 bits remaining. |
736 | 726 |
737 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } | 727 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } |
738 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m
ask) | (-(int32_t)f & mask); } | 728 void setFlag(bool f, NodeFlags mask) const { m_nodeFlags = (m_nodeFlags & ~m
ask) | (-(int32_t)f & mask); } |
739 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; } | 729 void setFlag(NodeFlags mask) const { m_nodeFlags |= mask; } |
740 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; } | 730 void clearFlag(NodeFlags mask) const { m_nodeFlags &= ~mask; } |
741 | 731 |
742 protected: | 732 protected: |
743 enum ConstructionType { | 733 enum ConstructionType { |
744 CreateOther = DefaultNodeFlags, | 734 CreateOther = DefaultNodeFlags, |
745 CreateText = DefaultNodeFlags | IsTextFlag, | 735 CreateText = DefaultNodeFlags | IsTextFlag, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 } // namespace WebCore | 897 } // namespace WebCore |
908 | 898 |
909 #ifndef NDEBUG | 899 #ifndef NDEBUG |
910 // Outside the WebCore namespace for ease of invocation from gdb. | 900 // Outside the WebCore namespace for ease of invocation from gdb. |
911 void showNode(const WebCore::Node*); | 901 void showNode(const WebCore::Node*); |
912 void showTree(const WebCore::Node*); | 902 void showTree(const WebCore::Node*); |
913 void showNodePath(const WebCore::Node*); | 903 void showNodePath(const WebCore::Node*); |
914 #endif | 904 #endif |
915 | 905 |
916 #endif | 906 #endif |
OLD | NEW |