Miciah Dashiel Butler Masters
c21a3592c9
Build fix: Wrap supports_html_media_attr with #ifdef CONFIG_CSS/#endif
2008-06-18 08:48:18 +00:00
Miciah Dashiel Butler Masters
9af30f13b9
Document start_element and end_element
2008-06-09 13:58:41 +00:00
Miciah Dashiel Butler Masters
3c44a88b39
Document the invisible and name members of struct html_element
2008-06-09 13:58:41 +00:00
Miciah Dashiel Butler Masters
643a34e6af
Strings corrections from Malcolm Parsons
...
Fix the spelling and grammar in various comments, variable names, comment
descriptions, and documentation.
2008-01-27 04:09:18 +00:00
Kalle Olavi Niemitalo
4138b401ca
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
src/document/css/stylesheet.c
src/document/css/stylesheet.h
2008-01-26 18:15:33 +02:00
Kalle Olavi Niemitalo
cab0b3fbd5
const in CSS
2008-01-26 18:10:13 +02:00
Kalle Olavi Niemitalo
f19c948ca7
Bug 824: Disable combining characters unless --enable-combining.
...
Label this as an experimental feature because it has so many bugs
and it is not clear how they can be fixed.
2008-01-19 20:58:22 +02:00
Kalle Olavi Niemitalo
14d1a0f3e2
Bug 824: Define _XOPEN_SOURCE, not __USE_XOPEN.
...
_XOPEN_SOURCE has been standardized in SUSv2. <features.h> of GNU
libc then defines the internal __USE_XOPEN macro.
2008-01-19 20:52:05 +02:00
Kalle Olavi Niemitalo
2fd3e0b3b3
combined: Leave the screen_char attributes unchanged.
...
The previous code displayed the wrong attributes if the combining
characters were at the end of an HTML link. For example:
<a href="#">trickỹ</a> more text <a href="#">second link</a>
(The characters in the first A element are "tricky" and U+0303
COMBINING TILDE.)
Here, when the cursor was not at the first link, ELinks displayed
the y-with-tilde cell as if it were not part of the link.
This happened because ELinks had already changed schar->attr
before set_line saw the space character after the link and
flushed document->combi[].
2008-01-19 20:50:10 +02:00
Witold Filipczyk
83a4d815ae
combined: Added combining characters support.
...
Combining characters requires a UTF-8 locale.
It slows down rendering. There is still the unresolved issue with
combining characters at the end of a document.
This patch wasn't heavilly tested. Especially a "garbage" input may cause
unpredictable results.
2008-01-19 20:49:57 +02:00
Kalle Olavi Niemitalo
d2733656b8
Bug 722: Truncate names of HTML media types.
...
HTML 4.01 section 6.13 says each entry in the list
must be truncated before the first character that
is not in the allowed set.
2008-01-12 10:08:02 +02:00
Kalle Olavi Niemitalo
65b365587e
Bug 722: Read document.css.media only if needed.
2008-01-12 09:37:56 +02:00
Kalle Olavi Niemitalo
0c899dcc8a
Bug 722: Default to media="all", not media="screen".
2008-01-12 09:35:41 +02:00
Kalle Olavi Niemitalo
60144e9ff6
Bug 722: Filter CSS according to media types.
...
This patch adds support for:
- option document.css.media
- CSS @import "foo.css" tty;
- CSS @media tty { ... }
- HTML <link rel="stylesheet" media="tty">
- HTML <style media="tty">
This patch is attachments 395 and 396 from bugzilla.elinks.cz, which
are based on attachment 388 from bugzilla.elinks.cz. This new
version of the patch fixes conflicts with recent 0.13.GIT changes,
marks Doxygen commands with at-signs rather than backslashes, and
adds a few comments.
2007-12-22 03:18:06 +00:00
Laurent MONIN
a35a5c557a
Use @cp to shorten the line.
2007-10-15 12:32:25 +02:00
Laurent MONIN
b1eaca1f1e
Drop unused variable @options from html_focusable().
2007-10-15 12:31:16 +02:00
Laurent MONIN
31d8ffc578
In extract_color() and get_color(), make names of variables more explicit.
...
c -> attribute
r -> retval
at -> value
2007-10-15 12:26:19 +02:00
Laurent MONIN
a1125df95f
Make get_bgcolor() use extract_color() instead of get_color().
...
It prevents a useless test, use_document_fg_colors() is
always true when use_document_bg_colors() is true.
2007-10-15 12:19:46 +02:00
Laurent MONIN
b709061864
Move code from get_color() to new extract_color().
2007-10-15 12:17:08 +02:00
Laurent MONIN
11dea66ff1
struct table bordercolor,bgcolor -> color.(border|background)
2007-10-12 17:10:30 +02:00
Laurent MONIN
367767c500
struct par_attrib bgcolor -> color.background
2007-10-12 17:04:44 +02:00
Laurent MONIN
f150f22ac9
Use color.background instead of bgcolor in struct document too.
...
Not useful but coherent with other changes.
2007-10-12 16:50:47 +02:00
Laurent MONIN
bc498c00da
struct text_style_color fg,bg -> foreground, background
2007-10-12 16:41:06 +02:00
Laurent MONIN
f8cdb5d472
More anonymous structures were named.
2007-10-12 16:24:41 +02:00
Laurent MONIN
24605c967e
Mark colors in struct document_options by using a new struct for them.
...
default_(link|vlink|...) -> default_color.(link|vlink|...)
2007-10-12 12:11:31 +02:00
Laurent MONIN
a5548fadd2
Use (correct) type enum form_mode for struct text_attrib field select_disabled.
2007-10-12 11:00:41 +02:00
Laurent MONIN
192c2a9e12
Use parenthesis around macro parameters.
...
Macros concerned are:
is_inline_element()
is_block_element()
2007-10-12 10:51:49 +02:00
Laurent MONIN
944a8e7bd9
style.(fg|bg) -> style.color.(fg|bg)
...
Introduce INIT_TEXT_STYLE() macro to initialize struct text_style.
2007-10-10 14:59:15 +02:00
Laurent MONIN
ca6424595b
format.(clink|vlink|...) -> format.color.(clink|vlink|...)
...
It makes more obvious these fields are colors.
2007-10-10 14:37:10 +02:00
Miciah Dashiel Butler Masters
f2f478eb2f
Let CSS selectors select non-pairable elements
...
This necessitates that non-pairable elements be briefly pushed on the stack, so that get_css_selector_for_element sees them, and then popped.
It would be possible to push them only when CONFIG_CSS is defined, as they are otherwise not needed (as evidenced by the fact that we've gone so long without bothering to push them). However, the performance hit should be small, the necessary #ifdef/#endif wrappers would be pretty ugly, and ideally, the CSS code will someday be in such a state that it can be considered an integral feature.
2007-10-09 14:14:45 +00:00
Laurent MONIN
05fc8f5169
Fix compilation with --disable-css.
...
Compilation failed due to missing DEBUG_CSS test.
This was introduced in commit 98260f7970
2007-09-24 15:32:42 +02:00
Laurent MONIN
27057926b9
Fix compilation with --disable-css.
...
Compilation failed due to missing DEBUG_CSS test.
This was introduced in commit 98260f7970
2007-09-21 11:05:40 +02:00
Laurent MONIN
fec10a1846
Revert "format_html_part(): save and restore renderer_context.last_tag_for_newline too."
...
This reverts commit 60913ba9f9
.
This was a bad move, anchors ceased to function correctly.
Reported by Witekfl.
2007-09-19 09:22:44 +02:00
Laurent MONIN
39d9f669c9
Revert "format_html_part(): save and restore renderer_context.last_tag_for_newline too."
...
This reverts commit 4abce8e363
.
This was a bad move, anchors ceased to function correctly.
Reported by Witekfl.
2007-09-19 09:14:53 +02:00
Jonas Fonseca
8e3c2d6042
Move find_tag to document/document
2007-09-14 16:29:13 +02:00
Laurent MONIN
f0e66866f5
Trim trailing whitespaces.
2007-09-14 15:12:32 +02:00
Jonas Fonseca
890903a65d
Compile fix for commit e876df70d8
2007-09-14 15:08:51 +02:00
Petr Baudis
c1b91c7bf3
document/html: Make HTML parser state transparent
...
Before, *_html_parser_state() operated with struct html_element *. Now, it is
transparent for the renderer (just void *), so that DOM won't have to provide
this struct but will be able to use something internal.
Backported from master.
2007-09-14 15:06:56 +02:00
Petr Baudis
37b20d998c
document/html: Move enum html_special_type from parser.h to renderer.h
...
...since it is renderer interface.
2007-09-14 15:03:14 +02:00
Laurent MONIN
09cf904814
Backport Pasky's changes concerning text_style-related stuff.
...
It partially includes changes made in following commits:
document/html: struct text_attrib_style -> struct text_style
commit e133941206
document: struct format_attr -> struct text_style_format
commit 070d335796
document: Unify text style -> screen attribute handling
commit b66d2bec67
document: Move text_style-related stuff to dedicated format.*
commit db9431465f
2007-09-14 14:59:37 +02:00
Laurent MONIN
d6bb586a00
format_html_part(): group int variables declarations
2007-09-14 10:11:44 +02:00
Laurent MONIN
60913ba9f9
format_html_part(): save and restore renderer_context.last_tag_for_newline too.
2007-09-14 10:10:37 +02:00
Laurent MONIN
e914ca85fe
Use explicit names for variables in format_html_part().
...
llm -> saved_last_link_to_move
ltm -> saved_last_tag_to_move
ef -> saved_empty_format
lm -> saved_margin
2007-09-14 10:10:09 +02:00
Laurent MONIN
419cd4775e
format_html_part(): group int variables declarations
2007-09-14 10:07:32 +02:00
Laurent MONIN
4abce8e363
format_html_part(): save and restore renderer_context.last_tag_for_newline too.
2007-09-14 09:59:34 +02:00
Laurent MONIN
a6f3323a4b
Use explicit names for variables in format_html_part().
...
llm -> saved_last_link_to_move
ltm -> saved_last_tag_to_move
ef -> saved_empty_format
lm -> saved_margin
2007-09-14 09:55:43 +02:00
Laurent MONIN
75d47ef957
Drop useless goto/label.
2007-09-14 09:41:51 +02:00
Laurent MONIN
73b1f43468
Drop useless goto/label.
2007-09-14 09:26:39 +02:00
Laurent MONIN
6e89b39ed0
Fix get_opt_bool() call and finish backport of process_head() split.
2007-09-12 23:51:43 +02:00
Miciah Dashiel Butler Masters
bd0a6f6f7d
Reflow check_head_for_cache_control
2007-09-12 23:41:37 +02:00