Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: Source/core/dom/Document.h

Issue 254133002: Remove support for Document.createEvent() without argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add layout test Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 void didSplitTextNode(Text& oldNode); 683 void didSplitTextNode(Text& oldNode);
684 684
685 void clearDOMWindow() { m_domWindow = 0; } 685 void clearDOMWindow() { m_domWindow = 0; }
686 DOMWindow* domWindow() const { return m_domWindow; } 686 DOMWindow* domWindow() const { return m_domWindow; }
687 687
688 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists. 688 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists.
689 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>); 689 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>);
690 EventListener* getWindowAttributeEventListener(const AtomicString& eventType ); 690 EventListener* getWindowAttributeEventListener(const AtomicString& eventType );
691 691
692 PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Exception State&); 692 PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Exception State&);
693 PassRefPtrWillBeRawPtr<Event> createEvent(ExceptionState&);
694 693
695 // keep track of what types of event listeners are registered, so we don't 694 // keep track of what types of event listeners are registered, so we don't
696 // dispatch events unnecessarily 695 // dispatch events unnecessarily
697 enum ListenerType { 696 enum ListenerType {
698 DOMSUBTREEMODIFIED_LISTENER = 1, 697 DOMSUBTREEMODIFIED_LISTENER = 1,
699 DOMNODEINSERTED_LISTENER = 1 << 1, 698 DOMNODEINSERTED_LISTENER = 1 << 1,
700 DOMNODEREMOVED_LISTENER = 1 << 2, 699 DOMNODEREMOVED_LISTENER = 1 << 2,
701 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, 700 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3,
702 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, 701 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4,
703 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, 702 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5,
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 inline bool Node::isDocumentNode() const 1440 inline bool Node::isDocumentNode() const
1442 { 1441 {
1443 return this == document(); 1442 return this == document();
1444 } 1443 }
1445 1444
1446 Node* eventTargetNodeForDocument(Document*); 1445 Node* eventTargetNodeForDocument(Document*);
1447 1446
1448 } // namespace WebCore 1447 } // namespace WebCore
1449 1448
1450 #endif // Document_h 1449 #endif // Document_h
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/document-createEvent-mandatory-arg-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698