OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace WebCore { | 26 namespace WebCore { |
27 | 27 |
28 class HTMLBDIElement : public HTMLElement { | 28 class HTMLBDIElement : public HTMLElement { |
29 public: | 29 public: |
30 static Result<HTMLBDIElement> create(const QualifiedName& name, Handle<Docum
ent> document) | 30 static Result<HTMLBDIElement> create(const QualifiedName& name, Handle<Docum
ent> document) |
31 { | 31 { |
32 return adoptTreeShared(new HTMLBDIElement(name, document)); | 32 return adoptTreeShared(new HTMLBDIElement(name, document)); |
33 } | 33 } |
34 | 34 |
35 virtual void acceptHeapVisitor(Visitor* visitor) const { HTMLElement::accept
HeapVisitor(visitor); } | 35 void acceptHeapVisitor(Visitor* visitor) const OVERRIDE |
| 36 { |
| 37 HTMLElement::acceptHeapVisitor(visitor); |
| 38 } |
36 | 39 |
37 private: | 40 private: |
38 HTMLBDIElement(const QualifiedName& name, Handle<Document> document) | 41 HTMLBDIElement(const QualifiedName& name, Handle<Document> document) |
39 : HTMLElement(name, document) | 42 : HTMLElement(name, document) |
40 { | 43 { |
41 // FIXME: Rename setSelfOrAncestorHasDirAutoAttribute to reflect the fac
t bdi also uses this flag. | 44 // FIXME: Rename setSelfOrAncestorHasDirAutoAttribute to reflect the fac
t bdi also uses this flag. |
42 setSelfOrAncestorHasDirAutoAttribute(true); | 45 setSelfOrAncestorHasDirAutoAttribute(true); |
43 } | 46 } |
44 }; | 47 }; |
45 | 48 |
46 } // namespace WebCore | 49 } // namespace WebCore |
47 | 50 |
48 #endif | 51 #endif |
OLD | NEW |