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

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

Issue 22043003: [oilpan] Handlify childrenChanged. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 4 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 99 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
100 100
101 virtual void visitWith(Visitor*) const; 101 virtual void visitWith(Visitor*) const;
102 virtual void accept(Visitor*) const OVERRIDE; 102 virtual void accept(Visitor*) const OVERRIDE;
103 103
104 private: 104 private:
105 ShadowRoot(Handle<Document>, ShadowRootType); 105 ShadowRoot(Handle<Document>, ShadowRootType);
106 virtual ~ShadowRoot(); 106 virtual ~ShadowRoot();
107 107
108 virtual bool childTypeAllowed(NodeType) const OVERRIDE; 108 virtual bool childTypeAllowed(NodeType) const OVERRIDE;
109 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE; 109 virtual void childrenChanged(bool changedByParser, const Handle<Node>& befor eChange, const Handle<Node>& afterChange, int childCountDelta) OVERRIDE;
110 110
111 // ShadowRoots should never be cloned. 111 // ShadowRoots should never be cloned.
112 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } 112 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; }
113 113
114 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888 34 114 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888 34
115 bool isOrphan() const { return !host(); } 115 bool isOrphan() const { return !host(); }
116 116
117 // FIXME(oilpan): Change these to Members. We will need to modify DoublyLink ListNode. 117 // FIXME(oilpan): Change these to Members. We will need to modify DoublyLink ListNode.
118 ShadowRoot* m_prev; 118 ShadowRoot* m_prev;
119 ShadowRoot* m_next; 119 ShadowRoot* m_next;
(...skipping 19 matching lines...) Expand all
139 } 139 }
140 140
141 inline Result<ShadowRoot> toShadowRoot(Node* node) 141 inline Result<ShadowRoot> toShadowRoot(Node* node)
142 { 142 {
143 return Handle<ShadowRoot>::constCast(toShadowRoot(static_cast<const Node*>(n ode))); 143 return Handle<ShadowRoot>::constCast(toShadowRoot(static_cast<const Node*>(n ode)));
144 } 144 }
145 145
146 } // namespace 146 } // namespace
147 147
148 #endif 148 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698