Bug 1708422: part 13) Factor code out to `mozInlineSpellChecker::SpellCheckerTimeSlic...
[gecko.git] / layout / generic / nsRubyContentFrame.h
blob788cac2d549da2eddb7b6f22da15e52956e20de0
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 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/. */
7 /* base class for ruby rendering objects that directly contain content */
9 #ifndef nsRubyContentFrame_h___
10 #define nsRubyContentFrame_h___
12 #include "nsInlineFrame.h"
14 class nsRubyContentFrame : public nsInlineFrame {
15 public:
16 NS_DECL_ABSTRACT_FRAME(nsRubyContentFrame)
18 // nsIFrame overrides
19 virtual bool IsFrameOfType(uint32_t aFlags) const override;
21 // Indicates whether this is an "intra-level whitespace" frame, i.e.
22 // an anonymous frame that was created to contain non-droppable
23 // whitespaces directly inside a ruby level container. This impacts
24 // ruby pairing behavior.
25 // See http://dev.w3.org/csswg/css-ruby/#anon-gen-interpret-space
26 bool IsIntraLevelWhitespace() const;
28 protected:
29 nsRubyContentFrame(ComputedStyle* aStyle, nsPresContext* aPresContext,
30 ClassID aID)
31 : nsInlineFrame(aStyle, aPresContext, aID) {}
34 #endif /* nsRubyContentFrame_h___ */