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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 687783003: More cleanup of dead code now that we don't have frame-level scrolling. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/engine/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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 // keep track of what types of event listeners are registered, so we don't 424 // keep track of what types of event listeners are registered, so we don't
425 // dispatch events unnecessarily 425 // dispatch events unnecessarily
426 enum ListenerType { 426 enum ListenerType {
427 DOMSUBTREEMODIFIED_LISTENER = 1, 427 DOMSUBTREEMODIFIED_LISTENER = 1,
428 DOMNODEINSERTED_LISTENER = 1 << 1, 428 DOMNODEINSERTED_LISTENER = 1 << 1,
429 DOMNODEREMOVED_LISTENER = 1 << 2, 429 DOMNODEREMOVED_LISTENER = 1 << 2,
430 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, 430 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3,
431 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, 431 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4,
432 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, 432 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5,
433 OVERFLOWCHANGED_LISTENER = 1 << 6, 433 ANIMATIONEND_LISTENER = 1 << 6,
434 ANIMATIONEND_LISTENER = 1 << 7, 434 ANIMATIONSTART_LISTENER = 1 << 7,
435 ANIMATIONSTART_LISTENER = 1 << 8, 435 ANIMATIONITERATION_LISTENER = 1 << 8,
436 ANIMATIONITERATION_LISTENER = 1 << 9, 436 TRANSITIONEND_LISTENER = 1 << 9,
437 TRANSITIONEND_LISTENER = 1 << 10, 437 SCROLL_LISTENER = 1 << 10,
438 SCROLL_LISTENER = 1 << 12
439 // 4 bits remaining
440 }; 438 };
441 439
442 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy pes & listenerType); } 440 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy pes & listenerType); }
443 void addListenerTypeIfNeeded(const AtomicString& eventType); 441 void addListenerTypeIfNeeded(const AtomicString& eventType);
444 442
445 bool hasMutationObserversOfType(MutationObserver::MutationType type) const 443 bool hasMutationObserversOfType(MutationObserver::MutationType type) const
446 { 444 {
447 return m_mutationObserverTypes & type; 445 return m_mutationObserverTypes & type;
448 } 446 }
449 bool hasMutationObservers() const { return m_mutationObserverTypes; } 447 bool hasMutationObservers() const { return m_mutationObserverTypes; }
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 Node* eventTargetNodeForDocument(Document*); 905 Node* eventTargetNodeForDocument(Document*);
908 906
909 } // namespace blink 907 } // namespace blink
910 908
911 #ifndef NDEBUG 909 #ifndef NDEBUG
912 // Outside the WebCore namespace for ease of invocation from gdb. 910 // Outside the WebCore namespace for ease of invocation from gdb.
913 void showLiveDocumentInstances(); 911 void showLiveDocumentInstances();
914 #endif 912 #endif
915 913
916 #endif // Document_h 914 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698