summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix: Proper copy constructor for HTMLDirectoryElement.Michael Drake2016-02-052-3/+41
|
* Fix: HTMLButtonElement's copy constructor copies its specialised members.Michael Drake2016-02-051-0/+4
|
* Provide generic copy constructor for HTMLButtonElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLBRElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLBodyElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLBasefontElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLBaseElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLAreaElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLAppletElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLAnchorElement.Michael Drake2016-02-052-3/+41
|
* Fix: Handle class list allocation failure in HTMLElement copy constructor.Michael Drake2016-02-051-5/+13
|
* Fix: Implement HTMLElement copy constructor.Michael Drake2016-02-052-1/+37
| | | | | It can't just use the Element copy constructor, as there is aditional stuff in the HTMLElement struct.
* 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
|
* Merge branch 'tlsa/html-element-type'Michael Drake2016-02-042-0/+4
|\
| * Add CENTER to list of HTML elements.Michael Drake2016-02-042-0/+4
|/
* Merge branch 'tlsa/html-element-type'Michael Drake2016-02-012-245/+406
|\
| * Add full list of HTML5 elements to enum.Michael Drake2016-02-012-202/+363
| | | | | | | | | | There is a TODO in the code, indicating the set of unimplemented HTMLElement specialisations. For now they fall back to HTMLElement.
| * Sort HTML elements to make it easier to see what's there.Michael Drake2016-02-011-44/+44
|/
* Merge branch 'tlsa/faster-strings'Michael Drake2016-01-311-23/+45
|\
| * 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.
* Add missing newline which upsets gccChris Young2016-01-301-1/+2
|
* 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
|/
* Merge branch 'tlsa/html-element-type'Michael Drake2016-01-29109-1042/+1024
|\
| * Add function to get html element's tag type.Michael Drake2016-01-284-1/+41
| |
| * Style: Fix indentation and tidy up.Michael Drake2016-01-281-66/+78
| |
| * Store HTMLElement tag types as enum on the html elements.Michael Drake2016-01-286-7/+15
| |
| * Simplified consistant interface to HTMLElement creation.Michael Drake2016-01-28107-972/+894
|/ | | | Also fixes STYLE element not getting the correct namespace or prefix.
* Merge branch 'tlsa/html-element-type'Michael Drake2016-01-283-8/+9
|\
| * Fix: Pass tag_name through to HTMLQuoteElement initialiser.Michael Drake2016-01-283-8/+9
|/ | | | | It needs to be given the tag_name, because it could have been created by a Q or BLOCKQUOTE element.
* Merge branch 'tlsa/html-element-type'Michael Drake2016-01-2759-356/+777
|\
| * Fix longstanding failure to handle HTMLDirectoryElement specialisation.Michael Drake2016-01-273-9/+6
| | | | | | | | | | We were looking for DIRECTORY tags, but we should have been looking for DIR elements.
| * Optimise HTMLElement specialisation slightly.Michael Drake2016-01-271-189/+222
| | | | | | | | | | | | | | Gets the byte length of the tag names string, and splits the comparison ladder into ladders for different string lengths. This reduces the amount of dom_string_isequal() calls we need to do.
| * Optimise element specialisation: use non-caseless comparison in ladder.Michael Drake2016-01-271-63/+63
| | | | | | | | | | | | | | We know for sure both things are upper case, so using the caseless version is needlessly slow, since it will need to lowercase both (if lowercase version's don't already exist) and compare the lower case versions.
| * Remove default from HTML element specialisation switch.Michael Drake2016-01-271-1/+0
| | | | | | | | | | | | Now that everything is handled we can remove the default, and it should be obvious in future if something is added to the list of elements but not properly handled.
| * Add missing detection of HTMLBaseElement specialisation.Michael Drake2016-01-271-0/+8
| |
| * Fix up HTMLBaseElement specialisation.Michael Drake2016-01-272-12/+8
| |
| * Add missing detection of HTMLMetaElement specialisation.Michael Drake2016-01-271-0/+7
| |
| * Add missing detection of HTMLDivElement specialisation.Michael Drake2016-01-271-0/+8
| |
| * Add missing specialisation of BLOCKQUOTE.Michael Drake2016-01-271-0/+4
| | | | | | | | Both Q and BLOCKQUOTE share the HTMLQuoteElement specialisation.
| * Enable table row HTML element specialisation.Michael Drake2016-01-271-0/+4
| | | | | | | | The code for it was always there, but it was never reached.
| * Split detection of HTML TAG type out into helper.Michael Drake2016-01-271-138/+325
| | | | | | | | | | | | | | | | | | This moves the massive dom_string comparison ladder out into a separate function, and switches on the result. Using a switch here has highlighted multiple issues: - Various html element specialisations were missed out. - Both TD elements were in the ladder twice.
| * Split out tag names from general string table and enum.Michael Drake2016-01-2757-324/+502
|/ | | | | Previously these were mixed in the the document's general memoised strings. This also gives us an enum by which HTML elements can be identified.
* 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
|