#include "cr-stylesheet.h"
Go to the source code of this file.
Data Structures | |
struct | CRCascade |
An abstraction of the "Cascade" defined in the css2 spec, chapter 6.4. More... | |
Functions | |
CRCascade * | cr_cascade_new (CRStyleSheet *a_author_sheet, CRStyleSheet *a_user_sheet, CRStyleSheet *a_ua_sheet) |
Constructor of the CRCascade class. | |
CRStyleSheet * | cr_cascade_get_sheet (CRCascade *a_this, enum CRStyleOrigin a_origin) |
Gets a given origin sheet. | |
enum CRStatus | cr_cascade_set_sheet (CRCascade *a_this, CRStyleSheet *a_sheet, enum CRStyleOrigin a_origin) |
Sets a stylesheet in the cascade. | |
void | cr_cascade_destroy (CRCascade *a_this) |
Destructor of CRCascade. | |
Variables | |
typedefG_BEGIN_DECLS struct _CRCascadePriv | CRCascadePriv |
Definition in file cr-cascade.h.
|
Destructor of CRCascade.
Definition at line 162 of file cr-cascade.c. References cr_stylesheet_unref(), NB_ORIGINS, and PRIVATE. Referenced by cr_box_view_new_from_xml_css_bufs(). |
|
Gets a given origin sheet. Note that the returned stylesheet is refcounted so if the caller wants to manage it's lifecycle, it must use cr_stylesheet_ref()/cr_stylesheet_unref() instead of the cr_stylesheet_destroy() method.
Definition at line 117 of file cr-cascade.c. References NB_ORIGINS, ORIGIN_UA, and PRIVATE. Referenced by cr_sel_eng_get_matched_properties_from_cascade(). |
|
Constructor of the CRCascade class. Note that all three parameters of this method are ref counted and their refcount is increased. Their refcount will be decreased at the destruction of the instance of CRCascade. So the caller should not call their destructor. The caller should call their ref/unref method instead if it wants
Definition at line 62 of file cr-cascade.c. References cr_cascade_set_sheet(), cr_utils_trace_info, CRCascadePriv, ORIGIN_AUTHOR, ORIGIN_UA, ORIGIN_USER, and PRIVATE. Referenced by cr_box_view_new_from_xml_css_bufs(). |
|
Sets a stylesheet in the cascade.
Definition at line 138 of file cr-cascade.c. References CR_BAD_PARAM_ERROR, CR_OK, cr_stylesheet_ref(), cr_stylesheet_unref(), NB_ORIGINS, _CRStyleSheet::origin, ORIGIN_UA, and PRIVATE. Referenced by cr_cascade_new(). |
|
Definition at line 42 of file cr-cascade.h. Referenced by cr_cascade_new(). |