Пример #1
0
nsresult
nsBox::BeginLayout(nsBoxLayoutState& aState)
{
#ifdef DEBUG_LAYOUT 

  nsBoxAddIndents();
  printf("Layout: ");
  DumpBox(stdout);
  printf("\n");
  gIndent++;
#endif

  // mark ourselves as dirty so no child under us
  // can post an incremental layout.
  // XXXldb Is this still needed?
  mState |= NS_FRAME_HAS_DIRTY_CHILDREN;

  if (GetStateBits() & NS_FRAME_IS_DIRTY)
  {
    // If the parent is dirty, all the children are dirty (nsHTMLReflowState
    // does this too).
    nsIFrame* box;
    for (box = GetChildBox(); box; box = box->GetNextBox())
      box->AddStateBits(NS_FRAME_IS_DIRTY);
  }


#ifdef DEBUG_LAYOUT
  PropagateDebug(aState);
#endif

  return NS_OK;
}
Пример #2
0
GF_Err vtte_dump(GF_Box *a, FILE * trace)
{
	fprintf(trace, "<WebVTTEmptyCueBox>\n");
	DumpBox(a, trace);
	gf_box_dump_done("WebVTTEmptyCueBox", a, trace);
	return GF_OK;
}
Пример #3
0
GF_Err boxstring_dump(GF_Box *a, FILE * trace)
{
	GF_StringBox *sbox = (GF_StringBox *)a;
	fprintf(trace, "<StringBox string=\"%s\">\n", sbox->string);
	DumpBox(a, trace);
	gf_box_dump_done("StringBox", a, trace);
	return GF_OK;
}
Пример #4
0
GF_Err wvtt_dump(GF_Box *a, FILE * trace)
{
	GF_WebVTTSampleEntryBox *cuebox = (GF_WebVTTSampleEntryBox *)a;
	fprintf(trace, "<WebVTTSampleEntryBox>\n");
	DumpBox(a, trace);
	if (cuebox->config) boxstring_dump((GF_Box *)cuebox->config, trace);
	gf_box_dump_done("WebVTTSampleEntryBox", a, trace);
	return GF_OK;
}
Пример #5
0
GF_Err vtcu_dump(GF_Box *a, FILE * trace)
{
    GF_VTTCueBox *cuebox = (GF_VTTCueBox *)a;
    fprintf(trace, "<WebVTTCueBox>\n");
    DumpBox(a, trace);
    if (cuebox->id) boxstring_dump((GF_Box *)cuebox->id, trace);
    if (cuebox->settings) boxstring_dump((GF_Box *)cuebox->settings, trace);
    if (cuebox->payload) boxstring_dump((GF_Box *)cuebox->payload, trace);
    gf_box_dump_done("WebVTTCueBox", a, trace);
    return GF_OK;
}