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

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

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 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
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 DOMNODEINSERTED_LISTENER = 1 << 1, 692 DOMNODEINSERTED_LISTENER = 1 << 1,
693 DOMNODEREMOVED_LISTENER = 1 << 2, 693 DOMNODEREMOVED_LISTENER = 1 << 2,
694 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, 694 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3,
695 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, 695 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4,
696 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, 696 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5,
697 OVERFLOWCHANGED_LISTENER = 1 << 6, 697 OVERFLOWCHANGED_LISTENER = 1 << 6,
698 ANIMATIONEND_LISTENER = 1 << 7, 698 ANIMATIONEND_LISTENER = 1 << 7,
699 ANIMATIONSTART_LISTENER = 1 << 8, 699 ANIMATIONSTART_LISTENER = 1 << 8,
700 ANIMATIONITERATION_LISTENER = 1 << 9, 700 ANIMATIONITERATION_LISTENER = 1 << 9,
701 TRANSITIONEND_LISTENER = 1 << 10, 701 TRANSITIONEND_LISTENER = 1 << 10,
702 BEFORELOAD_LISTENER = 1 << 11,
703 SCROLL_LISTENER = 1 << 12 702 SCROLL_LISTENER = 1 << 12
704 // 3 bits remaining 703 // 4 bits remaining
705 }; 704 };
706 705
707 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy pes & listenerType); } 706 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy pes & listenerType); }
708 void addListenerTypeIfNeeded(const AtomicString& eventType); 707 void addListenerTypeIfNeeded(const AtomicString& eventType);
709 708
710 bool hasMutationObserversOfType(MutationObserver::MutationType type) const 709 bool hasMutationObserversOfType(MutationObserver::MutationType type) const
711 { 710 {
712 return m_mutationObserverTypes & type; 711 return m_mutationObserverTypes & type;
713 } 712 }
714 bool hasMutationObservers() const { return m_mutationObserverTypes; } 713 bool hasMutationObservers() const { return m_mutationObserverTypes; }
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 inline bool Node::isDocumentNode() const 1406 inline bool Node::isDocumentNode() const
1408 { 1407 {
1409 return this == document(); 1408 return this == document();
1410 } 1409 }
1411 1410
1412 Node* eventTargetNodeForDocument(Document*); 1411 Node* eventTargetNodeForDocument(Document*);
1413 1412
1414 } // namespace WebCore 1413 } // namespace WebCore
1415 1414
1416 #endif // Document_h 1415 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698