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

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

Issue 146193003: Remove SVGDocument binding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix some of the comments Created 6 years, 11 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
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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 void didSplitTextNode(Text* oldNode); 658 void didSplitTextNode(Text* oldNode);
659 659
660 void clearDOMWindow() { m_domWindow = 0; } 660 void clearDOMWindow() { m_domWindow = 0; }
661 DOMWindow* domWindow() const { return m_domWindow; } 661 DOMWindow* domWindow() const { return m_domWindow; }
662 662
663 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists. 663 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists.
664 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); 664 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0);
665 EventListener* getWindowAttributeEventListener(const AtomicString& eventType , DOMWrapperWorld* isolatedWorld); 665 EventListener* getWindowAttributeEventListener(const AtomicString& eventType , DOMWrapperWorld* isolatedWorld);
666 666
667 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&); 667 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&);
668 PassRefPtr<Event> createEvent(ExceptionState&);
668 669
669 // keep track of what types of event listeners are registered, so we don't 670 // keep track of what types of event listeners are registered, so we don't
670 // dispatch events unnecessarily 671 // dispatch events unnecessarily
671 enum ListenerType { 672 enum ListenerType {
672 DOMSUBTREEMODIFIED_LISTENER = 1, 673 DOMSUBTREEMODIFIED_LISTENER = 1,
673 DOMNODEINSERTED_LISTENER = 1 << 1, 674 DOMNODEINSERTED_LISTENER = 1 << 1,
674 DOMNODEREMOVED_LISTENER = 1 << 2, 675 DOMNODEREMOVED_LISTENER = 1 << 2,
675 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, 676 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3,
676 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, 677 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4,
677 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, 678 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5,
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 inline bool Node::isDocumentNode() const 1357 inline bool Node::isDocumentNode() const
1357 { 1358 {
1358 return this == document(); 1359 return this == document();
1359 } 1360 }
1360 1361
1361 Node* eventTargetNodeForDocument(Document*); 1362 Node* eventTargetNodeForDocument(Document*);
1362 1363
1363 } // namespace WebCore 1364 } // namespace WebCore
1364 1365
1365 #endif // Document_h 1366 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698