NetSurf
Data Structures | Functions
css.h File Reference
#include <stdint.h>
#include <libcss/libcss.h>
#include "utils/errors.h"
Include dependency graph for css.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nscss_import
 Imported stylesheet record. More...
 

Functions

nserror nscss_init (void)
 Initialise the CSS content handler. More...
 
css_stylesheet * nscss_get_stylesheet (struct hlcache_handle *h)
 Retrieve the stylesheet object associated with a CSS content. More...
 
struct nscss_importnscss_get_imports (struct hlcache_handle *h, uint32_t *n)
 Retrieve imported stylesheets. More...
 

Function Documentation

◆ nscss_get_imports()

struct nscss_import * nscss_get_imports ( struct hlcache_handle h,
uint32_t *  n 
)

Retrieve imported stylesheets.

Parameters
hStylesheet containing imports
nPointer to location to receive number of imports
Returns
Pointer to array of imported stylesheets

Definition at line 447 of file css.c.

References nscss_import::c, and hlcache_handle_get_content().

Referenced by save_complete_save_stylesheet().

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

◆ nscss_get_stylesheet()

css_stylesheet * nscss_get_stylesheet ( struct hlcache_handle h)

Retrieve the stylesheet object associated with a CSS content.

Parameters
hStylesheet content
Returns
Pointer to stylesheet object

Definition at line 437 of file css.c.

References nscss_content::data, hlcache_handle_get_content(), and content_css_data::sheet.

Referenced by html_css_new_selection_context().

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

◆ nscss_init()

nserror nscss_init ( void  )

Initialise the CSS content handler.

Returns
NSERROR_OK on success or error code on faliure

Definition at line 816 of file css.c.

References content_factory_register_handler(), css_content_handler, css_hint_init(), nscss_fini(), and NSERROR_OK.

Referenced by netsurf_init().

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