content/base/public/nsIDocumentInlines.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:1a4f17961f91
1 /* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8; -*- */
2 /* vim: set sw=2 sts=2 ts=8 et tw=80 : */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsIDocumentInlines_h
7 #define nsIDocumentInlines_h
8
9 #include "nsIDocument.h"
10 #include "mozilla/dom/HTMLBodyElement.h"
11
12 inline mozilla::dom::HTMLBodyElement*
13 nsIDocument::GetBodyElement()
14 {
15 return static_cast<mozilla::dom::HTMLBodyElement*>(GetHtmlChildElement(nsGkAtoms::body));
16 }
17
18 #endif // nsIDocumentInlines_h

mercurial