2015-05-03 22:32:37 +03: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 15:40:07 +04: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 17:24:48 +03:00
|
|
|
#include "nsContentUtils.h"
|
2013-10-02 15:40:07 +04:00
|
|
|
|
|
|
|
inline bool
|
|
|
|
nsIContent::IsInHTMLDocument() const
|
|
|
|
{
|
2015-03-03 14:08:59 +03:00
|
|
|
return OwnerDoc()->IsHTMLDocument();
|
2013-10-02 15:40:07 +04:00
|
|
|
}
|
|
|
|
|
2016-06-28 17:24:48 +03:00
|
|
|
inline bool
|
|
|
|
nsIContent::IsInChromeDocument()
|
|
|
|
{
|
|
|
|
return nsContentUtils::IsChromeDoc(OwnerDoc());
|
|
|
|
}
|
|
|
|
|
2013-10-02 15:40:07 +04:00
|
|
|
#endif // nsIContentInlines_h
|