Miciah Dashiel Butler Masters
ea372bd0cd
get_opt_*: Add ses parameter
...
Add a session parameter to get_opt_ and its wrappers in preparation for session-specific and domain-specific options.
2007-08-28 17:24:59 +00:00
Kalle Olavi Niemitalo
2437d35904
Merge commit 'pasky.or.cz/elinks-0.12' into elinks-0.13
...
There were conflicts in src/document/css/ because 0.12.GIT switched
to LIST_OF(struct css_selector) and 0.13.GIT switched to struct
css_selector_set. Resolved by using LIST_OF(struct css_selector)
inside struct css_selector_set.
2007-07-28 03:22:29 +03:00
Kalle Olavi Niemitalo
297ad024c3
const in css_appliers[]
2007-07-28 02:38:11 +03:00
Kalle Olavi Niemitalo
80f5ec1827
Doxygenate src/document/css/
2007-07-28 02:35:36 +03:00
Kalle Olavi Niemitalo
96176a8c77
Declare element types of lists.
2007-07-26 22:47:23 +03:00
Kalle Olavi Niemitalo
d3d2bb26c5
New macro LIST_OF for better Doxygen support.
2007-07-26 22:45:51 +03:00
Kalle Olavi Niemitalo
585f8b426b
Doxygen syntax fixes
...
Fix warnings:
dom/stack.h:70: Warning: explicit link request to 'pop_dom_node' could not be resolved
dom/stack.h:71: Warning: explicit link request to 'pop_dom_nodes' could not be resolved
dom/stack.h:71: Warning: explicit link request to 'pop_dom_state' could not be resolved
dom/stack.h:115: Warning: explicit link request to 'done_dom_node' could not be resolved
Use @returns instead of \return in src/document/css/parser.c,
and other such things.
2007-07-26 14:14:27 +03:00
Kalle Olavi Niemitalo
ab9e0821d6
Merge commit 'pasky.or.cz/elinks-0.12' into elinks-0.13
2007-07-22 18:48:45 +03:00
Kalle Olavi Niemitalo
64da6774c2
CSS: Count nested blocks when skipping.
...
When skipping "@media print { #foo {bar: baz} pre {white-space: normal} }",
the previous code would look for the first "{" and then the first "}", and
fail to skip the "pre" rule. Seen at support.microsoft.com.
I originally posted this change as part of attachment 383 to bug 722.
2007-07-22 16:51:04 +03:00
Kalle Olavi Niemitalo
275402f43c
CSS: Fix parent selectors broken in the previous commit.
2007-07-16 01:42:15 +03:00
Kalle Olavi Niemitalo
591ff81890
CSS bug 766: Scan ancestor elements only if needed.
...
time elinks -no-connect -no-home 'http://rss.slashdot.org/Slashdot/slashdot/to?m=5878 '
Wait until finished loading, then press q and Enter.
before 6.45user 0.17system 0:11.34elapsed 58%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3387minor)pagefaults 0swaps
after 5.51user 0.14system 0:09.85elapsed 57%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3469minor)pagefaults 0swaps
before 5.86user 0.17system 0:10.58elapsed 57%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3504minor)pagefaults 0swaps
after 5.50user 0.15system 0:10.96elapsed 51%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3645minor)pagefaults 0swaps
before 6.40user 0.14system 0:11.85elapsed 55%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3640minor)pagefaults 0swaps
after 6.17user 0.12system 0:10.80elapsed 58%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3378minor)pagefaults 0swaps
before 5.80user 0.14system 0:10.29elapsed 57%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3632minor)pagefaults 0swaps
after 5.56user 0.16system 0:10.08elapsed 56%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3569minor)pagefaults 0swaps
before 5.92user 0.14system 0:10.54elapsed 57%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3570minor)pagefaults 0swaps
after 5.52user 0.13system 0:10.10elapsed 55%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3515minor)pagefaults 0swaps
All in all, it is doubtful whether this change is worth the complexity.
Please go ahead and revert if you think it isn't.
2007-07-16 00:29:06 +03:00
Kalle Olavi Niemitalo
ace03d5093
CSS: new struct css_selector_set
2007-07-16 00:28:49 +03:00
Kalle Olavi Niemitalo
98260f7970
CSS bug 766: Parse the id and class attributes in advance.
...
time elinks -no-connect -no-home 'http://rss.slashdot.org/Slashdot/slashdot/to?m=5878 '
Wait until finished loading, then press q and Enter.
before 19.96user 0.16system 0:25.97elapsed 77%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3630minor)pagefaults 0swaps
after 6.46user 0.12system 0:12.66elapsed 52%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3630minor)pagefaults 0swaps
before 18.02user 0.19system 0:23.86elapsed 76%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3572minor)pagefaults 0swaps
after 5.73user 0.15system 0:10.02elapsed 58%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3628minor)pagefaults 0swaps
before 19.80user 0.15system 0:25.14elapsed 79%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3461minor)pagefaults 0swaps
after 6.28user 0.13system 0:11.91elapsed 53%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3626minor)pagefaults 0swaps
2007-07-15 22:19:30 +03:00
Kalle Olavi Niemitalo
5d468daf83
CSS: Document reparent_selector and make it static.
2007-07-15 19:54:22 +03:00
Kalle Olavi Niemitalo
ef815d5e25
CSS: Don't call list_empty within args of DBG.
2007-07-15 15:56:33 +03:00
Kalle Olavi Niemitalo
455432fd0b
CSS: Move /* #define DEBUG_CSS */ to stylesheet.h.
...
That's where src/document/css/README says it should be.
2007-07-15 15:56:14 +03:00
Kalle Olavi Niemitalo
bafe47508d
Bug 784: Add html_context->doc_cp and parse attributes with it.
...
options->cp is still used for this in seven places where html_context
is not easily available. Those should eventually be corrected too,
but I'm checking this change in already because it's better than what
we had before.
2007-04-30 00:56:39 +03:00
Kalle Olavi Niemitalo
4adcae682f
change_hook_css: Don't use the ses parameter.
...
It might be NULL.
2007-01-27 22:33:02 +02:00
Kalle Olavi Niemitalo
22f7468013
Make arrays of option change hooks const.
2007-01-27 19:00:47 +02:00
Witold Filipczyk
049d088e8a
The massive attack: the only property of options used by get_attr_val was
...
cp (codepage). To fix bug 784 html_context->part->document->cp should
be passed to get_attr_val instead of html_context->options->cp.
2006-08-05 18:06:28 +02:00
Miciah Dashiel Butler Masters
ecbc2271d1
examine_element: drop html_stack parameter
...
The stack is available via the html_context, which is passed to
examine_element as of commit f42c86be70744e62af92282e4d64fc3066f6ba04.
2006-07-21 11:10:54 +00:00
Jonas Fonseca
9f3456c872
Add support for parsing space separated CSS class attribute values
...
Sequentially apply style for stuff like class="class1 class2".
2006-06-06 15:21:56 +02:00
Jonas Fonseca
2748d043f9
Autogenerate .vimrc files and put the master in config/vimrc
...
This changes the init target to be idempotent: most importantly it will now
never overwrite a Makefile if it exists. Additionally 'make init' will
generate the .vimrc files. Yay, no more stupid 'added fairies' commits! ;)
2006-01-15 18:38:58 +01:00
Jonas Fonseca
2eebef098d
Prepare the CSS scanner for tokenizing ~ and + as char tokens
...
They are used for "E ~ F" and "E + F" element relations.
2005-12-13 16:35:41 +01:00
Jonas Fonseca
771a2eea82
Prepare the CSS scanner for parsing [foo{|,*,^,$,}=bar] selectors
2005-12-13 04:50:30 +01:00
Laurent MONIN
df065ead80
Remove now useless $Id: lines.
2005-10-21 09:14:07 +02:00
Jonas Fonseca
c88afeb1c2
path_to_top -> top_builddir
2005-10-20 04:00:35 +02:00
Jonas Fonseca
e39a4342d6
Include $(top_srcdir)/Makefile.lib instead of $(path_to_top)/Makefile.lib
...
A step towards out of tree builds ...
2005-10-20 01:11:47 +02:00
Jonas Fonseca
1efab31581
Simplify building of and linking with directories
...
Ditch the building of an archive (.a) in favour of linking all objects in a
directory into a lib.o file. This makes it easy to link in subdirectories
and more importantly keeps the build logic in the local subdirectories.
Note: after updating you will have to rm **/*.a if you do not make clean
before updating.
2005-09-27 21:38:58 +02:00
Jonas Fonseca
b30064c0d0
Rename targets: *-l -> *-local
2005-09-27 21:11:28 +02:00
Petr Baudis
ade2ae0a69
Add simple support for the display CSS property
...
display: inline, display: block and display: inline-block (aliased to
inline) is now supported. I hope I didn't break anything. :-)
This makes the new yucky CSS'd slashdot look at least a bit better.
2005-09-22 22:07:33 +02:00
Petr Baudis
1f0cd14e91
Converted another bunch of submakefiles to ELBuild
2005-09-16 04:07:37 +02:00
Jonas Fonseca
7462f22635
Remove now obsolete .cvsignore files.
2005-09-15 18:33:20 +02:00
Petr Baudis
0f6d4310ad
Initial commit of the HEAD branch of the ELinks CVS repository, as of
...
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00