summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
AgeCommit message (Collapse)Author
2017-09-07Initialize variables to appease clang scan-build.Sebastian Rasmussen
2017-04-27Include required system headers.Tor Andersson
2017-04-27Make HTML header private.Tor Andersson
2016-10-12Use pool allocator when parsing CSS.Tor Andersson
Fixes memory leaks when parsing throws exceptions and saves a lot of tiny mallocs for objects that have common life times.
2016-09-14Add scripts to remove/replace 'static' from functions.Robin Watts
Getting a backtrace out with missing functions makes the backtrace much less useful. Some backtrace routines (such as that used by Memento on Android) are incapable of resolving static functions. We therefore provide 2 scripts (scripts/destatic.sh and scripts/restatic.sh) that respectively remove and replace the 'static' from function definitions. The scripts do not affect "static inline" or "static const" definitions, and they are are restricted to working in the source directory (excluding source/tools), thirdparty/mujs and the platform/{java,android} directories. The transformed source should NOT be checked in. To avoid problems with clashing symbols, some functions are renamed or tweaked slightly in this patch.
2016-01-22epub: Implement @font-face rules.Tor Andersson
Note: font->fallback is not reference counted here. The fallback mechanism is probably going to have to change when we add text shaping.
2015-05-19epub: Parse CSS combinators left-associatively.Tor Andersson
Fixes bug 695994 where multiple child selectors would not match properly. The "a > b > c" rule should be interpreted as ((a > b) > c) in order to match properly.
2015-05-19epub: Support !important property declarations.Tor Andersson
2015-05-15epub: Parse (and ignore) @page selector.Tor Andersson
2015-05-07epub: Allow space between property name and ':'.Tor Andersson
2015-05-07epub: Fix typo when parsing negative numbers.Tor Andersson
2015-05-07epub: Whitespace separated by comments turn into two whitespace tokens.Tor Andersson
Deal with it.
2015-05-06epub: Rejig CSS parser -- whitespace is significant!Tor Andersson
The selectors ".foo.bar" and ".foo .bar" are not equivalent! They should parse as "*.foo.bar" and "*.foo *.bar" but we parsed both as "*.foo.bar" due to us ignoring significant whitespace.
2015-05-05epub: Fix signedness bug when testing character ranges.Tor Andersson
2015-05-05epub: Parse negative decimal numbers that start with the decimal point.Tor Andersson
2015-05-04epub: Fix 695971: Don't confuse id selectors (#name) with colors in CSS.Tor Andersson
2015-04-15epub: Be resilient in the face of broken CSS.Tor Andersson
Try to recover from syntax errors in CSS rules by skipping to the end of the declaration block. Don't abort HTML parsing on CSS errors.
2015-04-14epub: Ignore CSS3 ::before pseudo-element syntax.Tor Andersson
2015-04-14epub: Parse url() tokens.Tor Andersson
Fix bug 695922.
2015-03-24Don't pass interpreter context to pdf_processor opcode callbacks.Tor Andersson
Update buffer and filter processors. Filter both colors and stroke states. Move OCG hiding logic into interpreter.
2015-02-23Merge branch 'html'Tor Andersson
Conflicts: Makefile
2014-12-03html: Clean up some naming.Tor Andersson
2014-12-03html: Fix parsing of @-rules in CSS.Tor Andersson
2014-12-03html: Allow +number in CSS syntax.Tor Andersson
2014-12-03html: Record line number and source file for CSS error messages.Tor Andersson
2014-12-03html: Free inline style properties at the end.Tor Andersson
2014-12-03html: Free css structures.Tor Andersson
2014-12-03html: Rename internal css structs.Tor Andersson
2014-12-03html: Rename rule and style (match) structs.Tor Andersson
2014-12-03html: Namespace prefix CSS functions.Tor Andersson
2014-12-03html: Some cleaning.Tor Andersson
2014-12-03html: Images.Tor Andersson
2014-12-03html: Fix adjacency selector matching.Tor Andersson
2014-12-03html: Only draw the boxes and lines if they're on the current page.Tor Andersson
2014-12-03html: Fix CSS parsing mixed-case selectors and comments.Tor Andersson
2014-12-03html: Parse external CSS files and basic pagination.Tor Andersson
Show a translated view of the continuous layout for each page.
2014-12-03html: Create value lists in the correct order.Tor Andersson
2014-12-03html: Parse white-space property.Tor Andersson
2014-12-03html: Create lists in order when parsing CSS.Tor Andersson
2014-12-03html: Parse inline style attributes.Tor Andersson
2014-12-03html: CSS lexer and parser.Tor Andersson