X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=style_sheets.hpp;h=66670e6ce5da3f519abbf7dad585a739bdddf171;hp=ef4aef34b7852a49292f2bd9ae70627763e289fe;hb=HEAD;hpb=095c46b0de5edd5ae14b4e311d54c723eb73e11f diff --git a/style_sheets.hpp b/style_sheets.hpp index ef4aef3..66670e6 100644 --- a/style_sheets.hpp +++ b/style_sheets.hpp @@ -1,37 +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; - -// These functions load and apply a style-sheet as necessary, -// overriding the built-in "preferences". - -// init_agent_style_sheet() must be called once during startup -// apply_agent_style_sheet() must be called for each page - -#if MOZ_VERSION_MAJOR > 1 || (MOZ_VERSION_MAJOR == 1 && MOZ_VERSION_MINOR >= 8) - -struct agent_style_sheet_holder {}; - -// Load agent style sheet from an (absolute) URI, and register it if -// possible. -agent_style_sheet_holder init_agent_style_sheet(const char * uri); -inline void apply_agent_style_sheet(agent_style_sheet_holder, nsIPresShell *) -{} - -#else - -typedef nsCOMPtr agent_style_sheet_holder; -already_AddRefed init_agent_style_sheet(const char * uri); -void apply_agent_style_sheet(nsIStyleSheet *, nsIPresShell *); - -#endif - +// Load agent style sheet from an (absolute) URI and register it. +void init_agent_style_sheet(const char * uri); #endif // !INC_STYLESHEETS_HPP