NetSurf
Macros | Functions
dump.c File Reference
#include <stdio.h>
#include <libcss/libcss.h>
#include "netsurf/inttypes.h"
#include "css/dump.h"
#include "css/utils.h"
Include dependency graph for dump.c:

Go to the source code of this file.

Macros

#define NSCSS_ABS(x)   (uint32_t)((x) < 0 ? -(x) : (x))
 

Functions

static void dump_css_fixed (FILE *stream, css_fixed f)
 Dump a fixed point value to the stream in a textual form. More...
 
static void dump_css_number (FILE *stream, css_fixed val)
 Dump a numeric value to the stream in a textual form. More...
 
static void dump_css_unit (FILE *stream, css_fixed val, css_unit unit)
 Dump a dimension to the stream in a textual form. More...
 
void nscss_dump_computed_style (FILE *stream, const css_computed_style *style)
 Dump a computed style style to the give file handle stream. More...
 

Macro Definition Documentation

◆ NSCSS_ABS

#define NSCSS_ABS (   x)    (uint32_t)((x) < 0 ? -(x) : (x))

Function Documentation

◆ dump_css_fixed()

static void dump_css_fixed ( FILE *  stream,
css_fixed  f 
)
static

Dump a fixed point value to the stream in a textual form.

Parameters
streamStream to write to
fValue to write

Definition at line 33 of file dump.c.

References NSCSS_ABS.

Referenced by dump_css_number(), and nscss_dump_computed_style().

Here is the caller graph for this function:

◆ dump_css_number()

static void dump_css_number ( FILE *  stream,
css_fixed  val 
)
static

Dump a numeric value to the stream in a textual form.

Parameters
streamStream to write to
valValue to write

Definition at line 50 of file dump.c.

References dump_css_fixed().

Referenced by dump_css_unit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_css_unit()

static void dump_css_unit ( FILE *  stream,
css_fixed  val,
css_unit  unit 
)
static

Dump a dimension to the stream in a textual form.

Parameters
streamStream to write to
valValue to write
unitUnit to write

Definition at line 65 of file dump.c.

References dump_css_number().

Referenced by nscss_dump_computed_style().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nscss_dump_computed_style()

void nscss_dump_computed_style ( FILE *  stream,
const css_computed_style *  style 
)

Dump a computed style style to the give file handle stream.

Parameters
streamStream to write to
styleComputed style to dump

Definition at line 152 of file dump.c.

References dump_css_fixed(), dump_css_unit(), ns_computed_display_static(), ns_computed_min_height(), ns_computed_min_width(), and content::string.

Referenced by box_dump().

Here is the call graph for this function:
Here is the caller graph for this function: