summaryrefslogtreecommitdiff
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* element: Mirror parent NULL check in dom_element_is_default_namespace()Daniel Silverstone2020-10-021-1/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Node: Add a NULL guard to hopefully calm scan-buildDaniel Silverstone2020-02-221-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Deal with some scan-build-identified potential problemsDaniel Silverstone2020-02-211-1/+16
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* element: Issue DOMSubtreeModified *after* updating attr valueDaniel Silverstone2019-08-041-4/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* String: remove innards from public header.John-Mark Bell2019-06-291-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 leaksDaniel Silverstone2019-06-031-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 Silverstone2019-05-041-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 Silverstone2018-07-291-0/+3
|
* Correct COLLECT logic in walk_logic_adjacent_text_in_order to stop leakDaniel Silverstone2018-07-291-8/+19
|
* Change dom node type count to last value plus one.Michael Drake2017-02-041-0/+1
|
* DOM Document: Fix find by ID, when called with global tree root.Michael Drake2016-09-011-14/+14
| | | | Fixes: NetSurf bug #2466.
* Fix Coverity #1350096.Michael Drake2016-02-091-1/+1
|
* Fix compiler warning.Michael Drake2016-02-071-1/+1
| | | | error: expression result unused [-Werror,-Wunused-value]
* Fix: Handle class list allocation failure in HTMLElement copy constructor.Michael Drake2016-02-051-5/+13
|
* Split out element content copying from allocation in copy constructor.Michael Drake2016-02-052-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 Drake2016-02-051-5/+5
|
* Optimise dom_string_tolower where interned string was already lower case.Michael Drake2016-01-311-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 Drake2016-01-291-31/+9
|\
| * Optimise dom_string_(toupper|tolower) functions.Michael Drake2016-01-291-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 Drake2016-01-291-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 Drake2016-01-291-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 Drake2016-01-291-1/+0
| |
* | Don't add target event to list of capture/bubbling event targets.Michael Drake2016-01-291-4/+2
|/
* Unref document uri on finalisation.Michael Drake2016-01-221-0/+1
|
* Fix leak of dom string on error path. Coverity #1347877.Michael Drake2016-01-101-0/+1
|
* Create documents with initial URI of "about:blank".Michael Drake2016-01-071-3/+23
| | | | Clients can set the URI on a document with dom_document_set_uri()
* Remove call to non-existant function.Michael Drake2015-12-202-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 targetDaniel Silverstone2015-11-011-2/+2
|
* Tweak the types on namednodemapDaniel Silverstone2015-10-312-4/+4
|
* Handle situation where we cleanup during target gatheringDaniel Silverstone2015-10-311-2/+2
|
* Fix end-of-event phasingDaniel Silverstone2015-10-311-13/+6
|
* Add a _FINISHED event action callbackDaniel Silverstone2015-10-311-0/+8
| | | | We can then use this for JS to hook cleanups into place.
* Fix some doxygen warningsVincent Sanders2015-09-014-63/+62
|
* Strip doc from event layerDaniel Silverstone2015-08-212-5/+2
|
* make core string handling functions cope with NULL dom_string being passedVincent Sanders2014-01-241-2/+17
|
* ensure result value is propogated (coverity 1127073)Vincent Sanders2014-01-241-4/+7
|
* ensure dom_implementation_create_document_type() parameters are present ↵Vincent Sanders2014-01-241-5/+7
| | | | (coverity 1127076)
* fix sill automatic conversion typoVincent Sanders2014-01-241-1/+1
|
* Fix STRIP_TRAILING to work fully when COLLAPSE isn't requested.Michael Drake2014-01-241-2/+6
|
* Strip and collapse whitespace when gathering html option values.Michael Drake2014-01-234-2/+124
|
* Prevent attempt to concatinate string with null.Michael Drake2013-12-271-7/+11
|
* Don't allocate array when client asks for element classes, just give pointer ↵Michael Drake2013-12-131-10/+4
| | | | to internal array.
* Fix some broken assertsDaniel Silverstone2013-11-171-2/+2
|
* fix error handling in walk_logic_adjacent_text() (coverity 1127084)Vincent Sanders2013-11-081-5/+4
|
* ensure _dom_element_set_attr_node does not leak on error paths (coverity ↵Vincent Sanders2013-11-081-3/+10
| | | | 1127085)
* dom_document_get_element_by_id increments the ref counter of any returned ↵Michael Drake2013-08-231-0/+3
| | | | element.
* Compare the name and prefix directly. Since this avoids string ↵Michael Drake2013-05-231-17/+5
| | | | concatination, and (un)ref.
* Name and prefix were already compared. Add sane namespace comparison. ↵Michael Drake2013-05-231-7/+7
| | | | Remove broken comparison stuff. Remove TODO from previous commit.
* Fix _dom_node_is_equal leaking all its refs. Replace C++ comments. Flag ↵Michael Drake2013-05-231-32/+65
| | | | broken bit with TODO.
* Notify user data handlers on deletionJohn-Mark Bell2013-02-221-0/+5
|