Commit Graph

11989 Commits

Author SHA1 Message Date
Vincent Sanders
b54174e54a Add CSS object model and DOM parsing IDL ready for implementation 2015-11-04 16:15:00 +00:00
Dick Tanis
a7324d39a4 Updated Dutch messages for NetSurf 2015-11-03 23:10:39 +00:00
Michael Drake
ed5fd91843 Fix overflow-{x|y} handling. 2015-11-01 14:06:06 +00:00
Daniel Silverstone
336326af3a Try and prevent duktape from taking part in clang analysis 2015-11-01 11:53:48 +01:00
Daniel Silverstone
e3a5fcf816 Rudimentary Event object binding 2015-11-01 11:23:29 +01:00
Daniel Silverstone
1284731d1a Support generating event objects during events 2015-11-01 11:23:15 +01:00
Daniel Silverstone
c2d51384c1 Current target, not target, otherwise events are fired in the wrong place 2015-11-01 10:42:04 +01:00
Daniel Silverstone
6eb6208159 Log the phase for event debugging 2015-11-01 10:42:04 +01:00
Michael Drake
bfe3e6abbc Implement Element::hasAttribute(). 2015-11-01 09:28:15 +00:00
Michael Drake
ee5efa1349 Element::getAttribute() returns DOMString? which means NULL if none. 2015-11-01 09:17:04 +00:00
Michael Drake
f65ea4b096 Add Element::getAttribute() implementation. 2015-10-31 23:23:38 +00:00
Daniel Silverstone
0247bed13f Example getter/setter pair 2015-10-31 22:59:42 +01:00
Daniel Silverstone
39d967e94b Support for event getters 2015-10-31 22:59:42 +01:00
Daniel Silverstone
47794b32ff Restore volatility introduced in fd9aa16ece 2015-10-31 22:59:41 +01:00
Michael Drake
7a6f0c765a Fix descendant bounding box calcs to work with overflow-{x|y}. 2015-10-31 19:11:24 +00:00
Daniel Silverstone
43f29e4311 Expose a few more bits 2015-10-31 20:11:10 +01:00
Michael Drake
576488f14c Don't #define things that might appear in oslib later. 2015-10-31 18:37:16 +00:00
Robert Sprowson
469147b593 Apply Sprow's fix for bug #2336.
I've not been able to test this, but since Sprow was also the original
reporter, it seems safe to apply.

Bug #2336: Colours rendered incorrectly in 4k and 64k colour modes.
2015-10-31 18:30:35 +00:00
Michael Drake
c22706b904 Update duktape to regexp-canonicalize-lookup branch.
- Add an optional 128kB lookup to optimize regexp canonicalization #411.
  https://github.com/svaarala/duktape/pull/411

This speeds up worst-case case-insensitive unicode regex handling.
2015-10-31 17:51:57 +00:00
Daniel Silverstone
3aacba15f8 Don't call up if the parent's jscontext has gone NULL in the meantime 2015-10-31 18:26:43 +01:00
Daniel Silverstone
60c52e1eaf Change click handling to fire_dom_event 2015-10-31 18:01:38 +01:00
Daniel Silverstone
310162474a Add fire_dom_event, it's in a bad place but we can move it later 2015-10-31 18:01:38 +01:00
Daniel Silverstone
4ca737408c Handle events 2015-10-31 18:01:38 +01:00
Daniel Silverstone
b1d477219d Shunt the handling of new elements 2015-10-31 18:01:38 +01:00
Daniel Silverstone
00eb6a8e88 Further work toward event handling 2015-10-31 18:01:38 +01:00
Daniel Silverstone
5a107a466b Initial work toward JS event support 2015-10-31 18:01:38 +01:00
Michael Drake
71f296a41c Fix dom document leak for framesets. 2015-10-31 16:14:40 +00:00
Michael Drake
519775a65c Don't leak frame scrollbars. 2015-10-31 16:14:40 +00:00
Dave Higton
f2e56834be When an image content cannot be converted prevent export as sprite
If an image is not converted, for example it is a CMYK jpeg this
prevents a crash if trying to export the image as a RISC OS sprite.
2015-10-31 15:49:34 +00:00
Michael Drake
b1533a7f76 Stop utf8 conversion leaking its strings. 2015-10-31 13:44:14 +00:00
Michael Drake
67cbdf6bef Don't fail on URLs with no host. 2015-10-31 13:44:14 +00:00
Michael Drake
25cd49034c Style guide adherence. 2015-10-31 13:44:06 +00:00
Michael Drake
78067fc29a Log window.alert() messages. 2015-10-31 09:23:56 +00:00
Michael Drake
396b445599 Add failing test.
1. Add "id" attribute.
2. Remove "ID" attribute.
3. Check id value.

In NetSurf it isn't removed, in Firefox it is.
There's a case sensitivity/conversion issue somewhere.

It the test works when we add/remove with the same case.
2015-10-29 16:55:42 +00:00
Michael Drake
0fabb20cc5 Add support for Element::removeAttribute. 2015-10-29 16:51:57 +00:00
Michael Drake
218839d05a Fix title. 2015-10-29 16:50:36 +00:00
Michael Drake
9198e80c24 Remove space. 2015-10-29 14:27:21 +00:00
Michael Drake
d795f1ca2d Add support for Element::setAttribute method.
This fixes test/js/dom-html-div-element.html test case.
2015-10-29 14:13:49 +00:00
Michael Drake
6098646e72 Add binding for DIV element's align getter/setter, and test.
Currently the second part of the test fails.
2015-10-29 11:47:53 +00:00
Vincent Sanders
8ff9abf5b6 update gtk accelerators to follow other browsers usage 2015-10-29 08:13:07 +00:00
Vincent Sanders
8c04742e39 Use automatically generated unsigned long bindings on HTMLTableRowElement 2015-10-25 23:58:28 +00:00
Vincent Sanders
78daba6f3c Use automatically generated unsigned long bindings on HTMLTableCellElement 2015-10-25 23:23:25 +00:00
Vincent Sanders
d7924a5849 add automaticaly generated property setter and getters to HTMLPreElement 2015-10-25 23:23:25 +00:00
Vincent Sanders
3a67d34f69 Use automatically generated unsigned long bindings on HTMLLIElement 2015-10-25 23:23:25 +00:00
Vincent Sanders
b07f4db579 Use automatically generated unsigned long bindings on HTMLInputElement 2015-10-25 23:23:25 +00:00
Daniel Silverstone
36bf691cee Add .id and .className support to Element along with a test 2015-10-25 21:47:35 +01:00
Daniel Silverstone
0423704eb1 Fix env.sh some more [ns-pull] for zsh 2015-10-25 21:27:51 +01:00
Vincent Sanders
4458b96ff2 Use automatically generated unsigned long bindings on HTMLImageElement 2015-10-25 09:17:41 +00:00
Michael Drake
1bb7d295bb Make nsurl utf8 string conversion function consistent with nsurl API. 2015-10-25 09:03:20 +00:00
Vincent Sanders
dc0729150c add automaticaly generated property setter and getters to HTMLOListElement 2015-10-24 19:39:59 +01:00