2014-07-22 19:08:01 -07: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/. */
|
|
|
|
|
|
|
|
/* rendering object for CSS "display: ruby" */
|
|
|
|
#include "nsRubyFrame.h"
|
2014-08-15 10:34:20 -07:00
|
|
|
#include "nsLineLayout.h"
|
2014-07-22 19:08:01 -07:00
|
|
|
#include "nsPresContext.h"
|
|
|
|
#include "nsStyleContext.h"
|
2014-08-15 10:34:20 -07:00
|
|
|
#include "WritingModes.h"
|
|
|
|
#include "nsRubyBaseContainerFrame.h"
|
|
|
|
#include "nsRubyTextContainerFrame.h"
|
|
|
|
|
|
|
|
using namespace mozilla;
|
2014-07-22 19:08:01 -07:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
// Frame class boilerplate
|
|
|
|
// =======================
|
|
|
|
|
|
|
|
NS_QUERYFRAME_HEAD(nsRubyFrame)
|
|
|
|
NS_QUERYFRAME_ENTRY(nsRubyFrame)
|
|
|
|
NS_QUERYFRAME_TAIL_INHERITING(nsContainerFrame)
|
|
|
|
|
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsRubyFrame)
|
|
|
|
|
|
|
|
nsContainerFrame*
|
|
|
|
NS_NewRubyFrame(nsIPresShell* aPresShell,
|
|
|
|
nsStyleContext* aContext)
|
|
|
|
{
|
|
|
|
return new (aPresShell) nsRubyFrame(aContext);
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
|
|
|
// nsRubyFrame Method Implementations
|
|
|
|
// ==================================
|
|
|
|
|
|
|
|
nsIAtom*
|
|
|
|
nsRubyFrame::GetType() const
|
|
|
|
{
|
|
|
|
return nsGkAtoms::rubyFrame;
|
|
|
|
}
|
|
|
|
|
2014-08-15 10:34:20 -07:00
|
|
|
/* virtual */ bool
|
2014-07-22 19:08:01 -07:00
|
|
|
nsRubyFrame::IsFrameOfType(uint32_t aFlags) const
|
|
|
|
{
|
|
|
|
return nsContainerFrame::IsFrameOfType(aFlags &
|
2014-08-15 10:34:20 -07:00
|
|
|
~(nsIFrame::eLineParticipant));
|
2014-07-22 19:08:01 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
|
|
|
nsresult
|
|
|
|
nsRubyFrame::GetFrameName(nsAString& aResult) const
|
|
|
|
{
|
|
|
|
return MakeFrameName(NS_LITERAL_STRING("Ruby"), aResult);
|
|
|
|
}
|
|
|
|
#endif
|
2014-08-15 10:34:20 -07:00
|
|
|
|
2014-11-25 20:52:48 -08:00
|
|
|
class MOZ_STACK_CLASS TextContainerIterator
|
2014-08-15 10:34:20 -07:00
|
|
|
{
|
2014-11-25 20:52:48 -08:00
|
|
|
public:
|
|
|
|
TextContainerIterator(nsRubyBaseContainerFrame* aBaseContainer);
|
|
|
|
void Next();
|
|
|
|
bool AtEnd() const { return !mFrame; }
|
|
|
|
nsRubyTextContainerFrame* GetTextContainer() const
|
|
|
|
{
|
|
|
|
return static_cast<nsRubyTextContainerFrame*>(mFrame);
|
|
|
|
}
|
2014-08-15 10:34:20 -07:00
|
|
|
|
2014-11-25 20:52:48 -08:00
|
|
|
private:
|
|
|
|
nsIFrame* mFrame;
|
|
|
|
};
|
2014-08-15 10:34:20 -07:00
|
|
|
|
2014-11-25 20:52:48 -08:00
|
|
|
TextContainerIterator::TextContainerIterator(
|
|
|
|
nsRubyBaseContainerFrame* aBaseContainer)
|
|
|
|
{
|
|
|
|
mFrame = aBaseContainer;
|
|
|
|
Next();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TextContainerIterator::Next()
|
|
|
|
{
|
|
|
|
if (mFrame) {
|
|
|
|
mFrame = mFrame->GetNextSibling();
|
|
|
|
if (mFrame && mFrame->GetType() != nsGkAtoms::rubyTextContainerFrame) {
|
|
|
|
mFrame = nullptr;
|
2014-08-15 10:34:20 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-25 20:52:48 -08:00
|
|
|
/**
|
|
|
|
* This class is responsible for appending and clearing
|
|
|
|
* text container list of the base container.
|
|
|
|
*/
|
|
|
|
class MOZ_STACK_CLASS AutoSetTextContainers
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AutoSetTextContainers(nsRubyBaseContainerFrame* aBaseContainer);
|
|
|
|
~AutoSetTextContainers();
|
|
|
|
|
|
|
|
private:
|
|
|
|
nsRubyBaseContainerFrame* mBaseContainer;
|
|
|
|
};
|
|
|
|
|
|
|
|
AutoSetTextContainers::AutoSetTextContainers(
|
|
|
|
nsRubyBaseContainerFrame* aBaseContainer)
|
|
|
|
: mBaseContainer(aBaseContainer)
|
|
|
|
{
|
|
|
|
#ifdef DEBUG
|
|
|
|
aBaseContainer->AssertTextContainersEmpty();
|
|
|
|
#endif
|
|
|
|
for (TextContainerIterator iter(aBaseContainer);
|
|
|
|
!iter.AtEnd(); iter.Next()) {
|
|
|
|
aBaseContainer->AppendTextContainer(iter.GetTextContainer());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
AutoSetTextContainers::~AutoSetTextContainers()
|
|
|
|
{
|
|
|
|
mBaseContainer->ClearTextContainers();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This enumerator enumerates each segment.
|
|
|
|
*/
|
|
|
|
class MOZ_STACK_CLASS SegmentEnumerator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SegmentEnumerator(nsRubyFrame* aRubyFrame);
|
|
|
|
|
|
|
|
void Next();
|
|
|
|
bool AtEnd() const { return !mBaseContainer; }
|
|
|
|
|
|
|
|
nsRubyBaseContainerFrame* GetBaseContainer() const
|
|
|
|
{
|
|
|
|
return mBaseContainer;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
nsRubyBaseContainerFrame* mBaseContainer;
|
|
|
|
};
|
|
|
|
|
|
|
|
SegmentEnumerator::SegmentEnumerator(nsRubyFrame* aRubyFrame)
|
|
|
|
{
|
|
|
|
nsIFrame* frame = aRubyFrame->GetFirstPrincipalChild();
|
|
|
|
MOZ_ASSERT(!frame ||
|
|
|
|
frame->GetType() == nsGkAtoms::rubyBaseContainerFrame);
|
|
|
|
mBaseContainer = static_cast<nsRubyBaseContainerFrame*>(frame);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
SegmentEnumerator::Next()
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(mBaseContainer);
|
|
|
|
nsIFrame* frame = mBaseContainer->GetNextSibling();
|
|
|
|
while (frame && frame->GetType() != nsGkAtoms::rubyBaseContainerFrame) {
|
|
|
|
frame = frame->GetNextSibling();
|
|
|
|
}
|
|
|
|
mBaseContainer = static_cast<nsRubyBaseContainerFrame*>(frame);
|
|
|
|
}
|
|
|
|
|
2014-08-15 10:34:20 -07:00
|
|
|
/* virtual */ void
|
|
|
|
nsRubyFrame::AddInlineMinISize(nsRenderingContext *aRenderingContext,
|
|
|
|
nsIFrame::InlineMinISizeData *aData)
|
|
|
|
{
|
|
|
|
nscoord max = 0;
|
2014-11-25 20:52:48 -08:00
|
|
|
for (SegmentEnumerator e(this); !e.AtEnd(); e.Next()) {
|
|
|
|
AutoSetTextContainers holder(e.GetBaseContainer());
|
|
|
|
max = std::max(max, e.GetBaseContainer()->GetMinISize(aRenderingContext));
|
2014-08-15 10:34:20 -07:00
|
|
|
}
|
|
|
|
aData->currentLine += max;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* virtual */ void
|
|
|
|
nsRubyFrame::AddInlinePrefISize(nsRenderingContext *aRenderingContext,
|
|
|
|
nsIFrame::InlinePrefISizeData *aData)
|
|
|
|
{
|
|
|
|
nscoord sum = 0;
|
2014-11-25 20:52:48 -08:00
|
|
|
for (SegmentEnumerator e(this); !e.AtEnd(); e.Next()) {
|
|
|
|
AutoSetTextContainers holder(e.GetBaseContainer());
|
|
|
|
sum += e.GetBaseContainer()->GetPrefISize(aRenderingContext);
|
2014-08-15 10:34:20 -07:00
|
|
|
}
|
|
|
|
aData->currentLine += sum;
|
|
|
|
}
|
|
|
|
|
2014-11-25 20:52:49 -08:00
|
|
|
/* virtual */ LogicalSize
|
|
|
|
nsRubyFrame::ComputeSize(nsRenderingContext *aRenderingContext,
|
|
|
|
WritingMode aWM,
|
|
|
|
const LogicalSize& aCBSize,
|
|
|
|
nscoord aAvailableISize,
|
|
|
|
const LogicalSize& aMargin,
|
|
|
|
const LogicalSize& aBorder,
|
|
|
|
const LogicalSize& aPadding,
|
|
|
|
ComputeSizeFlags aFlags)
|
|
|
|
{
|
|
|
|
// Ruby frame is inline, hence don't compute size before reflow.
|
|
|
|
return LogicalSize(aWM, NS_UNCONSTRAINEDSIZE, NS_UNCONSTRAINEDSIZE);
|
|
|
|
}
|
|
|
|
|
2014-08-15 10:34:20 -07:00
|
|
|
/* virtual */ nscoord
|
|
|
|
nsRubyFrame::GetLogicalBaseline(WritingMode aWritingMode) const
|
|
|
|
{
|
|
|
|
return mBaseline;
|
|
|
|
}
|
|
|
|
|
2014-08-15 10:34:20 -07:00
|
|
|
/* virtual */ bool
|
|
|
|
nsRubyFrame::CanContinueTextRun() const
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2014-08-15 10:34:20 -07:00
|
|
|
/* virtual */ void
|
|
|
|
nsRubyFrame::Reflow(nsPresContext* aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus)
|
|
|
|
{
|
|
|
|
DO_GLOBAL_REFLOW_COUNT("nsRubyFrame");
|
|
|
|
DISPLAY_REFLOW(aPresContext, this, aReflowState, aDesiredSize, aStatus);
|
|
|
|
|
|
|
|
if (!aReflowState.mLineLayout) {
|
|
|
|
NS_ASSERTION(aReflowState.mLineLayout,
|
|
|
|
"No line layout provided to RubyFrame reflow method.");
|
|
|
|
aStatus = NS_FRAME_COMPLETE;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-11-25 20:52:50 -08:00
|
|
|
// Grab overflow frames from prev-in-flow and its own.
|
|
|
|
MoveOverflowToChildList();
|
|
|
|
|
2014-08-15 10:34:20 -07:00
|
|
|
// Begin the span for the ruby frame
|
|
|
|
WritingMode frameWM = aReflowState.GetWritingMode();
|
|
|
|
WritingMode lineWM = aReflowState.mLineLayout->GetWritingMode();
|
|
|
|
LogicalMargin borderPadding = aReflowState.ComputedLogicalBorderPadding();
|
2014-11-25 20:52:49 -08:00
|
|
|
nscoord startEdge = borderPadding.IStart(frameWM);
|
|
|
|
nscoord endEdge = aReflowState.AvailableISize() - borderPadding.IEnd(frameWM);
|
|
|
|
NS_ASSERTION(aReflowState.AvailableISize() != NS_UNCONSTRAINEDSIZE,
|
2014-08-15 10:34:20 -07:00
|
|
|
"should no longer use available widths");
|
|
|
|
aReflowState.mLineLayout->BeginSpan(this, &aReflowState,
|
2014-11-25 20:52:49 -08:00
|
|
|
startEdge, endEdge, &mBaseline);
|
2014-08-15 10:34:20 -07:00
|
|
|
|
|
|
|
aStatus = NS_FRAME_COMPLETE;
|
2014-11-25 20:52:48 -08:00
|
|
|
for (SegmentEnumerator e(this); !e.AtEnd(); e.Next()) {
|
2014-11-25 20:52:50 -08:00
|
|
|
ReflowSegment(aPresContext, aReflowState, e.GetBaseContainer(), aStatus);
|
2014-11-25 20:52:50 -08:00
|
|
|
|
|
|
|
if (NS_INLINE_IS_BREAK(aStatus)) {
|
|
|
|
// A break occurs when reflowing the segment.
|
|
|
|
// Don't continue reflowing more segments.
|
|
|
|
break;
|
|
|
|
}
|
2014-08-15 10:34:20 -07:00
|
|
|
}
|
|
|
|
|
2014-11-25 20:52:50 -08:00
|
|
|
ContinuationTraversingState pullState(this);
|
|
|
|
while (aStatus == NS_FRAME_COMPLETE) {
|
|
|
|
nsRubyBaseContainerFrame* baseContainer = PullOneSegment(pullState);
|
|
|
|
if (!baseContainer) {
|
|
|
|
// No more continuations after, finish now.
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
ReflowSegment(aPresContext, aReflowState, baseContainer, aStatus);
|
|
|
|
}
|
|
|
|
// We never handle overflow in ruby.
|
|
|
|
MOZ_ASSERT(!NS_FRAME_OVERFLOW_IS_INCOMPLETE(aStatus));
|
|
|
|
|
2014-08-15 10:34:20 -07:00
|
|
|
aDesiredSize.ISize(lineWM) = aReflowState.mLineLayout->EndSpan(this);
|
|
|
|
nsLayoutUtils::SetBSizeFromFontMetrics(this, aDesiredSize, aReflowState,
|
|
|
|
borderPadding, lineWM, frameWM);
|
|
|
|
}
|
2014-11-25 20:52:50 -08:00
|
|
|
|
|
|
|
void
|
|
|
|
nsRubyFrame::ReflowSegment(nsPresContext* aPresContext,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsRubyBaseContainerFrame* aBaseContainer,
|
|
|
|
nsReflowStatus& aStatus)
|
|
|
|
{
|
|
|
|
AutoSetTextContainers holder(aBaseContainer);
|
|
|
|
WritingMode lineWM = aReflowState.mLineLayout->GetWritingMode();
|
|
|
|
LogicalSize availSize(lineWM, aReflowState.AvailableISize(),
|
|
|
|
aReflowState.AvailableBSize());
|
|
|
|
|
2014-11-25 20:52:50 -08:00
|
|
|
nsAutoTArray<nsRubyTextContainerFrame*, RTC_ARRAY_SIZE> textContainers;
|
|
|
|
for (TextContainerIterator iter(aBaseContainer); !iter.AtEnd(); iter.Next()) {
|
|
|
|
textContainers.AppendElement(iter.GetTextContainer());
|
|
|
|
}
|
|
|
|
const uint32_t rtcCount = textContainers.Length();
|
|
|
|
|
2014-11-25 20:52:50 -08:00
|
|
|
nsHTMLReflowMetrics baseMetrics(aReflowState);
|
|
|
|
bool pushedFrame;
|
2014-11-25 20:52:50 -08:00
|
|
|
aReflowState.mLineLayout->ReflowFrame(aBaseContainer, aStatus,
|
2014-11-25 20:52:50 -08:00
|
|
|
&baseMetrics, pushedFrame);
|
|
|
|
|
2014-11-25 20:52:50 -08:00
|
|
|
if (NS_INLINE_IS_BREAK_BEFORE(aStatus)) {
|
|
|
|
if (aBaseContainer != mFrames.FirstChild()) {
|
|
|
|
// Some segments may have been reflowed before, hence it is not
|
|
|
|
// a break-before for the ruby container.
|
|
|
|
aStatus = NS_INLINE_LINE_BREAK_AFTER(NS_FRAME_NOT_COMPLETE);
|
|
|
|
PushChildren(aBaseContainer, aBaseContainer->GetPrevSibling());
|
|
|
|
aReflowState.mLineLayout->SetDirtyNextLine();
|
|
|
|
}
|
|
|
|
// This base container is not placed at all, we can skip all
|
|
|
|
// text containers paired with it.
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (NS_FRAME_IS_NOT_COMPLETE(aStatus)) {
|
|
|
|
// It always promise that if the status is incomplete, there is a
|
|
|
|
// break occurs. Break before has been processed above. However,
|
|
|
|
// it is possible that break after happens with the frame reflow
|
|
|
|
// completed. It happens if there is a force break at the end.
|
|
|
|
MOZ_ASSERT(NS_INLINE_IS_BREAK_AFTER(aStatus));
|
|
|
|
// Find the previous sibling which we will
|
|
|
|
// insert new continuations after.
|
|
|
|
nsIFrame* lastChild;
|
|
|
|
if (rtcCount > 0) {
|
|
|
|
lastChild = textContainers.LastElement();
|
|
|
|
} else {
|
|
|
|
lastChild = aBaseContainer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Create continuations for the base container
|
|
|
|
nsIFrame* newBaseContainer;
|
|
|
|
CreateNextInFlow(aBaseContainer, newBaseContainer);
|
|
|
|
// newBaseContainer is null if there are existing next-in-flows.
|
|
|
|
// We only need to move and push if there were not.
|
|
|
|
if (newBaseContainer) {
|
|
|
|
// Move the new frame after all the text containers
|
|
|
|
mFrames.RemoveFrame(newBaseContainer);
|
|
|
|
mFrames.InsertFrame(nullptr, lastChild, newBaseContainer);
|
|
|
|
|
|
|
|
// Create continuations for text containers
|
|
|
|
nsIFrame* newLastChild = newBaseContainer;
|
|
|
|
for (uint32_t i = 0; i < rtcCount; i++) {
|
|
|
|
nsIFrame* newTextContainer;
|
|
|
|
CreateNextInFlow(textContainers[i], newTextContainer);
|
|
|
|
MOZ_ASSERT(newTextContainer, "Next-in-flow of rtc should not exist "
|
|
|
|
"if the corresponding rbc does not");
|
|
|
|
mFrames.RemoveFrame(newTextContainer);
|
|
|
|
mFrames.InsertFrame(nullptr, newLastChild, newTextContainer);
|
|
|
|
newLastChild = newTextContainer;
|
|
|
|
}
|
|
|
|
PushChildren(newBaseContainer, lastChild);
|
|
|
|
aReflowState.mLineLayout->SetDirtyNextLine();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// If the ruby base container is reflowed completely, the line
|
|
|
|
// layout will remove the next-in-flows of that frame. But the
|
|
|
|
// line layout is not aware of the ruby text containers, hence
|
|
|
|
// it is necessary to remove them here.
|
|
|
|
for (uint32_t i = 0; i < rtcCount; i++) {
|
|
|
|
nsIFrame* nextRTC = textContainers[i]->GetNextInFlow();
|
|
|
|
if (nextRTC) {
|
|
|
|
nextRTC->GetParent()->DeleteNextInFlowChild(nextRTC, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-25 20:52:50 -08:00
|
|
|
nsRect baseRect = aBaseContainer->GetRect();
|
2014-11-25 20:52:50 -08:00
|
|
|
for (uint32_t i = 0; i < rtcCount; i++) {
|
|
|
|
nsRubyTextContainerFrame* textContainer = textContainers[i];
|
2014-11-25 20:52:50 -08:00
|
|
|
nsReflowStatus textReflowStatus;
|
|
|
|
nsHTMLReflowMetrics textMetrics(aReflowState);
|
|
|
|
nsHTMLReflowState textReflowState(aPresContext, aReflowState,
|
|
|
|
textContainer, availSize);
|
2014-11-25 20:52:50 -08:00
|
|
|
// FIXME We probably shouldn't be using the same nsLineLayout for
|
|
|
|
// the text containers. But it should be fine now as we are
|
|
|
|
// not actually using this line layout to reflow something,
|
|
|
|
// but just read the writing mode from it.
|
2014-11-25 20:52:50 -08:00
|
|
|
textReflowState.mLineLayout = aReflowState.mLineLayout;
|
|
|
|
textContainer->Reflow(aPresContext, textMetrics,
|
|
|
|
textReflowState, textReflowStatus);
|
2014-11-25 20:52:50 -08:00
|
|
|
// Ruby text containers always return NS_FRAME_COMPLETE even when
|
|
|
|
// they have continuations, because the breaking has already been
|
|
|
|
// handled when reflowing the base containers.
|
2014-11-25 20:52:50 -08:00
|
|
|
NS_ASSERTION(textReflowStatus == NS_FRAME_COMPLETE,
|
2014-11-25 20:52:50 -08:00
|
|
|
"Ruby text container must not break itself inside");
|
2014-11-25 20:52:50 -08:00
|
|
|
textContainer->SetSize(LogicalSize(lineWM, textMetrics.ISize(lineWM),
|
|
|
|
textMetrics.BSize(lineWM)));
|
|
|
|
nscoord x, y;
|
|
|
|
nscoord bsize = textMetrics.BSize(lineWM);
|
|
|
|
if (lineWM.IsVertical()) {
|
|
|
|
x = lineWM.IsVerticalLR() ? -bsize : baseRect.XMost();
|
|
|
|
y = baseRect.Y();
|
|
|
|
} else {
|
|
|
|
x = baseRect.X();
|
|
|
|
y = -bsize;
|
|
|
|
}
|
|
|
|
FinishReflowChild(textContainer, aPresContext, textMetrics,
|
|
|
|
&textReflowState, x, y, 0);
|
|
|
|
}
|
|
|
|
}
|
2014-11-25 20:52:50 -08:00
|
|
|
|
|
|
|
nsRubyBaseContainerFrame*
|
|
|
|
nsRubyFrame::PullOneSegment(ContinuationTraversingState& aState)
|
|
|
|
{
|
|
|
|
// Pull a ruby base container
|
|
|
|
nsIFrame* baseFrame = PullNextInFlowChild(aState);
|
|
|
|
if (!baseFrame) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
MOZ_ASSERT(baseFrame->GetType() == nsGkAtoms::rubyBaseContainerFrame);
|
|
|
|
|
|
|
|
// Pull all ruby text containers following the base container
|
|
|
|
nsIFrame* nextFrame;
|
|
|
|
while ((nextFrame = GetNextInFlowChild(aState)) != nullptr &&
|
|
|
|
nextFrame->GetType() == nsGkAtoms::rubyTextContainerFrame) {
|
|
|
|
PullNextInFlowChild(aState);
|
|
|
|
}
|
|
|
|
|
|
|
|
return static_cast<nsRubyBaseContainerFrame*>(baseFrame);
|
|
|
|
}
|