1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
Commit Graph

2961 Commits

Author SHA1 Message Date
Jonas Fonseca
5c38661bf4 Move adding of the DOM source renderer context to new init_dom_source_renderer 2007-09-12 20:10:57 +02:00
Jonas Fonseca
97f8a748c1 Rename source_renderer variables from data to source 2007-09-12 19:51:49 +02:00
Jonas Fonseca
278ad051a1 DOM: Introduce set_source_position to update renderer->position
... and perform the associated assertion.
2007-09-12 19:49:17 +02:00
Jonas Fonseca
385ee89b58 DOM: Move get_scanner_token_number from dom/select to dom/scanner 2007-09-12 16:23:46 +02:00
Jonas Fonseca
e568011da7 DOM TEST: Refactor incremental parsing loop to parse_sgml_from_stdin 2007-09-12 16:00:01 +02:00
Jonas Fonseca
e8c99a337e DOM: Remove stack tracing
This code has already been duplicated by the sgml-parser program.
The only user being dom/select should hook into that.
2007-09-12 15:24:29 +02:00
Jonas Fonseca
5c5920ea09 DOM TEST: make sgml-parser support --selector flag
This basically obsoletes the dom-select program so
remove all traces of it.
2007-09-12 15:13:29 +02:00
Miciah Dashiel Butler Masters
fb7377fe81 dom/test/sgml-parser: add --stats option
For now, --stats only prints the number of DOM nodes.
2007-09-12 11:49:31 +00:00
Jonas Fonseca
72537db1cd Fix last merge that reverted commit 4a6a6909ea
Due to conflict in src/document/html/parser.c Zas' meta-refresh changes
were dropped. Reapply them.
2007-09-11 00:27:13 +02:00
Jonas Fonseca
7dab487328 Merge branch 'master' into dom
Conflicts:

	src/document/html/parser.c
2007-09-09 18:41:04 +02:00
Jonas Fonseca
0240c469b7 Merge branch 'elinks-0.12'
Conflicts:

	src/document/dom/renderer.c
2007-09-09 18:25:49 +02:00
Jonas Fonseca
58b3b1e752 Reinstate "canonicalization" of path names for file URIs
This reverts commit 4f0aaa166e
and insert check for the "//" -> "/" change only to occur for
file:// URIs. This fixes the recent reports on broken handling
of relative file URIs starting with "..".
2007-09-09 18:17:25 +02:00
Laurent MONIN
24d88d2f3e Add a simple testcase for missing ; in meta refresh content attribute. 2007-09-08 21:06:28 +02:00
Laurent MONIN
4a6a6909ea Make meta refresh content attribute parsing more tolerant.
Simply search for 'url' marker ignoring anything
before it.
ELinks is now able to follow incorrectly written
meta refresh content attribute with missing ; before
url= parameter.
As an example, try http://akkada.tivi.net.pl/
2007-09-08 21:03:22 +02:00
Jonas Fonseca
76fba5fcd8 CSS: devious work-around for px unit to absolute calculation 2007-09-06 23:29:36 +02:00
Jonas Fonseca
146c6e650d CSS: add support for margin-left and margin-right 2007-09-06 23:26:54 +02:00
Jonas Fonseca
7d6cb2bb53 CSS: make length_absolute generally usable
... however, I don't know if this was the original intention
or whether it is really font-size specific.
2007-09-06 23:25:31 +02:00
Jonas Fonseca
4fb4a1af83 CSS: fix broken length + unit parsing 2007-09-06 23:22:51 +02:00
Miciah Dashiel Butler Masters
dbacc9ead2 Support document refresh in frames
Introduce reload_frame, which takes a frame @name argument in addition to the arguments that reload takes.
2007-09-06 20:47:17 +00:00
Miciah Dashiel Butler Masters
2676fcc2cd do_document_refresh: take document_view instead of session 2007-09-06 19:14:35 +00:00
Miciah Dashiel Butler Masters
66d62ca11b start_document_refresh: take document_view instead of session 2007-09-06 19:13:25 +00:00
Miciah Dashiel Butler Masters
a1a8696cce Introduce start_document_refreshes
start_document_refreshes performs the NULL-pointer checks that previously all callers to start_document_refresh must perform and then calls start_document_refresh.
2007-09-06 18:52:23 +00:00
Jonas Fonseca
5a47a1b4d6 DOM HTML: Introduce apply_focusable to setup link attributes
It is supposed to be the equivalent of html_focusable but
using an attribute iterator instead of querying each attribute.
It also adapts some mikuparser code to help the parsing of
attributes containing numbers. Finally, add onhover to the
list of known HTML attributes.
2007-09-06 17:03:44 +02:00
Jonas Fonseca
e5f3e6ca92 Merge branch 'master' into dom
Conflicts:

	src/document/html/parser.c
2007-09-06 15:54:10 +02:00
Laurent MONIN
34212320fa French translation was updated. 2007-09-05 17:19:52 +02:00
Miciah Dashiel Butler Masters
a8f28f21c9 Reflow check_head_for_cache_control 2007-09-04 12:13:20 +00:00
Miciah Dashiel Butler Masters
2a2aad15f9 Factor check_head_for_cache_control out of process_head 2007-09-04 12:11:37 +00:00
Miciah Dashiel Butler Masters
fc12376bf5 Factor check_head_for_refresh out of process_head 2007-09-04 12:09:19 +00:00
Miciah Dashiel Butler Masters
2d0180d1e7 Fix process_head to check for cache-control information even if no refresh
Previously, process_head immediately returned if there was no refresh, never giving the cache-control check further down a chance to run.

Also add new tests:

   nocache.html
   refresh+nocache.html
2007-09-04 12:08:08 +00:00
Miciah Dashiel Butler Masters
34c9389e9b Display cache mode in the cache manager's info box for cache entries 2007-09-04 11:54:18 +00:00
Kalle Olavi Niemitalo
cdf2d8181c More missing va_ends.
Somehow, these slipped from commit
af14d00d17 yesterday.
2007-09-04 10:26:57 +03:00
Kalle Olavi Niemitalo
16d4e81f1b Merge commit 'pasky.or.cz/elinks-0.12' into elinks-0.12 2007-09-03 21:04:40 +03:00
Kalle Olavi Niemitalo
c44739e039 Refer to bug 96 in a comment. 2007-09-03 21:02:58 +03:00
Kalle Olavi Niemitalo
a59f44c4b5 Document Unicode characters for ACS_S[1379]. 2007-09-03 21:01:49 +03:00
Kalle Olavi Niemitalo
af14d00d17 Add missing va_ends.
I'm not sure they're needed anywhere nowadays, but still.
2007-09-03 21:01:11 +03:00
Witold Filipczyk
7f49eda39e DOM renderer: off by one error. 2007-09-02 20:44:36 +00:00
Miciah Dashiel Butler Masters
596b9b4d72 Fix compiler warning
Initialise @td to NULL in textarea_edit.  Assert @td in done_textarea_data while we're at it.
2007-09-01 23:46:37 +00:00
Miciah Dashiel Butler Masters
e0f0112de9 Fix -dump with multicell characters 2007-09-01 17:04:58 +00:00
Miciah Dashiel Butler Masters
e1f0c10926 Drop unneeded #include "util/lists.h" from viewer/text/textarea.c 2007-09-01 12:55:02 +00:00
Miciah Dashiel Butler Masters
312a48a24a Merge branch 'master' of ssh://pasky.or.cz/srv/git/elinks 2007-09-01 12:50:57 +00:00
Miciah Dashiel Butler Masters
14af901277 In free_textarea_data, set term->textarea_data to NULL 2007-09-01 12:49:02 +00:00
Miciah Dashiel Butler Masters
92abd48405 Drop EVENT_TEXTAREA, use EVENT_RESIZE instead
When returning from an external program, unblock_itrm_x in the slave process will send a resize event to the master process for the slave terminal.  In handle_interlink_event, when we receive this resize event, we can check whether we need to call textarea_edit.
2007-09-01 12:46:02 +00:00
Miciah Dashiel Butler Masters
a66f6f8c90 Make the textarea_data member of struct terminal opaque
Move the definition of struct textarea_data back to src/viewer/text/textarea.c.
2007-09-01 12:02:21 +00:00
Miciah Dashiel Butler Masters
ac230ebc08 Add free_textarea_data wrapper for done_textarea_data and use in destroy_terminal
Unexport done_textarea_data.
2007-09-01 11:58:29 +00:00
Miciah Dashiel Butler Masters
6469344727 Export done_textarea_data and call in destroy_terminal to prevent leak
Previously, if a terminal crashed with an external editor open, the struct textarea_data would never be freed
2007-09-01 09:45:56 +00:00
Miciah Dashiel Butler Masters
8dc000e313 Set term_->textarea_data = NULL when taking the pointer in textarea_edit 2007-09-01 09:42:54 +00:00
Miciah Dashiel Butler Masters
d384f93522 Factor done_textarea_data out of textarea_edit 2007-09-01 09:24:22 +00:00
Miciah Dashiel Butler Masters
8c5dc2d161 Factor init_textarea_data out of textarea_edit 2007-09-01 09:20:40 +00:00
Miciah Dashiel Butler Masters
cc67edbe1c Drop @textarea_editor global 2007-09-01 09:10:54 +00:00
Miciah Dashiel Butler Masters
d4c262694b Move pointers to struct textarea_data from linked-list to terminal structure 2007-09-01 09:02:01 +00:00