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

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

Issue 12518022: Merge 143840 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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
« no previous file with comments | « Source/WebCore/dom/Node.cpp ('k') | Source/WebCore/dom/ShadowRoot.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) 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } 93 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); }
94 94
95 PassRefPtr<Node> cloneNode(bool, ExceptionCode&); 95 PassRefPtr<Node> cloneNode(bool, ExceptionCode&);
96 96
97 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 97 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
98 98
99 private: 99 private:
100 ShadowRoot(Document*, ShadowRootType); 100 ShadowRoot(Document*, ShadowRootType);
101 virtual ~ShadowRoot(); 101 virtual ~ShadowRoot();
102 102
103 virtual void dispose() OVERRIDE;
103 virtual bool childTypeAllowed(NodeType) const OVERRIDE; 104 virtual bool childTypeAllowed(NodeType) const OVERRIDE;
104 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE; 105 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE;
105 106
106 // ShadowRoots should never be cloned. 107 // ShadowRoots should never be cloned.
107 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } 108 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; }
108 109
109 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888 34 110 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888 34
110 bool isOrphan() const { return !host(); } 111 bool isOrphan() const { return !host(); }
111 112
112 ShadowRoot* m_prev; 113 ShadowRoot* m_prev;
(...skipping 20 matching lines...) Expand all
133 } 134 }
134 135
135 inline ShadowRoot* toShadowRoot(Node* node) 136 inline ShadowRoot* toShadowRoot(Node* node)
136 { 137 {
137 return const_cast<ShadowRoot*>(toShadowRoot(static_cast<const Node*>(node))) ; 138 return const_cast<ShadowRoot*>(toShadowRoot(static_cast<const Node*>(node))) ;
138 } 139 }
139 140
140 } // namespace 141 } // namespace
141 142
142 #endif 143 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Node.cpp ('k') | Source/WebCore/dom/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698