| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 | 628 |
| 629 enum ShadowTreesTreatment { | 629 enum ShadowTreesTreatment { |
| 630 TreatShadowTreesAsDisconnected, | 630 TreatShadowTreesAsDisconnected, |
| 631 TreatShadowTreesAsComposed | 631 TreatShadowTreesAsComposed |
| 632 }; | 632 }; |
| 633 | 633 |
| 634 unsigned short compareDocumentPositionInternal(const Node*, ShadowTreesTreat
ment) const; | 634 unsigned short compareDocumentPositionInternal(const Node*, ShadowTreesTreat
ment) const; |
| 635 | 635 |
| 636 virtual Node* toNode(); | 636 virtual Node* toNode(); |
| 637 | 637 |
| 638 virtual const AtomicString& interfaceName() const; | 638 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 639 virtual ScriptExecutionContext* scriptExecutionContext() const; | 639 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; |
| 640 | 640 |
| 641 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture); | 641 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture); |
| 642 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture); | 642 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture); |
| 643 | 643 |
| 644 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event | 644 // Handlers to do/undo actions on the target node before an event is dispatc
hed to it and after the event |
| 645 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. | 645 // has been dispatched. The data pointer is handed back by the preDispatch
and passed to postDispatch. |
| 646 virtual void* preDispatchEventHandler(Event*) { return 0; } | 646 virtual void* preDispatchEventHandler(Event*) { return 0; } |
| 647 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } | 647 virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/)
{ } |
| 648 | 648 |
| 649 using EventTarget::dispatchEvent; | 649 using EventTarget::dispatchEvent; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 669 virtual void dispatchChangeEvent(); | 669 virtual void dispatchChangeEvent(); |
| 670 virtual void dispatchInputEvent(); | 670 virtual void dispatchInputEvent(); |
| 671 | 671 |
| 672 // Perform the default action for an event. | 672 // Perform the default action for an event. |
| 673 virtual void defaultEventHandler(Event*); | 673 virtual void defaultEventHandler(Event*); |
| 674 virtual void willCallDefaultEventHandler(const Event&); | 674 virtual void willCallDefaultEventHandler(const Event&); |
| 675 | 675 |
| 676 using TreeShared<Node>::ref; | 676 using TreeShared<Node>::ref; |
| 677 using TreeShared<Node>::deref; | 677 using TreeShared<Node>::deref; |
| 678 | 678 |
| 679 virtual EventTargetData* eventTargetData(); | 679 virtual EventTargetData* eventTargetData() OVERRIDE; |
| 680 virtual EventTargetData* ensureEventTargetData(); | 680 virtual EventTargetData& ensureEventTargetData() OVERRIDE; |
| 681 | 681 |
| 682 void getRegisteredMutationObserversOfType(HashMap<MutationObserver*, Mutatio
nRecordDeliveryOptions>&, MutationObserver::MutationType, const QualifiedName* a
ttributeName); | 682 void getRegisteredMutationObserversOfType(HashMap<MutationObserver*, Mutatio
nRecordDeliveryOptions>&, MutationObserver::MutationType, const QualifiedName* a
ttributeName); |
| 683 void registerMutationObserver(MutationObserver*, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); | 683 void registerMutationObserver(MutationObserver*, MutationObserverOptions, co
nst HashSet<AtomicString>& attributeFilter); |
| 684 void unregisterMutationObserver(MutationObserverRegistration*); | 684 void unregisterMutationObserver(MutationObserverRegistration*); |
| 685 void registerTransientMutationObserver(MutationObserverRegistration*); | 685 void registerTransientMutationObserver(MutationObserverRegistration*); |
| 686 void unregisterTransientMutationObserver(MutationObserverRegistration*); | 686 void unregisterTransientMutationObserver(MutationObserverRegistration*); |
| 687 void notifyMutationObserversNodeWillDetach(); | 687 void notifyMutationObserversNodeWillDetach(); |
| 688 | 688 |
| 689 virtual void registerScopedHTMLStyleChild(); | 689 virtual void registerScopedHTMLStyleChild(); |
| 690 virtual void unregisterScopedHTMLStyleChild(); | 690 virtual void unregisterScopedHTMLStyleChild(); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 bool isUserActionElementActive() const; | 826 bool isUserActionElementActive() const; |
| 827 bool isUserActionElementInActiveChain() const; | 827 bool isUserActionElementInActiveChain() const; |
| 828 bool isUserActionElementHovered() const; | 828 bool isUserActionElementHovered() const; |
| 829 bool isUserActionElementFocused() const; | 829 bool isUserActionElementFocused() const; |
| 830 | 830 |
| 831 void setStyleChange(StyleChangeType); | 831 void setStyleChange(StyleChangeType); |
| 832 | 832 |
| 833 // Used to share code between lazyAttach and setNeedsStyleRecalc. | 833 // Used to share code between lazyAttach and setNeedsStyleRecalc. |
| 834 void markAncestorsWithChildNeedsStyleRecalc(); | 834 void markAncestorsWithChildNeedsStyleRecalc(); |
| 835 | 835 |
| 836 virtual void refEventTarget(); | 836 virtual void refEventTarget() OVERRIDE; |
| 837 virtual void derefEventTarget(); | 837 virtual void derefEventTarget() OVERRIDE; |
| 838 | 838 |
| 839 virtual RenderStyle* nonRendererStyle() const { return 0; } | 839 virtual RenderStyle* nonRendererStyle() const { return 0; } |
| 840 | 840 |
| 841 virtual RenderStyle* virtualComputedStyle(PseudoId = NOPSEUDO); | 841 virtual RenderStyle* virtualComputedStyle(PseudoId = NOPSEUDO); |
| 842 | 842 |
| 843 Element* ancestorElement() const; | 843 Element* ancestorElement() const; |
| 844 | 844 |
| 845 void trackForDebugging(); | 845 void trackForDebugging(); |
| 846 | 846 |
| 847 Vector<OwnPtr<MutationObserverRegistration> >* mutationObserverRegistry(); | 847 Vector<OwnPtr<MutationObserverRegistration> >* mutationObserverRegistry(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 | 925 |
| 926 } //namespace | 926 } //namespace |
| 927 | 927 |
| 928 #ifndef NDEBUG | 928 #ifndef NDEBUG |
| 929 // Outside the WebCore namespace for ease of invocation from gdb. | 929 // Outside the WebCore namespace for ease of invocation from gdb. |
| 930 void showTree(const WebCore::Node*); | 930 void showTree(const WebCore::Node*); |
| 931 void showNodePath(const WebCore::Node*); | 931 void showNodePath(const WebCore::Node*); |
| 932 #endif | 932 #endif |
| 933 | 933 |
| 934 #endif | 934 #endif |
| OLD | NEW |