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

Side by Side Diff: Source/core/dom/NonElementParentNode.h

Issue 967753003: Add the NonElementParentNode interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 9 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
« no previous file with comments | « Source/core/dom/DocumentFragment.idl ('k') | Source/core/dom/NonElementParentNode.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 {
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
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentFragment.idl ('k') | Source/core/dom/NonElementParentNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698