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