NetSurf
Functions
internal.c File Reference
#include <string.h>
#include <libcss/libcss.h>
#include "utils/nsurl.h"
#include "css/internal.h"
Include dependency graph for internal.c:

Go to the source code of this file.

Functions

css_error nscss_resolve_url (void *pw, const char *base, lwc_string *rel, lwc_string **abs)
 URL resolution callback for libcss. More...
 

Function Documentation

◆ nscss_resolve_url()

css_error nscss_resolve_url ( void *  pw,
const char *  base,
lwc_string *  rel,
lwc_string **  abs 
)

URL resolution callback for libcss.

Parameters
pwResolution context
baseBase URI
relRelative URL
absPointer to location to receive resolved URL
Returns
CSS_OK on success, CSS_NOMEM on memory exhaustion, CSS_INVALID if resolution failed.

Definition at line 27 of file internal.c.

References base, NSERROR_NOMEM, NSERROR_OK, nsurl_access(), nsurl_create(), nsurl_join(), nsurl_length(), and nsurl_unref().

Referenced by nscss_create_css_data(), nscss_create_inline_style(), and nscss_register_import().

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