2015-05-03 19:32:37 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2013-10-02 11:40:07 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef nsIContentInlines_h
|
|
|
|
#define nsIContentInlines_h
|
|
|
|
|
|
|
|
#include "nsIContent.h"
|
|
|
|
#include "nsIDocument.h"
|
2016-06-28 14:24:48 +00:00
|
|
|
#include "nsContentUtils.h"
|
2013-10-02 11:40:07 +00:00
|
|
|
|
|
|
|
inline bool
|
|
|
|
nsIContent::IsInHTMLDocument() const
|
|
|
|
{
|
2015-03-03 11:08:59 +00:00
|
|
|
return OwnerDoc()->IsHTMLDocument();
|
2013-10-02 11:40:07 +00:00
|
|
|
}
|
|
|
|
|
2016-06-28 14:24:48 +00:00
|
|
|
inline bool
|
|
|
|
nsIContent::IsInChromeDocument()
|
|
|
|
{
|
|
|
|
return nsContentUtils::IsChromeDoc(OwnerDoc());
|
|
|
|
}
|
|
|
|
|
2013-10-02 11:40:07 +00:00
|
|
|
#endif // nsIContentInlines_h
|