Re: Codethink sponsored work on NetSurf

2017-05-05 Thread Michael Drake

On 05/05/17 13:46, Kevin Wells wrote:

In message <20170505074516.gf12...@kyllikki.org>
  Vincent Sanders  wrote:

On Wed, May 03, 2017 at 12:51:54PM +0100, Kevin Wells wrote:



It has fixed a bug I submitted. :)

I tried to inform the bug tracker, but it appears to be down.


Thanks for reporting this, It was due to a configuration error after
last weeks upgrades, fixed now I hope. Please let me know if there are
any additional issues with the bug tracker.


This bug has been fixed, I could not find a button on there to update
the status:




I've closed it.  Thanks for the feedback!

Cheers,

--
Michael Drake  http://www.codethink.co.uk/



Re: Codethink sponsored work on NetSurf

2017-05-05 Thread Kevin Wells
In message <20170505074516.gf12...@kyllikki.org>
  Vincent Sanders  wrote:

>On Wed, May 03, 2017 at 12:51:54PM +0100, Kevin Wells wrote:
>> In message <20170502143538.ge12...@kyllikki.org>
>>   Vincent Sanders  wrote:
>>
>> >On Tue, May 02, 2017 at 09:16:25AM +0100, Michael Drake wrote:
>> >>
>> >> Over the past few weeks I've been able to spend time
>> >> contributing to open-source projects at work.
>> >>
>> >> Codethink [1] values open-source software, and so I
>> >> was approved to work on NetSurf and related components
>> >> while I was between projects.  I'd like to thank
>> >> Codethink for this opportunity, which I very much
>> >> value and appreciate.
>> >
>> >I would like to publicly thank Codethink for allowing you this time
>> >and acknowledge that it represents several thousand pounds worth of
>> >developer time which has benefited NetSurf and by extension your
>> >fellow developers.
>>
>> It has fixed a bug I submitted. :)
>>
>> I tried to inform the bug tracker, but it appears to be done.
>
>Thanks for reporting this, It was due to a configuration error after
>last weeks upgrades, fixed now I hope. Please let me know if there are
>any additional issues with the bug tracker.

Thanks,

This bug has been fixed, I could not find a button on there to update
the status:



>
>> >
>> >
>> >
>> >>
>> >>
>> >> Cheers,
>> >>
>> >> Michael
>> >>
>> >>
>> >>
>> >
>>
>>
>> --
>> Kev Wells
>> http://kevsoft.co.uk/
>> Yes, makin' mock o' uniforms that guard you while you sleep
>>
>>
>


-- 
Kev Wells
http://kevsoft.co.uk/
Motorcycling News http://bikes.kevsoft.co.uk/



Re: Codethink sponsored work on NetSurf

2017-05-05 Thread Vincent Sanders
On Wed, May 03, 2017 at 12:51:54PM +0100, Kevin Wells wrote:
> In message <20170502143538.ge12...@kyllikki.org>
>   Vincent Sanders  wrote:
> 
> >On Tue, May 02, 2017 at 09:16:25AM +0100, Michael Drake wrote:
> >>
> >> Over the past few weeks I've been able to spend time
> >> contributing to open-source projects at work.
> >>
> >> Codethink [1] values open-source software, and so I
> >> was approved to work on NetSurf and related components
> >> while I was between projects.  I'd like to thank
> >> Codethink for this opportunity, which I very much
> >> value and appreciate.
> >
> >I would like to publicly thank Codethink for allowing you this time
> >and acknowledge that it represents several thousand pounds worth of
> >developer time which has benefited NetSurf and by extension your
> >fellow developers.
> 
> It has fixed a bug I submitted. :)
> 
> I tried to inform the bug tracker, but it appears to be done.

Thanks for reporting this, It was due to a configuration error after
last weeks upgrades, fixed now I hope. Please let me know if there are
any additional issues with the bug tracker.

> >
> >
> >
> >>
> >>
> >> Cheers,
> >>
> >> Michael
> >>
> >>
> >>
> >
> 
> 
> -- 
> Kev Wells
> http://kevsoft.co.uk/
> Yes, makin' mock o' uniforms that guard you while you sleep
> 
> 

-- 
Regards Vincent
http://www.kyllikki.org/



Re: Codethink sponsored work on NetSurf

2017-05-04 Thread Kevin Wells
In message <7b1d6a3656.ke...@talktalk.net>
  Kevin Wells  wrote:

>
>It has fixed a bug I submitted. :)
>
>I tried to inform the bug tracker, but it appears to be done.

Oops that should read down not done.
>>


-- 
Kev Wells
http://kevsoft.co.uk/
Useless Fact 03 You burn 3.5 calories each time you laugh.



Re: Codethink sponsored work on NetSurf

2017-05-03 Thread Kevin Wells
In message <20170502143538.ge12...@kyllikki.org>
  Vincent Sanders  wrote:

>On Tue, May 02, 2017 at 09:16:25AM +0100, Michael Drake wrote:
>>
>> Over the past few weeks I've been able to spend time
>> contributing to open-source projects at work.
>>
>> Codethink [1] values open-source software, and so I
>> was approved to work on NetSurf and related components
>> while I was between projects.  I'd like to thank
>> Codethink for this opportunity, which I very much
>> value and appreciate.
>
>I would like to publicly thank Codethink for allowing you this time
>and acknowledge that it represents several thousand pounds worth of
>developer time which has benefited NetSurf and by extension your
>fellow developers.

It has fixed a bug I submitted. :)

I tried to inform the bug tracker, but it appears to be done.
>
>
>
>>
>>
>> Cheers,
>>
>> Michael
>>
>>
>>
>


-- 
Kev Wells
http://kevsoft.co.uk/
Yes, makin' mock o' uniforms that guard you while you sleep



Re: Codethink sponsored work on NetSurf

2017-05-02 Thread Vincent Sanders
On Tue, May 02, 2017 at 09:16:25AM +0100, Michael Drake wrote:
> 
> Over the past few weeks I've been able to spend time
> contributing to open-source projects at work.
> 
> Codethink [1] values open-source software, and so I
> was approved to work on NetSurf and related components
> while I was between projects.  I'd like to thank
> Codethink for this opportunity, which I very much
> value and appreciate.

I would like to publicly thank Codethink for allowing you this time
and acknowledge that it represents several thousand pounds worth of
developer time which has benefited NetSurf and by extension your
fellow developers.



> 
> 
> Cheers,
> 
> Michael
> 
> 
> 

-- 
Regards Vincent
http://www.kyllikki.org/



Re: Codethink sponsored work on NetSurf

2017-05-02 Thread Brian
Hi

In article <8f376c96-35c5-d12d-74d3-67a316253...@codethink.co.uk>,
   Michael Drake  wrote:

> Over the past few weeks I've been able to spend time
> contributing to open-source projects at work.

> Codethink [1] values open-source software, and so I
> was approved to work on NetSurf and related components
> while I was between projects.  I'd like to thank
> Codethink for this opportunity, which I very much
> value and appreciate.

> What follows is a summary of the development I've been
> able to accomplish during this time.

> [1] http://www.codethink.co.uk/

[big snip]


Personally, I'll never become a coder like until hell freezes over, but I
found this missive really heart warming to read. Just great. Well done,
one and all.

> Cheers,

> Michael

Cheers

Brian




Re: Codethink sponsored work on NetSurf

2017-05-02 Thread lists
Not quite sure what all of it means but it all sounds very good.

Thanks Michael

-- 
Stuart Winsor

Tools With A Mission
sending tools across the world
http://www.twam.co.uk/



Re: Codethink sponsored work on NetSurf

2017-05-02 Thread Tim Hill
In article <8f376c96-35c5-d12d-74d3-67a316253...@codethink.co.uk>,
   Michael Drake  wrote:

> Over the past few weeks I've been able to spend time
> contributing to open-source projects at work.

> Codethink [1] values open-source software, and so I
> was approved to work on NetSurf and related components
> while I was between projects.  I'd like to thank
> Codethink for this opportunity, which I very much
> value and appreciate.

> What follows is a summary of the development I've been
> able to accomplish during this time.

> [1] http://www.codethink.co.uk/


[Snip masses of changes]

Great job! 

Sometimes I have no choice but to write pages where some CSS/JS defeats
NetSurf and while I try to make them degrade gracefully, this isn't
always true where I have lifted code from others but this page has now
sprung into legibility thanks to your hard work.

http://www.youngtheatre.co.uk/archive/yt/timelines/

Text and objects are no longer rendered outside the DIVs. Hurrah!

Must buy that man several pints. 

T

-- 

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk



Codethink sponsored work on NetSurf

2017-05-02 Thread Michael Drake


Over the past few weeks I've been able to spend time
contributing to open-source projects at work.

Codethink [1] values open-source software, and so I
was approved to work on NetSurf and related components
while I was between projects.  I'd like to thank
Codethink for this opportunity, which I very much
value and appreciate.

What follows is a summary of the development I've been
able to accomplish during this time.

[1] http://www.codethink.co.uk/


LibCSS (CSS parsing and selection library)
==

* Added parsing and selection support for the CSS3
  box-sizing property.


NetSurf
===

Core: HTML layout engine


* Added support for the CSS3 box-sizing property.  This
  helps us assign element widths and heights as the web
  page author intended.
* Extended :after pseudo element handling to cover the
  table display type.  This improves layout of pages that
  use a variant of the clearfix CSS trick for clearing
  floats.
* Fixed the handling of the CSS min-width and max-width
  properties to correctly affect the auto-width left and
  right margins.
* Added support for width attribute on HR element.
* Fixed use of uninitialised value in CSS presentational
  hint handling, that had potential to reduce the
  likelihood of computed style sharing.
* Improved layout tree dump, to make debugging layout
  problems easier.

Core: Content handling
--

* Improved logging, making it easier to track HTML contents
  through a session, for debug purposes.
* Removed bogus assertion in the HTML object fetch handler,
  which would sometimes crash the browser.
* Fixed bug in content state machine, which made aborted
  fetches cause their contents to get stuck in the cache.
  This would happen on JavaScript location assignments.

Core: URL handling
--

* Improved file: URL handling.
* Removed redundant code.
* Improved hexadecimal handling.
* Improved test suite.

Core: Hotlist (bookmarks/favourites)


* Added support for saving the hotlist automatically after
  entries are added or removed.  This helps prevent loss
  of hotlist changes if NetSurf is unable to save the file
  on exit.
* Added support for read-only hotlist mode, which can be
  selected by frontend code.  In this mode, the hotlist
  file may be read, and the hotlist updated, but changes
  are never saved to disc.

GTK frontend


* Fixed bug where different pango layout contexts were used
  for measuring and painting text, which in some situations
  caused either lines with overlapping text, or large spaces
  between bits of text on a line.
* Slight optimisation to the text line break handling code.
* Rewrote bitmap rendering plotter.  The new implementation
  is many times faster for tiled rendering, such as for
  repeating background images, and simplifies the handling
  of scaled plots.

RISC OS frontend


* Improved handling of external hotlist managers, by setting
  the core hotlist to read-only mode, when configured to use
  an external manager.


NetSurf's JavaScript engine (Duktape)
=

NetSurf uses the excellent Duktape JavaScript engine.
URL: http://www.duktape.org/

* Updated NetSurf and nsgenbind (our JavaScript binding
  generator) from Duktape 1.6 to Duktape 2.0.  We had
  been stuck on the 1.X series due to API changes
  in Duktape 2, and lack of time to make the transition.
  Duktape 2.0 provides greater performance, amongst many
  other improvements.
* Added support for HTML style comments (ES6 spec) to
  Duktape and upstreamed it to the Duktape author, Sami
  Vaarala.  This feature had been requested by our users.
* Updated NetSurf from Duktape 2.0 to the recently
  released Duktape 2.1, which gives further performance
  gains, adds the HTML stlye comment handling, and other
  improvements.
* On the advice of the Duktape author, enabled Duktape's
  fastint build option, for faster integer arithmetic.


LibNSGIF (GIF decoding library)
===

* Complete rewrite of LZW decompression.  The new
  implementation is both 30% faster and cleaner code.
  It also now handles LZW codes that span three sub-blocks.
  (Although these are unlikely to actually appear in the
  real world.)


LibSVGTiny (SVG decoding library)
=

* Build system improvements to fix warnings about use of
  gperf-generated code.



Cheers,

Michael




Re: Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM

2016-02-15 Thread Michael Drake

On 12/02/16 17:46, Jim Nagel wrote:


NetSurf (#3382) timed out when I tried to look at the Codethink site,
but when I immediately tried again it displayed immediately.


We made a change to the fetch behavior some time ago that resulted
in us not waiting very long for a server to respond.

We've moved back to the old behavior in build CI #3406.

Cheers,

--

Michael Drake  http://www.codethink.co.uk/



Re: Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM

2016-02-14 Thread Tim Hill
In article <d5b58a5155.harr...@blueyonder.co.uk>, Harriet Bazley
<li...@orange.wingsandbeaks.org.uk> wrote:
> On 12 Feb 2016 as I do recall, Michael Drake  wrote:

> >
> > Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM
> > ==
> >
> > Over the last couple of weeks I have been lucky enough to be able to
> > do work on the NetSurf project at work. At
> > [Codethink](http://www.codethink.co.uk/) we have an arrangement that
> > allows engineers to fill time between projects by making
> > contributions to certain open source projects.
> >
> > My request to work on [NetSurf](http://www.netsurf-browser.org/), and
> > more particularly, its [LibDOM](http://ns-b.org/projects/libdom/) and
> > [LibCSS](http://ns-b.org/projects/libcss/) sub-projects was approved
> > and I was able to get a good amount done.

> [snip]

> I'm impressed that so much of this seems to relate to making Netsurf
> faster and more efficient!

As someone who has been a little lax in keeping up with the bleeding edge
I'm really happy having downloaded #3403 to find it seems quicker than
the 'ancient' version I was using.

The spurious carriage returns which showed up inside tables seem to have
gone. Hurrah.

-- 
Tim Hill
www.timil.com

web sites * multimedia * training



Re: Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM

2016-02-14 Thread Harriet Bazley
On 12 Feb 2016 as I do recall,
  Michael Drake  wrote:

>
> Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM
> ==
>
> Over the last couple of weeks I have been lucky enough to be able
> to do work on the NetSurf project at work.
> At [Codethink](http://www.codethink.co.uk/) we have an arrangement
> that allows engineers to fill time between projects by making
> contributions to certain open source projects.
>
> My request to work on [NetSurf](http://www.netsurf-browser.org/),
> and more particularly, its [LibDOM](http://ns-b.org/projects/libdom/)
> and [LibCSS](http://ns-b.org/projects/libcss/) sub-projects was
> approved and I was able to get a good amount done.

[snip]

I'm impressed that so much of this seems to relate to making Netsurf faster
and more efficient!

-- 
Harriet Bazley ==  Loyaulte me lie ==

It is easier to fight for one's principles than to live up to them.



Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM

2016-02-12 Thread Michael Drake


Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM
==

Over the last couple of weeks I have been lucky enough to be able
to do work on the NetSurf project at work.
At [Codethink](http://www.codethink.co.uk/) we have an arrangement
that allows engineers to fill time between projects by making
contributions to certain open source projects.

My request to work on [NetSurf](http://www.netsurf-browser.org/),
and more particularly, its [LibDOM](http://ns-b.org/projects/libdom/)
and [LibCSS](http://ns-b.org/projects/libcss/) sub-projects was
approved and I was able to get a good amount done.


LibDOM
--

Most of my time has been spent improving LibDOM; the Document Object
Model library.  Since the recent moves towards adding JavaScript
support in NetSurf, various parts of LibDOM that had never been used
are beginning to get exercised.  This has revealed various issues.

The first series of changes affected the specialisations of HTMLElement:

* Added a new, more efficient means of identifying an HTML element's
  tag name.
* Fixed some missing HTML element specialisations.
* Made some optimisations relating to how the appropriate specialisation
  for an element is determined.
* Made the internal workings of HTMLElement specialisation more consistent.
* Exposed a function to enabled client applications to use the new
  efficient means of identifying HTML element tag types.

6d60021 Split out tag names from general string table and enum.
 57 files changed, 502 insertions(+), 324 deletions(-)
3894e33 Split detection of HTML TAG type out into helper.
 1 file changed, 325 insertions(+), 138 deletions(-)
1f07c35 Enable table row HTML element specialisation.
 1 file changed, 4 insertions(+)
dd2e075 Add missing specialisation of BLOCKQUOTE.
 1 file changed, 4 insertions(+)
8d09ec0 Add missing detection of HTMLDivElement specialisation.
 1 file changed, 8 insertions(+)
81c012f Add missing detection of HTMLMetaElement specialisation.
 1 file changed, 7 insertions(+)
e346fef Fix up HTMLBaseElement specialisation.
 2 files changed, 8 insertions(+), 12 deletions(-)
13df5af Add missing detection of HTMLBaseElement specialisation.
 1 file changed, 8 insertions(+)
0174d8b Remove default from HTML element specialisation switch.
 1 file changed, 1 deletion(-)
12385d1 Optimise element specialisation: use non-caseless 
comparison in ladder.

 1 file changed, 63 insertions(+), 63 deletions(-)
13f0636 Optimise HTMLElement specialisation slightly.
 1 file changed, 222 insertions(+), 189 deletions(-)
5b6c191 Fix longstanding failure to handle HTMLDirectoryElement 
specialisation.

 3 files changed, 6 insertions(+), 9 deletions(-)
9def0a4 Merge branch 'tlsa/html-element-type'
4bd00fd Fix: Pass tag_name through to HTMLQuoteElement initialiser.
 3 files changed, 9 insertions(+), 8 deletions(-)
809a7dc Merge branch 'tlsa/html-element-type'
bab3f35 Simplified consistant interface to HTMLElement creation.
 107 files changed, 894 insertions(+), 972 deletions(-)
5007c80 Store HTMLElement tag types as enum on the html elements.
 6 files changed, 15 insertions(+), 7 deletions(-)
fa21110 Style: Fix indentation and tidy up.
 1 file changed, 78 insertions(+), 66 deletions(-)
cedfbbc Add function to get html element's tag type.
 4 files changed, 41 insertions(+), 1 deletion(-)
e137aa0 Merge branch 'tlsa/html-element-type'

Various profiling sessions indicated that the lower-casing of HTML
attributes was taking too long, so that was optimised.

a37713d Optimise dom_string_(toupper|tolower) functions.
 1 file changed, 9 insertions(+), 31 deletions(-)

Another area we were spending too much time was in event dispatch.
Previously we would gather a list of nodes from the event target node
all the way back to the root node.  Now we generate a list containing
nodes with registered listeners.  In most cases, when there is no
scripting involved we can now avoid generating the list at all.

b4a245f Don't add target event to list of capture/bubbling event 
targets.

 1 file changed, 2 insertions(+), 4 deletions(-)
7e9681b Remove parameter documentation for non-existant parameter.
 1 file changed, 1 deletion(-)
2196dd1 Optimise event dispatch.
 1 file changed, 57 insertions(+), 20 deletions(-)
737cb99 Further optimise event dispatch.
 1 file changed, 20 insertions(+), 5 deletions(-)

More changes to HTMLElement handling, mostly to extend the list of
known tags to include those that are not specialised in the DOM spec.

acedecb Sort HTML elements to make it easier to see what's there.
 1 file changed, 44 insertions(+), 44 deletions(-)
c12b1ea Add full list of HTML5 elements to enum.
 2 files changed, 363 insertions(+), 202 deletions(-)
d9c4dec Merge branch 'tlsa/html-element-type'
9ef22b6 Add CENTER

Re: Review: Codethink sponsored work on NetSurf, LibCSS and LibDOM

2016-02-12 Thread Jim Nagel
Excellent effort, Michael.  Thanks from all of Us Users to you and 
Codethink!

> ... At [Codethink](http://www.codethink.co.uk/) we have an arrangement
> that allows engineers to fill time between projects by making
> contributions to certain open-source projects.

Netsurf (#3382) timed out when I tried to look at the Codethink site, 
but when I immediately tried again it displayed immediately.

Curious why that should be.

-- 
Jim Nagelwww.archivemag.co.uk