Commit Graph

8 Commits

Author SHA1 Message Date
Michael Drake
672119e509 Fix background attribute handling. 2016-02-13 22:36:31 +00:00
Michael Drake
f5be1eb413 Add switch case fallthrough comments. 2016-02-09 13:54:21 +00:00
Michael Drake
86ad729085 Fix body text hint. 2016-02-07 20:10:31 +00:00
Michael Drake
278451463f Rewrite hints handling to be more efficient.
Now we only look for hints that are actually possible for the
given element.  This new way of doing things is made possible
by the new LibCSS API for hints.

This also makes use of the LibDOM HTMLElement tag type to avoid
lots of massive if-else-if ladders of dom_string_caseless_isequal
calls.
2016-02-05 10:49:58 +00:00
Michael Drake
e42afd9b32 Change hints handling to use new libcss API.
Collect hints and provide them up front.

Note this implementation is minimal effort, and quite inefficient.
We can be faster about it by walking the element's attributes, and
caching things set on ancestor elements which apply to the current
element.  (Mostly table, and body stuff.)
2016-02-05 10:49:58 +00:00
Michael Drake
ae485432c5 Remove duplicate branch. 2016-02-05 10:49:58 +00:00
Michael Drake
e6c8188229 Tidy cellpadding hint handling. 2016-02-05 10:49:58 +00:00
Michael Drake
8e580ccd19 Split out presentational hints handling. 2016-02-05 10:49:58 +00:00