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

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

Issue 334713006: Use stricter typing for NodeLists throughout the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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/NamedNodesCollection.h ('k') | Source/core/dom/Node.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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 class PlatformMouseEvent; 72 class PlatformMouseEvent;
73 class PlatformWheelEvent; 73 class PlatformWheelEvent;
74 class QualifiedName; 74 class QualifiedName;
75 class RadioNodeList; 75 class RadioNodeList;
76 class RegisteredEventListener; 76 class RegisteredEventListener;
77 class RenderBox; 77 class RenderBox;
78 class RenderBoxModelObject; 78 class RenderBoxModelObject;
79 class RenderObject; 79 class RenderObject;
80 class RenderStyle; 80 class RenderStyle;
81 class ShadowRoot; 81 class ShadowRoot;
82 class StaticNodeList;
82 class TagCollection; 83 class TagCollection;
83 class Text; 84 class Text;
84 class TouchEvent; 85 class TouchEvent;
85 class WeakNodeMap; 86 class WeakNodeMap;
86 87
87 const int nodeStyleChangeShift = 19; 88 const int nodeStyleChangeShift = 19;
88 89
89 enum StyleChangeType { 90 enum StyleChangeType {
90 NoStyleChange = 0, 91 NoStyleChange = 0,
91 LocalStyleChange = 1 << nodeStyleChangeShift, 92 LocalStyleChange = 1 << nodeStyleChangeShift,
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 void registerTransientMutationObserver(MutationObserverRegistration*); 660 void registerTransientMutationObserver(MutationObserverRegistration*);
660 void unregisterTransientMutationObserver(MutationObserverRegistration*); 661 void unregisterTransientMutationObserver(MutationObserverRegistration*);
661 void notifyMutationObserversNodeWillDetach(); 662 void notifyMutationObserversNodeWillDetach();
662 663
663 unsigned connectedSubframeCount() const; 664 unsigned connectedSubframeCount() const;
664 void incrementConnectedSubframeCount(unsigned amount = 1); 665 void incrementConnectedSubframeCount(unsigned amount = 1);
665 void decrementConnectedSubframeCount(unsigned amount = 1); 666 void decrementConnectedSubframeCount(unsigned amount = 1);
666 void updateAncestorConnectedSubframeCountForRemoval() const; 667 void updateAncestorConnectedSubframeCountForRemoval() const;
667 void updateAncestorConnectedSubframeCountForInsertion() const; 668 void updateAncestorConnectedSubframeCountForInsertion() const;
668 669
669 PassRefPtrWillBeRawPtr<NodeList> getDestinationInsertionPoints(); 670 PassRefPtrWillBeRawPtr<StaticNodeList> getDestinationInsertionPoints();
670 671
671 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); } 672 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); }
672 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } 673 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); }
673 674
674 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); } 675 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); }
675 676
676 virtual void trace(Visitor*) OVERRIDE; 677 virtual void trace(Visitor*) OVERRIDE;
677 678
678 unsigned lengthOfContents() const; 679 unsigned lengthOfContents() const;
679 680
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 } // namespace WebCore 908 } // namespace WebCore
908 909
909 #ifndef NDEBUG 910 #ifndef NDEBUG
910 // Outside the WebCore namespace for ease of invocation from gdb. 911 // Outside the WebCore namespace for ease of invocation from gdb.
911 void showNode(const WebCore::Node*); 912 void showNode(const WebCore::Node*);
912 void showTree(const WebCore::Node*); 913 void showTree(const WebCore::Node*);
913 void showNodePath(const WebCore::Node*); 914 void showNodePath(const WebCore::Node*);
914 #endif 915 #endif
915 916
916 #endif 917 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/NamedNodesCollection.h ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698