| 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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 class CustomElementMicrotaskRunQueue; | 71 class CustomElementMicrotaskRunQueue; |
| 72 class CustomElementRegistrationContext; | 72 class CustomElementRegistrationContext; |
| 73 class DocumentFragment; | 73 class DocumentFragment; |
| 74 class DocumentLifecycleNotifier; | 74 class DocumentLifecycleNotifier; |
| 75 class DocumentLoadTiming; | 75 class DocumentLoadTiming; |
| 76 class DocumentMarkerController; | 76 class DocumentMarkerController; |
| 77 class DocumentParser; | 77 class DocumentParser; |
| 78 class Element; | 78 class Element; |
| 79 class ElementDataCache; | 79 class ElementDataCache; |
| 80 class Event; | 80 class Event; |
| 81 class EventFactoryBase; | |
| 82 class EventListener; | 81 class EventListener; |
| 83 class ExceptionState; | 82 class ExceptionState; |
| 84 class FloatQuad; | 83 class FloatQuad; |
| 85 class FloatRect; | 84 class FloatRect; |
| 86 class Frame; | 85 class Frame; |
| 87 class FrameHost; | 86 class FrameHost; |
| 88 class FrameView; | 87 class FrameView; |
| 89 class HTMLCanvasElement; | 88 class HTMLCanvasElement; |
| 90 class HTMLDocumentParser; | 89 class HTMLDocumentParser; |
| 91 class HTMLElement; | 90 class HTMLElement; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 void nodeWillBeRemoved(Node&); | 335 void nodeWillBeRemoved(Node&); |
| 337 | 336 |
| 338 void didInsertText(Node*, unsigned offset, unsigned length); | 337 void didInsertText(Node*, unsigned offset, unsigned length); |
| 339 void didRemoveText(Node*, unsigned offset, unsigned length); | 338 void didRemoveText(Node*, unsigned offset, unsigned length); |
| 340 void didMergeTextNodes(Text& oldNode, unsigned offset); | 339 void didMergeTextNodes(Text& oldNode, unsigned offset); |
| 341 void didSplitTextNode(Text& oldNode); | 340 void didSplitTextNode(Text& oldNode); |
| 342 | 341 |
| 343 void clearDOMWindow() { m_domWindow = nullptr; } | 342 void clearDOMWindow() { m_domWindow = nullptr; } |
| 344 LocalDOMWindow* domWindow() const { return m_domWindow; } | 343 LocalDOMWindow* domWindow() const { return m_domWindow; } |
| 345 | 344 |
| 346 static void registerEventFactory(PassOwnPtr<EventFactoryBase>); | |
| 347 static PassRefPtr<Event> createEvent(const String& eventType, ExceptionState
&); | |
| 348 | |
| 349 // keep track of what types of event listeners are registered, so we don't | 345 // keep track of what types of event listeners are registered, so we don't |
| 350 // dispatch events unnecessarily | 346 // dispatch events unnecessarily |
| 351 enum ListenerType { | 347 enum ListenerType { |
| 352 DOMSUBTREEMODIFIED_LISTENER = 1, | 348 DOMSUBTREEMODIFIED_LISTENER = 1, |
| 353 DOMNODEINSERTED_LISTENER = 1 << 1, | 349 DOMNODEINSERTED_LISTENER = 1 << 1, |
| 354 DOMNODEREMOVED_LISTENER = 1 << 2, | 350 DOMNODEREMOVED_LISTENER = 1 << 2, |
| 355 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, | 351 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, |
| 356 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, | 352 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, |
| 357 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, | 353 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, |
| 358 ANIMATIONEND_LISTENER = 1 << 6, | 354 ANIMATIONEND_LISTENER = 1 << 6, |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 void dispatchWindowLoadEvent(); | 596 void dispatchWindowLoadEvent(); |
| 601 | 597 |
| 602 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene
rType; } | 598 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene
rType; } |
| 603 | 599 |
| 604 void clearFocusedElementSoon(); | 600 void clearFocusedElementSoon(); |
| 605 void clearFocusedElementTimerFired(Timer<Document>*); | 601 void clearFocusedElementTimerFired(Timer<Document>*); |
| 606 | 602 |
| 607 void setHoverNode(PassRefPtr<Node>); | 603 void setHoverNode(PassRefPtr<Node>); |
| 608 Node* hoverNode() const { return m_hoverNode.get(); } | 604 Node* hoverNode() const { return m_hoverNode.get(); } |
| 609 | 605 |
| 610 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; | |
| 611 static EventFactorySet& eventFactories(); | |
| 612 | |
| 613 DocumentLifecycle m_lifecycle; | 606 DocumentLifecycle m_lifecycle; |
| 614 | 607 |
| 615 AbstractModule* m_module; | 608 AbstractModule* m_module; |
| 616 | 609 |
| 617 bool m_evaluateMediaQueriesOnStyleRecalc; | 610 bool m_evaluateMediaQueriesOnStyleRecalc; |
| 618 | 611 |
| 619 LocalFrame* m_frame; | 612 LocalFrame* m_frame; |
| 620 RawPtr<LocalDOMWindow> m_domWindow; | 613 RawPtr<LocalDOMWindow> m_domWindow; |
| 621 // FIXME: oilpan: when we get rid of the transition types change the | 614 // FIXME: oilpan: when we get rid of the transition types change the |
| 622 // HTMLImportsController to not be a DocumentSupplement since it is | 615 // HTMLImportsController to not be a DocumentSupplement since it is |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 Node* eventTargetNodeForDocument(Document*); | 746 Node* eventTargetNodeForDocument(Document*); |
| 754 | 747 |
| 755 } // namespace blink | 748 } // namespace blink |
| 756 | 749 |
| 757 #ifndef NDEBUG | 750 #ifndef NDEBUG |
| 758 // Outside the WebCore namespace for ease of invocation from gdb. | 751 // Outside the WebCore namespace for ease of invocation from gdb. |
| 759 void showLiveDocumentInstances(); | 752 void showLiveDocumentInstances(); |
| 760 #endif | 753 #endif |
| 761 | 754 |
| 762 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ | 755 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ |
| OLD | NEW |