get_parent


Description:

public unowned CssSection? get_parent ()

Gets the parent section for the given this.

The parent section is the section that contains this this. A special case are sections of type DOCUMENT. Their parent will either be null if they are the original CSS document that was loaded by load_from_file or a section of type IMPORT if it was loaded with an import rule from a different file.

Parameters:

this

the section

Returns:

the parent section or null if none