summaryrefslogtreecommitdiff
path: root/src/core
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* add context for default action functionVincent Sanders2013-02-194-10/+16
|
* Fix use of incorrect variable in dom_string(_caseless)_isequalJohn-Mark Bell2012-12-311-4/+4
|
* Fix reference leak in error case.John-Mark Bell2012-12-311-1/+3
|
* Initialise *retJohn-Mark Bell2012-12-311-0/+2
|
* Fix buffer overflow in event dispatchJohn-Mark Bell2012-11-111-1/+6
|
* Remove name validation from doctype creation.John-Mark Bell2012-11-031-14/+0
|
* Merge branch 'master' of git://git.netsurf-browser.org/libdomDaniel Silverstone2012-11-031-14/+12
|\
| * Implement dom_document_type_get_(public|system)id.John-Mark Bell2012-11-031-14/+12
| |
* | Be marginally less brain dead when allocating memory during event dispatchDaniel Silverstone2012-11-031-33/+30
| |
* | Do not validate event names and use dom_string_byte_length for fastnessDaniel Silverstone2012-11-031-5/+1
|/
* Ensure we memoise all the strings used in the core event dispatchDaniel Silverstone2012-11-032-0/+107
|
* Move generation of id_name into document by default. Since 'id' is the most ↵Daniel Silverstone2012-11-021-2/+8
| | | | common name of the 'id' attribute
* Close off two scan-build warnings as best as I can make out.Daniel Silverstone2012-10-081-4/+8
|