2015-01-08 10:28:09 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code is subject to the terms of the Mozilla Public License
|
|
|
|
* version 2.0 (the "License"). You can obtain a copy of the License at
|
|
|
|
* http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
/* 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:
|
|
|
|
explicit nsRubyContentFrame(nsStyleContext* aContext)
|
2016-04-18 09:06:23 +03:00
|
|
|
: nsInlineFrame(aContext) {}
|
2015-01-08 10:28:09 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsRubyContentFrame_h___ */
|