OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef HTMLRTElement_h | 5 #ifndef HTMLRTElement_h |
6 #define HTMLRTElement_h | 6 #define HTMLRTElement_h |
7 | 7 |
8 #include "core/html/HTMLElement.h" | 8 #include "core/html/HTMLElement.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // <rt> is an HTMLElement in script, but we use a separate interface here | 12 // <rt> is an HTMLElement in script, but we use a separate interface here |
13 // so HTMLElement's createLayoutObject doesn't need to know about it. | 13 // so HTMLElement's createLayoutObject doesn't need to know about it. |
14 class HTMLRTElement final : public HTMLElement { | 14 class HTMLRTElement final : public HTMLElement { |
15 public: | 15 public: |
16 DECLARE_NODE_FACTORY(HTMLRTElement); | 16 DECLARE_NODE_FACTORY(HTMLRTElement); |
17 | 17 |
18 private: | 18 private: |
19 explicit HTMLRTElement(Document&); | 19 explicit HTMLRTElement(Document&); |
20 | 20 |
21 virtual LayoutObject* createLayoutObject(const ComputedStyle&) override; | 21 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace | 24 } // namespace |
25 | 25 |
26 #endif | 26 #endif |
OLD | NEW |