Codebase list dillo / upstream/3.0.4
Imported Upstream version 3.0.4 Axel Beckert 10 years ago
25 changed file(s) with 167 addition(s) and 104 deletion(s). Raw diff Collapse all Expand all
66 at http://hg.dillo.org/dillo
77
88
9 dillo-3.0.4 [not released yet]
9 dillo-3.0.4 [April 09, 2014]
1010
1111 +- OPTGROUP and INS elements.
1212 - Some HTML5 elements, etc.
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
694694 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
695695 && am__cwd=`pwd` \
696696 && $(am__cd) $(distdir)/_build \
697 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
697 && ../configure \
698698 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
699699 $(DISTCHECK_CONFIGURE_FLAGS) \
700 --srcdir=.. --prefix="$$dc_install_base" \
700701 && $(MAKE) $(AM_MAKEFLAGS) \
701702 && $(MAKE) $(AM_MAKEFLAGS) dvi \
702703 && $(MAKE) $(AM_MAKEFLAGS) check \
4141
4242 dillo-3.0.3, a new release for the new 3.x series is out.
4343
44 Apr 2014
45
46 dillo-3.0.4, a new release for the new 3.x series is out.
47
48
4449 Jorge.-
4550 jcid@dillo.org
4651 Project maintainer, core developer, patcher, you name it! :-)
2626 Here's a list of some old well-known problems of dillo:
2727
2828 * no FRAMES rendering
29 * no https (there's a barebones prototype).
29 * no https (there's a barebones prototype, enable it with:
30 ./configure --enable-ssl ).
3031
3132
3233 --------
5152 Dillo3
5253 ------
5354
54 tar jxvf dillo-3.0.3.tar.bz2
55 cd dillo-3.0.3
55 tar jxvf dillo-3.0.4.tar.bz2
56 cd dillo-3.0.4
5657 ./configure; make
5758 sudo make install-strip
5859
104105
105106 Jorge.-
106107 (jcid@dillo.org)
107 April, 2013
108 April, 2014
0 # generated automatically by aclocal 1.14 -*- Autoconf -*-
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
11
22 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
33
3434 [am__api_version='1.14'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.14], [],
37 m4_if([$1], [1.14.1], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.14])dnl
53 [AM_AUTOMAKE_VERSION([1.14.1])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
572572 END
573573 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
574574 fi
575 fi])
575 fi
576 ])
576577
577578 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
578579 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
11 # Attempt to guess a canonical system name.
22 # Copyright 1992-2013 Free Software Foundation, Inc.
33
4 timestamp='2013-05-16'
4 timestamp='2013-06-10'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
809809 exit ;;
810810 *:FreeBSD:*:*)
811811 UNAME_PROCESSOR=`/usr/bin/uname -p`
812 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
812 case ${UNAME_PROCESSOR} in
813 amd64)
814 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
815 *)
816 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
817 esac
813818 exit ;;
814819 i*:CYGWIN*:*)
815820 echo ${UNAME_MACHINE}-pc-cygwin
988993 exit ;;
989994 ppc:Linux:*:*)
990995 echo powerpc-unknown-linux-${LIBC}
996 exit ;;
997 ppc64le:Linux:*:*)
998 echo powerpc64le-unknown-linux-${LIBC}
999 exit ;;
1000 ppcle:Linux:*:*)
1001 echo powerpcle-unknown-linux-${LIBC}
9911002 exit ;;
9921003 s390:Linux:*:* | s390x:Linux:*:*)
9931004 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
11 # Configuration validation subroutine script.
22 # Copyright 1992-2013 Free Software Foundation, Inc.
33
4 timestamp='2013-04-24'
4 timestamp='2013-08-10'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
256256 | avr | avr32 \
257257 | be32 | be64 \
258258 | bfin \
259 | c4x | clipper \
259 | c4x | c8051 | clipper \
260260 | d10v | d30v | dlx | dsp16xx \
261261 | epiphany \
262262 | fido | fr30 | frv \
365365 | aarch64-* | aarch64_be-* \
366366 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
367367 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | amd64-* | arc-* | arceb-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
369369 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
370370 | avr-* | avr32-* \
371371 | be32-* | be64-* \
372372 | bfin-* | bs2000-* \
373373 | c[123]* | c30-* | [cjt]90-* | c4x-* \
374 | clipper-* | craynv-* | cydra-* \
374 | c8051-* | clipper-* | craynv-* | cydra-* \
375375 | d10v-* | d30v-* | dlx-* \
376376 | elxsi-* \
377377 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
472472 basic_machine=a29k-none
473473 os=-bsd
474474 ;;
475 amd64)
476 basic_machine=x86_64-pc
477 ;;
478 amd64-*)
479 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
480 ;;
475481 amdahl)
476482 basic_machine=580-amdahl
477483 os=-sysv
787793 os=-mingw64
788794 ;;
789795 mingw32)
790 basic_machine=i386-pc
796 basic_machine=i686-pc
791797 os=-mingw32
792798 ;;
793799 mingw32ce)
823829 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
824830 ;;
825831 msys)
826 basic_machine=i386-pc
832 basic_machine=i686-pc
827833 os=-msys
828834 ;;
829835 mvs)
15391545 c4x-* | tic4x-*)
15401546 os=-coff
15411547 ;;
1548 c8051-*)
1549 os=-elf
1550 ;;
15421551 hexagon-*)
15431552 os=-elf
15441553 ;;
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for dillo 3.0.4-rc1.
2 # Generated by GNU Autoconf 2.69 for dillo 3.0.4.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
576576 # Identity of this package.
577577 PACKAGE_NAME='dillo'
578578 PACKAGE_TARNAME='dillo'
579 PACKAGE_VERSION='3.0.4-rc1'
580 PACKAGE_STRING='dillo 3.0.4-rc1'
579 PACKAGE_VERSION='3.0.4'
580 PACKAGE_STRING='dillo 3.0.4'
581581 PACKAGE_BUGREPORT=''
582582 PACKAGE_URL=''
583583
13111311 # Omit some internal or obsolete options to make the list less imposing.
13121312 # This message is too long to be a string in the A/UX 3.1 sh.
13131313 cat <<_ACEOF
1314 \`configure' configures dillo 3.0.4-rc1 to adapt to many kinds of systems.
1314 \`configure' configures dillo 3.0.4 to adapt to many kinds of systems.
13151315
13161316 Usage: $0 [OPTION]... [VAR=VALUE]...
13171317
13821382
13831383 if test -n "$ac_init_help"; then
13841384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of dillo 3.0.4-rc1:";;
1385 short | recursive ) echo "Configuration of dillo 3.0.4:";;
13861386 esac
13871387 cat <<\_ACEOF
13881388
14921492 test -n "$ac_init_help" && exit $ac_status
14931493 if $ac_init_version; then
14941494 cat <<\_ACEOF
1495 dillo configure 3.0.4-rc1
1495 dillo configure 3.0.4
14961496 generated by GNU Autoconf 2.69
14971497
14981498 Copyright (C) 2012 Free Software Foundation, Inc.
22502250 This file contains any messages produced by compilers while
22512251 running configure, to aid debugging if configure makes a mistake.
22522252
2253 It was created by dillo $as_me 3.0.4-rc1, which was
2253 It was created by dillo $as_me 3.0.4, which was
22542254 generated by GNU Autoconf 2.69. Invocation command line was
22552255
22562256 $ $0 $@
32253225
32263226 # Define the identity of the package.
32273227 PACKAGE='dillo'
3228 VERSION='3.0.4-rc1'
3228 VERSION='3.0.4'
32293229
32303230
32313231 cat >>confdefs.h <<_ACEOF
33173317 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
33183318 fi
33193319 fi
3320
33203321
33213322 ac_config_headers="$ac_config_headers config.h"
33223323
72747275 # report actual input values of CONFIG_FILES etc. instead of their
72757276 # values after options handling.
72767277 ac_log="
7277 This file was extended by dillo $as_me 3.0.4-rc1, which was
7278 This file was extended by dillo $as_me 3.0.4, which was
72787279 generated by GNU Autoconf 2.69. Invocation command line was
72797280
72807281 CONFIG_FILES = $CONFIG_FILES
73407341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73417342 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
73427343 ac_cs_version="\\
7343 dillo config.status 3.0.4-rc1
7344 dillo config.status 3.0.4
73447345 configured by $0, generated by GNU Autoconf 2.69,
73457346 with options \\"\$ac_cs_config\\"
73467347
00 dnl Process this file with aclocal, autoconf and automake.
11
2 AC_INIT([dillo], [3.0.4-rc1])
2 AC_INIT([dillo], [3.0.4])
33
44 dnl Detect the canonical target build environment
55 AC_CANONICAL_TARGET
1818 # menu.)
1919 #load_images=YES
2020
21 # Change this if you do not want background images to be loaded initially.
21 # Change this if you want background images to be loaded initially.
2222 # (While browsing, this can be changed from the tools/settings menu.)
23 #load_background_images=YES
23 #load_background_images=FALSE
2424
2525 # Change this if you want to disable loading of CSS stylesheets initially.
2626 # (While browsing, this can be changed from the tools/settings menu.)
153153
154154 # Set the URLs used by the web search dialog.
155155 # "%s" is replaced with the search keywords separated by '+'.
156 # Format: search_url="[<label> ]<url>"
156 # Format: search_url="[prefix ][<label> ]<url>"
157157 # You can enable multiple search_url strings at once and select from among
158158 # them at runtime, with the first being the default.
159 search_url="DuckDuckGo http://duckduckgo.com/lite/?kp=-1&q=%s"
159 # (the prefix serves to search from the Location Bar. e.g. "dd dillo image")
160 search_url="dd DuckDuckGo http://duckduckgo.com/lite/?kp=-1&q=%s"
160161 search_url="Wikipedia http://www.wikipedia.org/w/index.php?search=%s&go=Go"
161162 search_url="Free Dictionary http://www.thefreedictionary.com/%s"
162163 search_url="Google http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=%s"
168169 # (by default, no Accept-Language header is sent)
169170 # http_language="de"
170171 # http_language="pt-BR"
171 # http_language="vi,de-CH,de;q=0.5,th;q=0.3"
172 # http_language="en-US,en;q=0.5"
172173
173174 # Maximum number of simultaneous TCP connections to a single server or proxy.
174175 # http_max_conns=6
208209 #
209210 # See http://zytrax.com/tech/web/browser_ids.htm for a compilation of strings.
210211 #
211 # http_user_agent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0"
212 # http_user_agent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0"
212213 # http_user_agent="Wget/1.13.4 (linux-gnu)"
213214 #The default is "Dillo/"+current_version_number
214215
242243 # old GTK/KDE".
243244 # "plastic" "is inspired by the Aqua user interface on Mac OS X".
244245 # "gtk+" "is inspired by the Red Hat Bluecurve theme".
246 #
247 # Once fltk-1.3.3 is released, you will be able to specify "gleam", which
248 # is "a sort of Clearlooks Glossy scheme". ("fltk-config --version")
245249 #theme=none
246250 # theme=gtk+
247251 # theme=plastic
278282 #
279283 ui_fg_color=black
280284 ui_main_bg_color=#c6c6c6
281 ui_text_bg_color=bfdabf
285 ui_text_bg_color=#bfdabf
282286 ui_selection_color=#191970
283287 ui_button_highlight_color=#a9a9a9
284288 ui_tab_active_bg_color=#87aca7
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
298298 <p>
299299 The Bug meter is located at the lower right corner of
300300 Dillo. Left-click to see the messages, right-click for a menu.
301 </td></tr>
302 </table>
303
304 <table WIDTH="100%" BORDER=1 CELLSPACING=0 CELLPADDING=3>
305 <tr ALIGN=LEFT VALIGN=TOP><td bgcolor="wheat">
306 <h4><font color="green">Web search from the Location bar:</font></h4>
307 </td></tr>
308 <tr><td bgcolor="#70a0c0">
309 <p>
310 Besides the GUI, you can also use the location bar as a CLI for quick
311 web search. You can specify a prefix in <b><font color="#5040a0">dillorc</font></b>
312 for each search engine and use it from the location bar.
313 <p>
314 Example, in dillorc:<br>
315 <blockquote>
316 <code>search_url="dd Duckduckgo http://duckduckgo.com/lite/?kp=-1&q=%s"</code>
317 </blockquote>
318 means you can reach the location bar (CTRL+L), then type:
319 <blockquote>
320 <code>dd dillo browser</code>
321 </blockquote>
322 to web-search with Duckduckgo for the keywords: <code>dillo browser</code>.
301323 </td></tr>
302324 </table>
303325
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2012-06-26.16; # UTC
3 scriptversion=2013-10-28.13; # UTC
44
55 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
159159 ;;
160160 autom4te*)
161161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' program to be rebuilt."
162 echo "the 'autom4te' program to be rebuilt."
163163 program_details 'autom4te'
164164 ;;
165165 bison*|yacc*)
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
229229 "<tr>\n"
230230 " <td bgcolor='#CCCCCC'>\n"
231231 " <h4>Release overview</h4>\n"
232 " April 17, 2013\n"
232 " April 09, 2014\n"
233233 "<tr>\n"
234234 " <td bgcolor='#FFFFFF'>\n"
235235 " <table border='0' cellspacing='0' cellpadding='5'>\n"
236236 " <tr>\n"
237237 " <td>\n"
238238 "<p>\n"
239 "dillo-3.0.3 adds some nice new features, as listed below.\n"
240 "<p>\n"
241 "This release comes with <b>configurable UI colors</b> in\n"
242 "<a href='http://www.dillo.org/dillorc'>dillorc</a>.\n"
243 "Packagers should set the theme that better fits the distro, and\n"
244 "end users may tweak freely if they like!\n"
245 "<p>\n"
246 "In order to use the <b>hyphenation</b> feature, pattern files from CTAN\n"
247 "need to be installed. Most probably your packager did it for you. If not\n"
248 "enabled, just follow directions from the README file.\n"
249 "<p>\n"
250 "A new <a href='http://www.dillo.org/domainrc'>domainrc</a> mechanism has\n"
251 "been introduced to provide finer-grained control over automatic requests\n"
252 "for third-party resources, and the old filter_auto_requests dillorc option\n"
253 "has been removed. This makes it easier to block ads and trackers but permit\n"
254 "legitimate use such as wikipedia pulling images from wikimedia.org.\n"
255 "<p>\n"
256 "Dillo3 uses the FLTK GUI toolkit's 1.3.x series, whose release\n"
257 "cleared the way for Dillo to return to those distributions\n"
258 "which had excluded Dillo2 due to FLTK2 never being officially released.\n"
239 "dillo-3.0.4 adds some nice new features, as listed below.\n"
240 "<p>\n"
241 "This release comes with better <b>text rendering</b> in the form of\n"
242 "some linebreaking fixes, and optimization for non-justified text,\n"
243 "including a new preference stretchability_factor.\n"
244 "<p>\n"
245 "It also comes with support for a few <b>HTML5</b> elements and better CSS\n"
246 "including background <b>images</b> (enable load_background_images in\n"
247 "dillorc or the tools menu).\n"
248 "<p>\n"
249 "It has enhanced <b>security</b> by fixing a set of potentially exploitable\n"
250 "code patterns reported by the Oulu University Secure Programming Group.\n"
251 "<p>\n"
252 "Finally it also fixes compiling on HURD and IRIX.\n"
259253 "<p>\n"
260254 "The core team welcomes developers willing to join our workforce.\n"
261255 "<p>\n"
279273 " <tr>\n"
280274 " <td>\n"
281275 "<ul>\n"
282 "<li>Automatic hyphenation (includes penalty_* preferences that control line-breaking).\n"
283 "<li>Added the domainrc mechanism.\n"
284 "<li>Added user interface color preferences (ui_*).\n"
285 "<li>Support for CSS display property.\n"
276 "<li> OPTGROUP and INS elements.\n"
277 "<li> Added some HTML5 elements.\n"
278 "<li> Added <b>show_ui_tooltip</b> preference (BUG#1140).\n"
279 "<li> Make embedding into other applications more reliable (BUG#1127).\n"
280 "<li> Add search from address bar.\n"
281 "<li> Better scaling (down) of images, even with consideration of gamma \n"
282 " correction.\n"
283 "<li> Some linebreaking fixes, and optimization for non-justified text,\n"
284 " including new preference <b>stretchability_factor</b>.\n"
285 "<li> Added <b>white_bg_replacement</b> preference.\n"
286 "<li> Implemented background images (except 'background-attachment'), added\n"
287 " <b>load_background_images</b> preference, as well as a new entry in the\n"
288 " tools menu.\n"
289 "<li> Fix a set of bugs reported by Oulu Univ. Secure Programming Group\n"
290 " (HTML parsing, URL resolution, GIF processing, etc.)\n"
291 "<li> Made <b>show_url</b> dillorc option work again (BUG#1128)\n"
292 "<li> Fix compiling on Hurd.\n"
293 "<li> Avoid Dpid children becoming zombies.\n"
294 "<li> Fix compiling on IRIX with MIPSpro compiler.\n"
286295 "</ul>\n"
287296 " </table>\n"
288297 "</table>\n"
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
6767 prefs.http_user_agent = dStrdup(PREFS_HTTP_USER_AGENT);
6868 prefs.limit_text_width = FALSE;
6969 prefs.load_images=TRUE;
70 prefs.load_background_images=TRUE;
70 prefs.load_background_images=FALSE;
7171 prefs.load_stylesheets=TRUE;
7272 prefs.middle_click_drags_page = TRUE;
7373 prefs.middle_click_opens_new_tab = TRUE;
360360 Font *parentFont = stack->get (i - 1).style->font;
361361 char *c, *fontName;
362362 int lineHeight;
363 DilloUrl *imgUrl = NULL;
363364
364365 /* Determine font first so it can be used to resolve relative lengths. */
365366 for (int i = 0; i < props->size (); i++) {
527528 Color::create(layout, prefs.white_bg_replacement);
528529 break;
529530 case CSS_PROPERTY_BACKGROUND_IMAGE:
530 if (prefs.load_background_images)
531 {
532 // p->value.strVal should be absolute, so baseUrl is not needed
533 DilloUrl *imgUrl = a_Url_new (p->value.strVal, NULL);
534
535 attrs->backgroundImage = StyleImage::create();
536 DilloImage *image =
537 a_Image_new(layout,
538 (void*)attrs->backgroundImage
539 ->getMainImgRenderer(),
540 0xffffff);
541
542 // we use the pageUrl as requester to prevent cross
543 // domain requests as specified in domainrc
544 DilloWeb *web = a_Web_new(bw, imgUrl, pageUrl);
545 web->Image = image;
546 a_Image_ref(image);
547 web->flags |= WEB_Image;
548
549 int clientKey;
550 if ((clientKey = a_Capi_open_url(web, NULL, NULL)) != 0) {
551 a_Bw_add_client(bw, clientKey, 0);
552 a_Bw_add_url(bw, imgUrl);
553 attrs->backgroundImage->connectDeletion
554 (new StyleImageDeletionReceiver (clientKey));
555 }
556
557 a_Url_free (imgUrl);
558 }
531 // p->value.strVal should be absolute, so baseUrl is not needed
532 imgUrl = a_Url_new (p->value.strVal, NULL);
559533 break;
560534 case CSS_PROPERTY_BACKGROUND_POSITION:
561535 computeLength (&attrs->backgroundPositionX, p->value.posVal->posX,
733707 }
734708 }
735709
710 if (imgUrl && prefs.load_background_images && attrs->display != DISPLAY_NONE)
711 {
712 attrs->backgroundImage = StyleImage::create();
713 DilloImage *image =
714 a_Image_new(layout,
715 (void*)attrs->backgroundImage
716 ->getMainImgRenderer(),
717 0xffffff);
718
719 // we use the pageUrl as requester to prevent cross
720 // domain requests as specified in domainrc
721 DilloWeb *web = a_Web_new(bw, imgUrl, pageUrl);
722 web->Image = image;
723 a_Image_ref(image);
724 web->flags |= WEB_Image;
725
726 int clientKey;
727 if ((clientKey = a_Capi_open_url(web, NULL, NULL)) != 0) {
728 a_Bw_add_client(bw, clientKey, 0);
729 a_Bw_add_url(bw, imgUrl);
730 attrs->backgroundImage->connectDeletion
731 (new StyleImageDeletionReceiver (clientKey));
732 }
733 }
734 a_Url_free (imgUrl);
736735 }
737736
738737 /**
0 # Makefile.in generated by automake 1.14 from Makefile.am.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2013 Free Software Foundation, Inc.