diff options
Diffstat (limited to 'dom/base/nsIContentInlines.h')
-rw-r--r-- | dom/base/nsIContentInlines.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/base/nsIContentInlines.h b/dom/base/nsIContentInlines.h index 6a82f7f65..6a9bd7afa 100644 --- a/dom/base/nsIContentInlines.h +++ b/dom/base/nsIContentInlines.h @@ -87,4 +87,10 @@ nsINode::GetFlattenedTreeParentNodeForStyle() const return ::GetFlattenedTreeParentNode<nsIContent::eForStyle>(this); } +inline bool +nsINode::NodeOrAncestorHasDirAuto() const +{ + return AncestorHasDirAuto() || (IsElement() && AsElement()->HasDirAuto()); +} + #endif // nsIContentInlines_h |