X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=style_sheets.hpp;h=66670e6ce5da3f519abbf7dad585a739bdddf171;hp=bb39b2286f03b98d369ebc4107917ee9f670ab69;hb=HEAD;hpb=c5f98ff303d670f72a5d491a5f4e1989d2043219;ds=sidebyside diff --git a/style_sheets.hpp b/style_sheets.hpp index bb39b22..66670e6 100644 --- a/style_sheets.hpp +++ b/style_sheets.hpp @@ -1,20 +1,10 @@ -// Copyright 2005 Ben Hutchings . +// Copyright 2005-6 Ben Hutchings . // See the file "COPYING" for licence details. #ifndef INC_STYLESHEETS_HPP #define INC_STYLESHEETS_HPP -#include -#include - -class nsIPresShell; - -// Load a CSS from an (absolute) URI. -// TODO: Support loading from an absolute, or better, relative filename. -already_AddRefed load_css(const char * uri); - -// Apply a style-sheet to a given presentation shell as the top-priority -// agent style-sheet and disable the preferences-derived style rules. -void apply_style_sheet(nsIStyleSheet *, nsIPresShell *); +// Load agent style sheet from an (absolute) URI and register it. +void init_agent_style_sheet(const char * uri); #endif // !INC_STYLESHEETS_HPP