OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 Code Aurora Forum. All rights reserved. | 2 * Copyright (c) 2011 Code Aurora Forum. 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 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * * Redistributions in binary form must reproduce the above | 9 * * Redistributions in binary form must reproduce the above |
10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 class HTMLUnknownElement : public HTMLElement { | 37 class HTMLUnknownElement : public HTMLElement { |
38 public: | 38 public: |
39 static PassRefPtr<HTMLUnknownElement> create(const QualifiedName& tagName, H
andle<Document> document) | 39 static PassRefPtr<HTMLUnknownElement> create(const QualifiedName& tagName, H
andle<Document> document) |
40 { | 40 { |
41 return adoptRef(new HTMLUnknownElement(tagName, document)); | 41 return adoptRef(new HTMLUnknownElement(tagName, document)); |
42 } | 42 } |
43 | 43 |
44 virtual bool isHTMLUnknownElement() const OVERRIDE { return true; } | 44 virtual bool isHTMLUnknownElement() const OVERRIDE { return true; } |
45 | 45 |
| 46 virtual void acceptHeapVisitor(Visitor* visitor) const OVERRIDE |
| 47 { |
| 48 HTMLElement::acceptHeapVisitor(visitor); |
| 49 } |
| 50 |
46 private: | 51 private: |
47 HTMLUnknownElement(const QualifiedName& tagName, Handle<Document> document) | 52 HTMLUnknownElement(const QualifiedName& tagName, Handle<Document> document) |
48 : HTMLElement(tagName, document) | 53 : HTMLElement(tagName, document) |
49 { | 54 { |
50 ScriptWrappable::init(this); | 55 ScriptWrappable::init(this); |
51 } | 56 } |
52 }; | 57 }; |
53 | 58 |
54 inline HTMLUnknownElement* toHTMLUnknownElement(HTMLElement* element) | 59 inline HTMLUnknownElement* toHTMLUnknownElement(HTMLElement* element) |
55 { | 60 { |
56 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isHTMLUnknownElement()
); | 61 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isHTMLUnknownElement()
); |
57 return static_cast<HTMLUnknownElement*>(element); | 62 return static_cast<HTMLUnknownElement*>(element); |
58 } | 63 } |
59 | 64 |
60 } // namespace | 65 } // namespace |
61 | 66 |
62 #endif | 67 #endif |
OLD | NEW |