コード例 #1
0
ファイル: nsMathMLmoFrame.cpp プロジェクト: L2-D2/gecko-dev
void
nsMathMLmoFrame::SetInitialChildList(ChildListID     aListID,
                                     nsFrameList&    aChildList)
{
  // First, let the parent class do its work
  nsMathMLTokenFrame::SetInitialChildList(aListID, aChildList);
  ProcessTextData();
}
コード例 #2
0
/* virtual */ void
nsMathMLTokenFrame::MarkIntrinsicWidthsDirty()
{
    // this could be called due to changes in the nsTextFrame beneath us
    // when something changed in the text content. So re-process our text
    ProcessTextData();

    nsMathMLContainerFrame::MarkIntrinsicWidthsDirty();
}
コード例 #3
0
ファイル: nsMathMLmoFrame.cpp プロジェクト: L2-D2/gecko-dev
NS_IMETHODIMP
nsMathMLmoFrame::InheritAutomaticData(nsIFrame* aParent)
{
  // retain our native direction, it only changes if our text content changes
  nsStretchDirection direction = mEmbellishData.direction;
  nsMathMLTokenFrame::InheritAutomaticData(aParent);
  ProcessTextData();
  mEmbellishData.direction = direction;
  return NS_OK;
}
コード例 #4
0
NS_IMETHODIMP
nsMathMLTokenFrame::InheritAutomaticData(nsIFrame* aParent)
{
    // let the base class get the default from our parent
    nsMathMLContainerFrame::InheritAutomaticData(aParent);

    ProcessTextData();

    return NS_OK;
}
コード例 #5
0
ファイル: nsMathMLmoFrame.cpp プロジェクト: elefant/gecko-dev
nsresult
nsMathMLmoFrame::SetInitialChildList(ChildListID     aListID,
                                     nsFrameList&    aChildList)
{
  // First, let the parent class do its work
  nsresult rv = nsMathMLTokenFrame::SetInitialChildList(aListID, aChildList);
  if (NS_FAILED(rv))
    return rv;

  ProcessTextData();
  return rv;
}
コード例 #6
0
NS_IMETHODIMP
nsMathMLTokenFrame::SetInitialChildList(ChildListID     aListID,
                                        nsFrameList&    aChildList)
{
    // First, let the base class do its work
    nsresult rv = nsMathMLContainerFrame::SetInitialChildList(aListID, aChildList);
    if (NS_FAILED(rv))
        return rv;

    SetQuotes(false);
    ProcessTextData();
    return rv;
}
コード例 #7
0
/* virtual */ void
nsMathMLmoFrame::MarkIntrinsicWidthsDirty()
{
  // if we get this, it may mean that something changed in the text
  // content. So blow away everything an re-build the automatic data
  // from the parent of our outermost embellished container (we ensure
  // that we are the core, not just a sibling of the core)

  ProcessTextData();

  nsIFrame* target = this;
  nsEmbellishData embellishData;
  do {
    target = target->GetParent();
    GetEmbellishDataFrom(target, embellishData);
  } while (embellishData.coreFrame == this);

  // we have automatic data to update in the children of the target frame
  // XXXldb This should really be marking dirty rather than rebuilding
  // so that we don't rebuild multiple times for the same change.
  RebuildAutomaticDataForChildren(target);

  nsMathMLContainerFrame::MarkIntrinsicWidthsDirty();
}