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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 class RenderBoxModelObject; | 79 class RenderBoxModelObject; |
80 class RenderObject; | 80 class RenderObject; |
81 class RenderStyle; | 81 class RenderStyle; |
82 class ShadowRoot; | 82 class ShadowRoot; |
83 class TagNodeList; | 83 class TagNodeList; |
84 | 84 |
85 #if ENABLE(TOUCH_EVENTS) | 85 #if ENABLE(TOUCH_EVENTS) |
86 class TouchEvent; | 86 class TouchEvent; |
87 #endif | 87 #endif |
88 | 88 |
89 #if ENABLE(MICRODATA) | |
90 class HTMLPropertiesCollection; | |
91 class PropertyNodeList; | |
92 #endif | |
93 | |
94 typedef int ExceptionCode; | 89 typedef int ExceptionCode; |
95 | 90 |
96 const int nodeStyleChangeShift = 15; | 91 const int nodeStyleChangeShift = 15; |
97 | 92 |
98 // SyntheticStyleChange means that we need to go through the entire style change
logic even though | 93 // SyntheticStyleChange means that we need to go through the entire style change
logic even though |
99 // no style property has actually changed. It is used to restructure the tree wh
en, for instance, | 94 // no style property has actually changed. It is used to restructure the tree wh
en, for instance, |
100 // RenderLayers are created or destroyed due to animation changes. | 95 // RenderLayers are created or destroyed due to animation changes. |
101 enum StyleChangeType { | 96 enum StyleChangeType { |
102 NoStyleChange = 0, | 97 NoStyleChange = 0, |
103 InlineStyleChange = 1 << nodeStyleChangeShift, | 98 InlineStyleChange = 1 << nodeStyleChangeShift, |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 | 642 |
648 // Perform the default action for an event. | 643 // Perform the default action for an event. |
649 virtual void defaultEventHandler(Event*); | 644 virtual void defaultEventHandler(Event*); |
650 | 645 |
651 using TreeShared<Node>::ref; | 646 using TreeShared<Node>::ref; |
652 using TreeShared<Node>::deref; | 647 using TreeShared<Node>::deref; |
653 | 648 |
654 virtual EventTargetData* eventTargetData(); | 649 virtual EventTargetData* eventTargetData(); |
655 virtual EventTargetData* ensureEventTargetData(); | 650 virtual EventTargetData* ensureEventTargetData(); |
656 | 651 |
657 #if ENABLE(MICRODATA) | |
658 DOMSettableTokenList* itemProp(); | |
659 DOMSettableTokenList* itemRef(); | |
660 DOMSettableTokenList* itemType(); | |
661 PassRefPtr<PropertyNodeList> propertyNodeList(const String&); | |
662 #endif | |
663 | |
664 void getRegisteredMutationObserversOfType(HashMap<MutationObserver*, Mutatio
nRecordDeliveryOptions>&, MutationObserver::MutationType, const QualifiedName* a
ttributeName); | 652 void getRegisteredMutationObserversOfType(HashMap<MutationObserver*, Mutatio
nRecordDeliveryOptions>&, MutationObserver::MutationType, const QualifiedName* a
ttributeName); |
665 void registerMutationObserver(MutationObserver*, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); | 653 void registerMutationObserver(MutationObserver*, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); |
666 void unregisterMutationObserver(MutationObserverRegistration*); | 654 void unregisterMutationObserver(MutationObserverRegistration*); |
667 void registerTransientMutationObserver(MutationObserverRegistration*); | 655 void registerTransientMutationObserver(MutationObserverRegistration*); |
668 void unregisterTransientMutationObserver(MutationObserverRegistration*); | 656 void unregisterTransientMutationObserver(MutationObserverRegistration*); |
669 void notifyMutationObserversNodeWillDetach(); | 657 void notifyMutationObserversNodeWillDetach(); |
670 | 658 |
671 virtual void registerScopedHTMLStyleChild(); | 659 virtual void registerScopedHTMLStyleChild(); |
672 virtual void unregisterScopedHTMLStyleChild(); | 660 virtual void unregisterScopedHTMLStyleChild(); |
673 size_t numberOfScopedHTMLStyleChildren() const; | 661 size_t numberOfScopedHTMLStyleChildren() const; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 protected: | 811 protected: |
824 bool isParsingChildrenFinished() const { return getFlag(IsParsingChildrenFin
ishedFlag); } | 812 bool isParsingChildrenFinished() const { return getFlag(IsParsingChildrenFin
ishedFlag); } |
825 void setIsParsingChildrenFinished() { setFlag(IsParsingChildrenFinishedFlag)
; } | 813 void setIsParsingChildrenFinished() { setFlag(IsParsingChildrenFinishedFlag)
; } |
826 void clearIsParsingChildrenFinished() { clearFlag(IsParsingChildrenFinishedF
lag); } | 814 void clearIsParsingChildrenFinished() { clearFlag(IsParsingChildrenFinishedF
lag); } |
827 | 815 |
828 #if ENABLE(SVG) | 816 #if ENABLE(SVG) |
829 bool hasSVGRareData() const { return getFlag(HasSVGRareDataFlag); } | 817 bool hasSVGRareData() const { return getFlag(HasSVGRareDataFlag); } |
830 void setHasSVGRareData() { setFlag(HasSVGRareDataFlag); } | 818 void setHasSVGRareData() { setFlag(HasSVGRareDataFlag); } |
831 void clearHasSVGRareData() { clearFlag(HasSVGRareDataFlag); } | 819 void clearHasSVGRareData() { clearFlag(HasSVGRareDataFlag); } |
832 #endif | 820 #endif |
833 | |
834 #if ENABLE(MICRODATA) | |
835 void setItemProp(const String&); | |
836 void setItemRef(const String&); | |
837 void setItemType(const String&); | |
838 #endif | |
839 }; | 821 }; |
840 | 822 |
841 // Used in Node::addSubresourceAttributeURLs() and in addSubresourceStyleURLs() | 823 // Used in Node::addSubresourceAttributeURLs() and in addSubresourceStyleURLs() |
842 inline void addSubresourceURL(ListHashSet<KURL>& urls, const KURL& url) | 824 inline void addSubresourceURL(ListHashSet<KURL>& urls, const KURL& url) |
843 { | 825 { |
844 if (!url.isNull()) | 826 if (!url.isNull()) |
845 urls.add(url); | 827 urls.add(url); |
846 } | 828 } |
847 | 829 |
848 inline void Node::setParentOrShadowHostNode(ContainerNode* parent) | 830 inline void Node::setParentOrShadowHostNode(ContainerNode* parent) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 | 872 |
891 } //namespace | 873 } //namespace |
892 | 874 |
893 #ifndef NDEBUG | 875 #ifndef NDEBUG |
894 // Outside the WebCore namespace for ease of invocation from gdb. | 876 // Outside the WebCore namespace for ease of invocation from gdb. |
895 void showTree(const WebCore::Node*); | 877 void showTree(const WebCore::Node*); |
896 void showNodePath(const WebCore::Node*); | 878 void showNodePath(const WebCore::Node*); |
897 #endif | 879 #endif |
898 | 880 |
899 #endif | 881 #endif |
OLD | NEW |