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

Side by Side Diff: Source/core/html/HTMLTemplateElement.h

Issue 20123003: [oilpan] The Node hierarchy should have correct accept method chains (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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) 2012, Google Inc. All rights reserved. 2 * Copyright (c) 2012, 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class HTMLTemplateElement : public HTMLElement { 39 class HTMLTemplateElement : public HTMLElement {
40 public: 40 public:
41 static PassRefPtr<HTMLTemplateElement> create(const QualifiedName&, Handle<D ocument>); 41 static PassRefPtr<HTMLTemplateElement> create(const QualifiedName&, Handle<D ocument>);
42 virtual ~HTMLTemplateElement(); 42 virtual ~HTMLTemplateElement();
43 43
44 DocumentFragment* content() const; 44 DocumentFragment* content() const;
45 45
46 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE;
47
46 private: 48 private:
47 virtual PassRefPtr<Node> cloneNode(bool deep) OVERRIDE; 49 virtual PassRefPtr<Node> cloneNode(bool deep) OVERRIDE;
48 virtual void didMoveToNewDocument(Handle<Document> oldDocument) OVERRIDE; 50 virtual void didMoveToNewDocument(Handle<Document> oldDocument) OVERRIDE;
49 51
50 HTMLTemplateElement(const QualifiedName&, Handle<Document>); 52 HTMLTemplateElement(const QualifiedName&, Handle<Document>);
51 53
52 mutable RefPtr<DocumentFragment> m_content; 54 mutable Member<DocumentFragment> m_content;
53 }; 55 };
54 56
55 const HTMLTemplateElement* toHTMLTemplateElement(const Node*); 57 const HTMLTemplateElement* toHTMLTemplateElement(const Node*);
56 58
57 inline HTMLTemplateElement* toHTMLTemplateElement(Node* node) 59 inline HTMLTemplateElement* toHTMLTemplateElement(Node* node)
58 { 60 {
59 return const_cast<HTMLTemplateElement*>(toHTMLTemplateElement(static_cast<co nst Node*>(node))); 61 return const_cast<HTMLTemplateElement*>(toHTMLTemplateElement(static_cast<co nst Node*>(node)));
60 } 62 }
61 63
62 #ifdef NDEBUG 64 #ifdef NDEBUG
63 65
64 // The debug version of this, with assertions, is not inlined. 66 // The debug version of this, with assertions, is not inlined.
65 inline const HTMLTemplateElement* toHTMLTemplateElement(const Node* node) 67 inline const HTMLTemplateElement* toHTMLTemplateElement(const Node* node)
66 { 68 {
67 return static_cast<const HTMLTemplateElement*>(node); 69 return static_cast<const HTMLTemplateElement*>(node);
68 } 70 }
69 #endif // NDEBUG 71 #endif // NDEBUG
70 72
71 } // namespace WebCore 73 } // namespace WebCore
72 74
73 #endif // HTMLTemplateElement_h 75 #endif // HTMLTemplateElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698