tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsRubyContentFrame.h (1155B)


      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/. */
      6 
      7 /* base class for ruby rendering objects that directly contain content */
      8 
      9 #ifndef nsRubyContentFrame_h___
     10 #define nsRubyContentFrame_h___
     11 
     12 #include "nsInlineFrame.h"
     13 
     14 class nsRubyContentFrame : public nsInlineFrame {
     15 public:
     16  NS_DECL_ABSTRACT_FRAME(nsRubyContentFrame)
     17 
     18  // Indicates whether this is an "intra-level whitespace" frame, i.e.
     19  // an anonymous frame that was created to contain non-droppable
     20  // whitespaces directly inside a ruby level container. This impacts
     21  // ruby pairing behavior.
     22  // See http://dev.w3.org/csswg/css-ruby/#anon-gen-interpret-space
     23  bool IsIntraLevelWhitespace() const;
     24 
     25 protected:
     26  nsRubyContentFrame(ComputedStyle* aStyle, nsPresContext* aPresContext,
     27                     ClassID aID)
     28      : nsInlineFrame(aStyle, aPresContext, aID) {}
     29 };
     30 
     31 #endif /* nsRubyContentFrame_h___ */