Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NonElementParentNode_h | |
| 6 #define NonElementParentNode_h | |
| 7 | |
| 8 #include "core/dom/Document.h" | |
| 9 #include "core/dom/DocumentFragment.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class NonElementParentNode { | |
|
haraken
2015/03/01 08:53:07
Add final.
philipj_slow
2015/03/01 15:32:14
Hmm, does that do anything on a class that inherit
| |
| 14 public: | |
| 15 static Element* getElementById(Document& document, const AtomicString& id) | |
| 16 { | |
| 17 return document.getElementById(id); | |
| 18 } | |
| 19 | |
| 20 static Element* getElementById(DocumentFragment& fragment, const AtomicStrin g& id) | |
| 21 { | |
| 22 return fragment.getElementById(id); | |
| 23 } | |
| 24 }; | |
| 25 | |
| 26 } // namespace blink | |
| 27 | |
| 28 #endif // NonElementParentNode_h | |
| OLD | NEW |