Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | node: Fix dom_node_normalize (via _dom_merge_adjacent_text) | Daniel Silverstone | 2024-05-27 | 1 | -3/+3 |
| | | | | | | | | | | | Normalizing is meant to turn a sequence of text nodes into one text node representing the sequence; unfortunately due to the way that _dom_merge_adjacent_text had been written this actually resulted in an exponential repetition of the text content. This is fixed by using the underlying characterdata objects instead. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | (tokenlist): Try harder to avoid type punning | Daniel Silverstone | 2022-11-27 | 1 | -2/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | (tokenlist): Try and avoid type-punned pointer | Daniel Silverstone | 2022-11-27 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | core: tokenlist: Release last_set with dom_string_unref | Michael Drake | 2022-11-27 | 1 | -1/+1 |
| | |||||
* | DOMTokenList: Initial implementation. | Daniel Silverstone | 2022-11-27 | 3 | -1/+566 |
| | | | | | | | We cover the core behaviours of DOMTokenList and also DOMSettableTokenList so that the IDL can be implemented in NetSurf. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Element: Change API to return a reference to callers. | Michael Drake | 2021-07-05 | 1 | -12/+9 |
| | |||||
* | Element: API docs: Reword based on review. | Michael Drake | 2021-07-05 | 1 | -3/+12 |
| | |||||
* | Element: Improve API documentation: Returned nodes aren't reffed. | Michael Drake | 2021-07-05 | 1 | -3/+3 |
| | |||||
* | node: Constify get user data parameters. | Michael Drake | 2021-02-09 | 2 | -4/+4 |
| | |||||
* | Constify vtables. | Michael Drake | 2021-02-02 | 16 | -25/+25 |
| | |||||
* | element: Mirror parent NULL check in dom_element_is_default_namespace() | Daniel Silverstone | 2020-10-02 | 1 | -1/+6 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Node: Add a NULL guard to hopefully calm scan-build | Daniel Silverstone | 2020-02-22 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Deal with some scan-build-identified potential problems | Daniel Silverstone | 2020-02-21 | 1 | -1/+16 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | element: Issue DOMSubtreeModified *after* updating attr value | Daniel Silverstone | 2019-08-04 | 1 | -4/+4 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | String: remove innards from public header. | John-Mark Bell | 2019-06-29 | 1 | -13/+13 |
| | | | | | | | | | A dom_string is the first member of the underlying dom_string_internal and thus their addresses are equivalent. We shouldn't be exposing the internal alignment requirements through the public header at all, so remove the bogus _ALIGNED and cast through void internally to tell the compiler that we know what we're doing. | ||||
* | node.c: _dom_node_set_text_content() fix leaks | Daniel Silverstone | 2019-06-03 | 1 | -4/+9 |
| | | | | | | | There were a number of text node leaks in the function to set a node's text content. This corrects those. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Add dom_node_contains() | Daniel Silverstone | 2019-05-04 | 1 | -0/+30 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Make API note that unreffing is up to the caller for dom_nodelist_item() | Daniel Silverstone | 2018-07-29 | 1 | -0/+3 |
| | |||||
* | Correct COLLECT logic in walk_logic_adjacent_text_in_order to stop leak | Daniel Silverstone | 2018-07-29 | 1 | -8/+19 |
| | |||||
* | Change dom node type count to last value plus one. | Michael Drake | 2017-02-04 | 1 | -0/+1 |
| | |||||
* | DOM Document: Fix find by ID, when called with global tree root. | Michael Drake | 2016-09-01 | 1 | -14/+14 |
| | | | | Fixes: NetSurf bug #2466. | ||||
* | Fix Coverity #1350096. | Michael Drake | 2016-02-09 | 1 | -1/+1 |
| | |||||
* | Fix compiler warning. | Michael Drake | 2016-02-07 | 1 | -1/+1 |
| | | | | error: expression result unused [-Werror,-Wunused-value] | ||||
* | Fix: Handle class list allocation failure in HTMLElement copy constructor. | Michael Drake | 2016-02-05 | 1 | -5/+13 |
| | |||||
* | Split out element content copying from allocation in copy constructor. | Michael Drake | 2016-02-05 | 2 | -25/+41 |
| | | | | | | | This creates a new _dom_element_copy_internal() function, which does the copying. The old _dom_element_copy() continues to do the allocation. This follows the same pattern as in dom_node_internal class. | ||||
* | Style: Fix sporadic use of spaces for indentation in element copy constructor. | Michael Drake | 2016-02-05 | 1 | -5/+5 |
| | |||||
* | Optimise dom_string_tolower where interned string was already lower case. | Michael Drake | 2016-01-31 | 1 | -23/+45 |
| | | | | | Now we detect that the string was lower case, and return a new ref to the same dom_string. | ||||
* | Merge branch 'tlsa/faster-strings' | Michael Drake | 2016-01-29 | 1 | -31/+9 |
|\ | |||||
| * | Optimise dom_string_(toupper|tolower) functions. | Michael Drake | 2016-01-29 | 1 | -31/+9 |
| | | | | | | | | | | Since we don't support non-ascii strings here, the lpu calls to step though the characters was an unecessary overhead. | ||||
* | | Further optimise event dispatch. | Michael Drake | 2016-01-29 | 1 | -5/+20 |
| | | | | | | | | | | Only add event targets to the array of targets for capture/bubbling if it is actually listening for the event type we're dispatching. | ||||
* | | Optimise event dispatch. | Michael Drake | 2016-01-29 | 1 | -20/+57 |
| | | | | | | | | | | | | | | - Only allocate array of event targets when there is at least one target listening. - Only add targets to the list if they have got at least one listener registered. | ||||
* | | Remove parameter documentation for non-existant parameter. | Michael Drake | 2016-01-29 | 1 | -1/+0 |
| | | |||||
* | | Don't add target event to list of capture/bubbling event targets. | Michael Drake | 2016-01-29 | 1 | -4/+2 |
|/ | |||||
* | Unref document uri on finalisation. | Michael Drake | 2016-01-22 | 1 | -0/+1 |
| | |||||
* | Fix leak of dom string on error path. Coverity #1347877. | Michael Drake | 2016-01-10 | 1 | -0/+1 |
| | |||||
* | Create documents with initial URI of "about:blank". | Michael Drake | 2016-01-07 | 1 | -3/+23 |
| | | | | Clients can set the URI on a document with dom_document_set_uri() | ||||
* | Remove call to non-existant function. | Michael Drake | 2015-12-20 | 2 | -25/+1 |
| | | | | | | There was no implementation of dom_document_get_base, and call to it were trying to run code at 0x0. Replace with call to dom_document_get_uri instead. | ||||
* | Ensure we don't capture or bubble on target | Daniel Silverstone | 2015-11-01 | 1 | -2/+2 |
| | |||||
* | Tweak the types on namednodemap | Daniel Silverstone | 2015-10-31 | 2 | -4/+4 |
| | |||||
* | Handle situation where we cleanup during target gathering | Daniel Silverstone | 2015-10-31 | 1 | -2/+2 |
| | |||||
* | Fix end-of-event phasing | Daniel Silverstone | 2015-10-31 | 1 | -13/+6 |
| | |||||
* | Add a _FINISHED event action callback | Daniel Silverstone | 2015-10-31 | 1 | -0/+8 |
| | | | | We can then use this for JS to hook cleanups into place. | ||||
* | Fix some doxygen warnings | Vincent Sanders | 2015-09-01 | 4 | -63/+62 |
| | |||||
* | Strip doc from event layer | Daniel Silverstone | 2015-08-21 | 2 | -5/+2 |
| | |||||
* | make core string handling functions cope with NULL dom_string being passed | Vincent Sanders | 2014-01-24 | 1 | -2/+17 |
| | |||||
* | ensure result value is propogated (coverity 1127073) | Vincent Sanders | 2014-01-24 | 1 | -4/+7 |
| | |||||
* | ensure dom_implementation_create_document_type() parameters are present ↵ | Vincent Sanders | 2014-01-24 | 1 | -5/+7 |
| | | | | (coverity 1127076) | ||||
* | fix sill automatic conversion typo | Vincent Sanders | 2014-01-24 | 1 | -1/+1 |
| | |||||
* | Fix STRIP_TRAILING to work fully when COLLAPSE isn't requested. | Michael Drake | 2014-01-24 | 1 | -2/+6 |
| | |||||
* | Strip and collapse whitespace when gathering html option values. | Michael Drake | 2014-01-23 | 4 | -2/+124 |
| |