2017-10-27 20:33:53 +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: */
|
2017-10-27 20:09:35 +03: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/. */
|
2015-01-08 10:28:09 +03:00
|
|
|
|
|
|
|
/* base class for ruby rendering objects that directly contain content */
|
|
|
|
|
|
|
|
#ifndef nsRubyContentFrame_h___
|
|
|
|
#define nsRubyContentFrame_h___
|
|
|
|
|
|
|
|
#include "nsInlineFrame.h"
|
|
|
|
|
2016-04-18 09:06:23 +03:00
|
|
|
class nsRubyContentFrame : public nsInlineFrame {
|
2015-01-08 10:28:09 +03:00
|
|
|
public:
|
2015-11-04 12:57:35 +03:00
|
|
|
NS_DECL_ABSTRACT_FRAME(nsRubyContentFrame)
|
2015-10-20 02:21:44 +03:00
|
|
|
|
2015-01-08 10:28:09 +03:00
|
|
|
// nsIFrame overrides
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual bool IsFrameOfType(uint32_t aFlags) const override;
|
2015-01-08 10:28:09 +03:00
|
|
|
|
2015-01-08 10:28:09 +03:00
|
|
|
// Indicates whether this is an "intra-level whitespace" frame, i.e.
|
|
|
|
// an anonymous frame that was created to contain non-droppable
|
|
|
|
// whitespaces directly inside a ruby level container. This impacts
|
|
|
|
// ruby pairing behavior.
|
|
|
|
// See http://dev.w3.org/csswg/css-ruby/#anon-gen-interpret-space
|
|
|
|
bool IsIntraLevelWhitespace() const;
|
|
|
|
|
2015-01-08 10:28:09 +03:00
|
|
|
protected:
|
2019-02-05 19:45:54 +03:00
|
|
|
nsRubyContentFrame(ComputedStyle* aStyle, nsPresContext* aPresContext,
|
|
|
|
ClassID aID)
|
|
|
|
: nsInlineFrame(aStyle, aPresContext, aID) {}
|
2015-01-08 10:28:09 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsRubyContentFrame_h___ */
|