~midori/midori/trunk

« back to all changes in this revision

Viewing changes to midori/midori-tab.vala

  • Committer: RabbitBot
  • Author(s): Paweł Forysiuk
  • Date: 2014-03-20 20:30:46 UTC
  • mfrom: (6604.2.5 adblock-buglets)
  • Revision ID: rabbitbot-20140320203046-atne7161oe2j9o1n
Small adblock bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        public void inject_stylesheet (string stylesheet) {
129
129
#if !HAVE_WEBKIT2
130
130
            var dom = web_view.get_dom_document ();
 
131
            return_if_fail (dom.head != null);
131
132
            try {
132
133
                var style = dom.create_element ("style");
133
134
                style.set_attribute ("type", "text/css");
134
135
                style.append_child (dom.create_text_node (stylesheet));
135
 
                return_if_fail (dom.head != null);
136
136
                dom.head.append_child (style);
137
137
            }
138
138
            catch (Error error) {